| 1234567891011121314151617181920212223242526272829303132 |
- <?php
-
- namespace App\Exports;
-
- use App\Compound;
- use Maatwebsite\Excel\Concerns\Exportable;
- use Maatwebsite\Excel\Concerns\WithMultipleSheets;
-
- class CompoundCurrentExport implements WithMultipleSheets
- {
- use Exportable;
-
- private $data,$year1,$year2,$end_date;
-
- public function __construct($data,$year1,$year2,$end_date)
- {
- $this->data = $data;
- $this->year1 = $year1;
- $this->year2 = $year2;
- $this->end_date = $end_date;
- }
-
- /**
- * @return array
- */
- public function sheets(): array
- {
- $sheets = [];
- $sheets[] = new CompoundCurrentSheet($this->data, $this->year1, $this->year2, $this->end_date);
- return $sheets;
- }
- }
|