Files
freeu-project/app/Exports/InvestmentExport.php
2024-04-24 15:20:53 +05:30

31 lines
709 B
PHP

<?php
namespace App\Exports;
use Maatwebsite\Excel\Concerns\FromCollection;
use Maatwebsite\Excel\Concerns\WithHeadings;
use App\Models\MarketplaceFractionalRealEstateSeller;
use App\Models\MarketplaceAlternativeInvestmentFundSeller;
class InvestmentExport implements FromCollection , WithHeadings
{
/**
* @return \Illuminate\Support\Collection
*/
public $data;
public function __construct($data)
{
$this->data = $data;
}
public function collection()
{
return $this->data;
}
public function headings(): array
{
return ["Product", "Expected Selling Price", "Seller Name", "Email", "Contact", "Listing Status", "Created At"];
}
}