inital commit
This commit is contained in:
31
app/Exports/RoadUpgrade/allSheet.php
Normal file
31
app/Exports/RoadUpgrade/allSheet.php
Normal file
@@ -0,0 +1,31 @@
|
||||
<?php
|
||||
|
||||
namespace App\Exports\RoadUpgrade;
|
||||
|
||||
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
||||
use App\Exports\RoadUpgrade\RoadUpgradeSafeties;
|
||||
use App\Exports\RoadUpgrade\summaryAccidentPerformanceProvince;
|
||||
use App\Exports\RoadUpgrade\summaryAccidentPerformanceCity;
|
||||
use App\Exports\RoadUpgrade\summaryAccidentPerformanceProject;
|
||||
use App\Exports\RoadUpgrade\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 RoadUpgradeSafeties($this->fromDate, $this->toDate, $this->province, $this->last_status_id),
|
||||
1 => new summaryAccidentPerformanceProvince($this->fromDate, $this->toDate, $this->province, $this->last_status_id),
|
||||
2 => new summaryAccidentPerformanceCity($this->fromDate, $this->toDate, $this->province, $this->last_status_id),
|
||||
3 => new summaryAccidentPerformanceProject($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