27 lines
571 B
PHP
27 lines
571 B
PHP
<?php
|
|
|
|
namespace Modules\Business\App\Exports;
|
|
|
|
use Maatwebsite\Excel\Concerns\FromView;
|
|
use Illuminate\Contracts\View\View;
|
|
|
|
class ExportSingleSupplierLedger implements FromView
|
|
{
|
|
public $ledger;
|
|
public $party;
|
|
|
|
public function __construct($ledger, $party)
|
|
{
|
|
$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,
|
|
]);
|
|
}
|
|
}
|