Шаблон отчета дежурного врача

This commit is contained in:
brusnitsyn
2026-07-06 15:27:43 +09:00
parent d322317d06
commit 2b0221ed36
5 changed files with 98 additions and 2 deletions

View File

@@ -0,0 +1,41 @@
<?php
namespace App\Exports;
use App\Models\Department;
use App\Models\User;
use Maatwebsite\Excel\Concerns\FromArray;
use Maatwebsite\Excel\Concerns\WithTitle;
class DutyReportExport implements FromArray, WithTitle
{
protected array $data;
protected array $dateRange;
protected User $user;
protected Department $department;
protected string $reportName;
public function __construct(
array $data,
array $dateRange,
User $user,
Department $department,
string $reportName = 'Статистика по отделениям',
) {
$this->data = $data;
$this->dateRange = $dateRange;
$this->user = $user;
$this->department = $department;
$this->reportName = $reportName;
}
public function array(): array
{
// TODO: Implement array() method.
}
public function title(): string
{
return $this->sheetTitle;
}
}