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