24 lines
497 B
PHP
24 lines
497 B
PHP
<?php
|
|
|
|
namespace App\Exports;
|
|
|
|
use App\Exports\Sheets\Invoices\VOPSheet;
|
|
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
|
use App\Exports\Sheets\UsersSheet;
|
|
use App\Exports\Sheets\OrdersSheet;
|
|
|
|
class ReportExport implements WithMultipleSheets
|
|
{
|
|
protected array $filters;
|
|
public function __construct(array $filters = [])
|
|
{
|
|
$this->filters = $filters;
|
|
}
|
|
public function sheets(): array
|
|
{
|
|
return [
|
|
new VOPSheet($this->filters),
|
|
];
|
|
}
|
|
}
|