Files
kulakpos_web/Modules/Business/App/Exports/ExportSingleSupplierLedger.php

29 lines
662 B
PHP
Raw Normal View History

2026-03-15 17:08:23 +07:00
<?php
namespace Modules\Business\App\Exports;
2026-05-14 11:55:22 +07:00
use App\Models\Party;
2026-03-15 17:08:23 +07:00
use Maatwebsite\Excel\Concerns\FromView;
use Illuminate\Contracts\View\View;
2026-05-14 11:55:22 +07:00
use Illuminate\Support\Collection;
2026-03-15 17:08:23 +07:00
class ExportSingleSupplierLedger implements FromView
{
2026-05-14 11:55:22 +07:00
public Collection $ledger;
public Party $party;
2026-03-15 17:08:23 +07:00
2026-05-14 11:55:22 +07:00
public function __construct(Collection $ledger, Party $party)
2026-03-15 17:08:23 +07:00
{
$this->ledger = $ledger;
$this->party = $party;
}
public function view(): View
{
return view('business::party-reports.supplier-ledger.show-details.excel-csv', [
'ledger' => $this->ledger,
'party' => $this->party,
]);
}
}