@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
{{--
{{ date('l, d F') }}
--}}

Centrum monitoringu szkoleń.

{{ $dashboardDatePl }}
@foreach($dashboardTiles as $tileIndex => $tile)
@endforeach
Podsumowanie uczestnictwa (caly okres danych)
Obecnosc {{ number_format((float) $participantsRate, 2, '.', ' ') }}%
Wszyscy
{{ (int) ($stats['participants_total'] ?? 0) }}
Obecni
{{ (int) ($stats['participants_present'] ?? 0) }}
Nieobecni
{{ (int) ($stats['participants_absent'] ?? 0) }}
Podsumowanie testow (caly okres danych)
Zdawalnosc (wzgledem wszystkich uczestnikow) {{ number_format((float) $passedRate, 2, '.', ' ') }}%
Zaliczyli
{{ (int) ($stats['tests_passed'] ?? 0) }}
Niezaliczyli
{{ (int) ($stats['tests_failed'] ?? 0) }}
Bez podejscia
{{ (int) ($stats['tests_no_attempt'] ?? 0) }}
Najblizsze szkolenia
@forelse($upcomingTrainings as $training) @empty @endforelse
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.
Do zrobienia
Brak przypisanego testu {{ (int) ($alerts['missing_test'] ?? 0) }}
Brak uczestnikow {{ (int) ($alerts['missing_participants'] ?? 0) }}
Brak materialow {{ (int) ($alerts['missing_materials'] ?? 0) }}

@endsection @section('menu') @include('sites.szkol.menu_szkol') @endsection @section('navbar') @include('sites.szkol._navbar_szkol') @endsection