inital commit
This commit is contained in:
32
app/Exports/Village/allSheet.php
Normal file
32
app/Exports/Village/allSheet.php
Normal file
@@ -0,0 +1,32 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\Village;
|
||||
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
use App\Exports\Village\Village;
|
||||
use App\Exports\Village\summaryAcidentPerformanceProvince;
|
||||
use App\Exports\Village\summaryAcidentPerformanceCity;
|
||||
use App\Exports\Village\summaryAcidentPerformanceProject;
|
||||
use App\Exports\Village\CompareProgramAndFunction;
|
||||
|
||||
class allSheet implements WithMultipleSheets
|
||||
{
|
||||
public function __construct($fromDate = null, $toDate = null, $province = null, $last_status_id = null)
|
||||
{
|
||||
$this->fromDate = $fromDate ?? null;
|
||||
$this->toDate = $toDate ?? null;
|
||||
$this->province = $province ?? null;
|
||||
$this->last_status_id = $last_status_id ?? null;
|
||||
}
|
||||
|
||||
public function sheets(): array
|
||||
{
|
||||
return [
|
||||
0 => new Village($this->fromDate, $this->toDate, $this->province, $this->last_status_id),
|
||||
1 => new summaryAcidentPerformanceProvince($this->fromDate, $this->toDate, $this->province, $this->last_status_id),
|
||||
2 => new summaryAcidentPerformanceCity($this->fromDate, $this->toDate, $this->province, $this->last_status_id),
|
||||
3 => new summaryAcidentPerformanceProject($this->fromDate, $this->toDate, $this->province, $this->last_status_id),
|
||||
4 => new CompareProgramAndFunction($this->fromDate, $this->toDate, $this->province, $this->last_status_id)
|
||||
];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user