migrate to gtea from bistbucket
This commit is contained in:
31
Modules/Business/App/Exports/ExportVatReport.php
Normal file
31
Modules/Business/App/Exports/ExportVatReport.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace Modules\Business\App\Exports;
|
||||
|
||||
use Illuminate\Contracts\View\View;
|
||||
use Maatwebsite\Excel\Concerns\FromView;
|
||||
|
||||
class ExportVatReport implements FromView
|
||||
{
|
||||
protected $sales, $purchases, $vats, $salesVatTotals, $purchasesVatTotals;
|
||||
|
||||
public function __construct($sales, $purchases, $vats, $salesVatTotals, $purchasesVatTotals)
|
||||
{
|
||||
$this->sales = $sales;
|
||||
$this->purchases = $purchases;
|
||||
$this->vats = $vats;
|
||||
$this->salesVatTotals = $salesVatTotals;
|
||||
$this->purchasesVatTotals = $purchasesVatTotals;
|
||||
}
|
||||
|
||||
public function view(): View
|
||||
{
|
||||
return view('business::reports.vats.excel', [
|
||||
'sales' => $this->sales,
|
||||
'purchases' => $this->purchases,
|
||||
'vats' => $this->vats,
|
||||
'salesVatTotals' => $this->salesVatTotals,
|
||||
'purchasesVatTotals' => $this->purchasesVatTotals,
|
||||
]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user