26 lines
706 B
PHP
26 lines
706 B
PHP
<?php
|
|
|
|
namespace App\Exports\Activities\Two\Toonel;
|
|
|
|
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
|
use App\Exports\Activities\Two\Toonel\Province;
|
|
use App\Exports\Activities\Two\Toonel\City;
|
|
|
|
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 Province($this->fromDate, $this->toDate, $this->province),
|
|
1 => new City($this->fromDate, $this->toDate, $this->province)
|
|
];
|
|
}
|
|
}
|