first&last

This commit is contained in:
sbb45
2026-03-20 15:47:17 +05:00
commit d6441abdd2
230 changed files with 20367 additions and 0 deletions
+32
View File
@@ -0,0 +1,32 @@
<?php
namespace App\Livewire\Reports;
use App\Services\ReportService;
use Livewire\Attributes\Layout;
use Livewire\Component;
#[Layout('layouts.app')]
class SlaReportPage extends Component
{
public string $dateFrom = '';
public string $dateTo = '';
public function mount(): void
{
abort_unless(auth()->user()->isAdmin() || auth()->user()->isManager(), 403);
}
public function render(ReportService $reportService)
{
$rows = $reportService->slaCompliance([
'date_from' => $this->dateFrom ?: null,
'date_to' => $this->dateTo ?: null,
]);
return view('livewire.reports.sla-report-page', [
'rows' => $rows,
])->title('Отчет: SLA');
}
}