Files
backend/app/Exports/V2/Receipt/RecieptTable/AllSheets.php

25 lines
631 B
PHP

<?php
namespace App\Exports\V2\Receipt\RecieptTable;
use App\Exports\V2\Receipt\RecieptTable\Provinces;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
use App\Exports\V2\Receipt\RecieptTable\Cities;
class AllSheets implements WithMultipleSheets
{
public function __construct($from_date = null, $date_to = null)
{
$this->from_date = $from_date ?? null;
$this->date_to = $date_to ?? null;
}
public function sheets(): array
{
return [
0 => new Provinces($this->from_date, $this->date_to),
1 => new Cities($this->from_date, $this->date_to)
];
}
}