migrate to gtea from bistbucket
This commit is contained in:
26
Modules/Business/App/Exports/ExportSingleCustomerLedger.php
Normal file
26
Modules/Business/App/Exports/ExportSingleCustomerLedger.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Business\App\Exports;
|
||||
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
use Illuminate\Contracts\View\View;
|
||||
|
||||
class ExportSingleCustomerLedger 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.customer-ledger.show-details.excel-csv', [
|
||||
'ledger' => $this->ledger,
|
||||
'party' => $this->party,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user