Добавлено формирование отчета
И индикатор реанимации
This commit is contained in:
23
app/Exports/ReportPageExport.php
Normal file
23
app/Exports/ReportPageExport.php
Normal file
@@ -0,0 +1,23 @@
|
||||
<?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),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user