24 lines
534 B
PHP
24 lines
534 B
PHP
<?php
|
|
|
|
namespace App\Exports;
|
|
|
|
use App\Exports\Sheets\ArraySheetExport;
|
|
use Maatwebsite\Excel\Concerns\WithMultipleSheets;
|
|
|
|
class ReportPageExport implements WithMultipleSheets
|
|
{
|
|
public function __construct(
|
|
private readonly array $summaryRows,
|
|
private readonly array $patientRows
|
|
) {}
|
|
|
|
public function sheets(): array
|
|
{
|
|
return [
|
|
new ArraySheetExport('Сводка', $this->summaryRows),
|
|
new ArraySheetExport('Пациенты', $this->patientRows),
|
|
];
|
|
}
|
|
}
|
|
|