Files
backend/app/Exports/V2/SafetyAndPrivacy/SafetyAndPrivacyTable/AllSheets.php
2024-02-01 09:53:53 +00:00

25 lines
685 B
PHP

<?php
namespace App\Exports\V2\SafetyAndPrivacy\SafetyAndPrivacyTable;
use App\Exports\V2\SafetyAndPrivacy\SafetyAndPrivacyTable\Provinces;
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
use App\Exports\V2\SafetyAndPrivacy\SafetyAndPrivacyTable\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)
];
}
}