29 lines
662 B
PHP
29 lines
662 B
PHP
<?php
|
|
|
|
namespace Modules\Business\App\Exports;
|
|
|
|
use App\Models\Party;
|
|
use Maatwebsite\Excel\Concerns\FromView;
|
|
use Illuminate\Contracts\View\View;
|
|
use Illuminate\Support\Collection;
|
|
|
|
class ExportSingleCustomerLedger implements FromView
|
|
{
|
|
public Collection $ledger;
|
|
public Party $party;
|
|
|
|
public function __construct(Collection $ledger, Party $party)
|
|
{
|
|
$this->ledger = $ledger;
|
|
$this->party = $party;
|
|
}
|
|
|
|
public function view(): View
|
|
{
|
|
return view('business::party-reports.customer-ledger.show-details.excel-csv', [
|
|
'ledger' => $this->ledger,
|
|
'party' => $this->party,
|
|
]);
|
|
}
|
|
}
|