@extends('layouts.site') @php $my_name_view = 'SZKOL - Dashboard'; $my_short_view_name = 'Dashboard'; @endphp @section('title', 'SZKOL - Dashboard') @section('content') @php $dashboardDatePl = \Carbon\Carbon::now()->locale('pl')->translatedFormat('l, d F'); $statusLabels = [ 1 => 'W przygotowaniu', 2 => 'Zatwierdzone', 3 => 'Wykonane', 4 => 'Anulowane', ]; $dashboardTiles = [ [ 'label' => 'W PRZYGOTOWANIU', 'value' => (int) ($stats['trainings_preparation'] ?? 0), 'icon' => 'fas fa-layer-group', 'class' => 'kpi-prep', 'href' => route('m_szkol_glowna_lista_szkolen_v2', ['status' => 1, 'nav_reset' => 1]), ], [ 'label' => 'ZATWIERDZONE', 'value' => (int) ($stats['trainings_approved'] ?? 0), 'icon' => 'fas fa-check-circle', 'class' => 'kpi-approved', 'href' => route('m_szkol_glowna_lista_szkolen_v2', ['status' => 2, 'nav_reset' => 1]), ], [ 'label' => 'WYKONANE', 'value' => (int) ($stats['trainings_finished'] ?? 0), 'icon' => 'far fa-calendar-check', 'class' => 'kpi-finished', 'href' => route('m_szkol_glowna_lista_szkolen_v2', ['status' => 3, 'nav_reset' => 1]), ], [ 'label' => 'ANULOWANE', 'value' => (int) ($stats['trainings_cancelled'] ?? 0), 'icon' => 'far fa-times-circle', 'class' => 'kpi-cancelled', 'href' => route('m_szkol_glowna_lista_szkolen_v2', ['status' => 4, 'nav_reset' => 1]), ], [ 'label' => 'BRAK TESTU', 'value' => (int) ($alerts['missing_test'] ?? 0), 'icon' => 'fas fa-award', 'class' => 'kpi-grade', 'href' => route('m_szkol_glowna_lista_szkolen_v2', ['dashboard_scope' => 'missing_test', 'nav_reset' => 1]), ], [ 'label' => 'BRAK MATERIALOW', 'value' => (int) ($alerts['missing_materials'] ?? 0), 'icon' => 'far fa-file-alt', 'class' => 'kpi-month', 'href' => route('m_szkol_glowna_lista_szkolen_v2', ['dashboard_scope' => 'missing_materials', 'nav_reset' => 1]), ], ]; @endphp
Centrum monitoringu szkoleń.
| ID | Temat | Data | Godzina | Status |
|---|---|---|---|---|
| {{ (int) ($training->id ?? 0) }} | {{ (string) ($training->temat ?? '-') }} | {{ (string) ($training->data ?? '-') }} | {{ (string) ($training->godzina_start ?? '-') }} | {{ $statusLabels[(int) ($training->status ?? 0)] ?? '-' }} |
| Brak nadchodzacych szkolen. | ||||