inital commit
This commit is contained in:
25
app/Exports/Activities/One/AllSheets.php
Normal file
25
app/Exports/Activities/One/AllSheets.php
Normal file
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\Activities\One;
|
||||
|
||||
use App\Exports\Activities\One\Provinces;
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
use App\Exports\Activities\One\Cities;
|
||||
|
||||
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 Provinces($this->fromDate, $this->toDate, $this->province),
|
||||
1 => new Cities($this->fromDate, $this->toDate, $this->province)
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user