inital commit
This commit is contained in:
26
app/Exports/Receipts/AllSheets.php
Normal file
26
app/Exports/Receipts/AllSheets.php
Normal file
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\Receipts;
|
||||
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
use App\Exports\Receipts\ReceiptAllReport;
|
||||
use App\Exports\Receipts\ReceiptCityReport;
|
||||
|
||||
class AllSheets implements WithMultipleSheets
|
||||
{
|
||||
public function __construct($fromDate = null, $toDate = null, $province = null)
|
||||
{
|
||||
$this->fromDate = $fromDate ?? null;
|
||||
$this->toDate = $toDate ?? null;
|
||||
$this->province = $province ?? null;
|
||||
}
|
||||
|
||||
public function sheets(): array
|
||||
{
|
||||
return [
|
||||
0 => new ReceiptAllReport($this->fromDate, $this->toDate, $this->province),
|
||||
// 1 => new ReceiptCityReport($this->fromDate, $this->toDate, $this->province),
|
||||
];
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user