2019-11-16 10:21:14 +03:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Exports\Common;
|
|
|
|
|
2020-12-21 11:14:47 +03:00
|
|
|
use App\Exports\Common\Sheets\Items as Base;
|
|
|
|
use App\Exports\Common\Sheets\ItemTaxes;
|
2021-04-18 01:39:36 +03:00
|
|
|
use Maatwebsite\Excel\Concerns\Exportable;
|
2020-12-21 11:14:47 +03:00
|
|
|
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
2019-11-16 10:21:14 +03:00
|
|
|
|
2020-12-21 11:14:47 +03:00
|
|
|
class Items implements WithMultipleSheets
|
2019-11-16 10:21:14 +03:00
|
|
|
{
|
2021-04-18 01:39:36 +03:00
|
|
|
use Exportable;
|
|
|
|
|
2020-12-21 11:14:47 +03:00
|
|
|
public $ids;
|
2019-11-16 10:21:14 +03:00
|
|
|
|
2020-12-21 11:14:47 +03:00
|
|
|
public function __construct($ids = null)
|
2020-01-20 23:18:47 +03:00
|
|
|
{
|
2020-12-21 11:14:47 +03:00
|
|
|
$this->ids = $ids;
|
2020-01-20 23:18:47 +03:00
|
|
|
}
|
|
|
|
|
2020-12-21 11:14:47 +03:00
|
|
|
public function sheets(): array
|
2019-11-16 10:21:14 +03:00
|
|
|
{
|
|
|
|
return [
|
2021-05-23 02:27:44 +03:00
|
|
|
new Base($this->ids),
|
|
|
|
new ItemTaxes($this->ids),
|
2019-11-16 10:21:14 +03:00
|
|
|
];
|
|
|
|
}
|
2020-01-20 00:21:37 +03:00
|
|
|
}
|