Dashboard sipadu mbip
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

CompoundBacklogExport.php 739B

1234567891011121314151617181920212223242526272829303132
  1. <?php
  2. namespace App\Exports;
  3. use App\Compound;
  4. use Maatwebsite\Excel\Concerns\Exportable;
  5. use Maatwebsite\Excel\Concerns\WithMultipleSheets;
  6. class CompoundBacklogExport implements WithMultipleSheets
  7. {
  8. use Exportable;
  9. private $data_, $year_, $com_price_, $com_sheet_;
  10. public function __construct($data, $year, $com_price, $com_sheet)
  11. {
  12. $this->data_ = $data;
  13. $this->year_ = $year;
  14. $this->com_price_ = $com_price;
  15. $this->com_sheet_ = $com_sheet;
  16. }
  17. /**
  18. * @return array
  19. */
  20. public function sheets(): array
  21. {
  22. $sheets = [];
  23. $sheets[] = new CompoundBacklogSheet($this->data_, $this->year_, $this->com_price_, $this->com_sheet_);
  24. return $sheets;
  25. }
  26. }