@extends('layouts.app') @section('title', 'Training Analytics') @section('content') @include('partials.flash') @php $base = $viewer->primaryRole(); @endphp

Who attends training, which trainers are most used, and which trainings matter most{{ $serviceId ? ' — '.optional($services->firstWhere('id', $serviceId))->name : '' }}.

@if($services->count() >= 1)
@endif
{{-- KPI tiles --}}
@php $tiles = [ ['label' => 'Sessions', 'value' => $summary['sessions'], 'icon' => 'event_available'], ['label' => 'Attendances', 'value' => $summary['attendances'], 'icon' => 'how_to_reg'], ['label' => 'Services', 'value' => $summary['services'], 'icon' => 'holiday_village'], ['label' => 'Trainers', 'value' => $summary['trainers'], 'icon' => 'record_voice_over'], ['label' => 'Trainings', 'value' => $summary['trainings'], 'icon' => 'school'], ['label' => 'SMs Engaged', 'value' => $summary['sms_engaged'], 'icon' => 'supervisor_account'], ]; @endphp @foreach($tiles as $t)
{{ $t['icon'] }}

{{ $t['value'] }}

{{ $t['label'] }}

@endforeach
{{-- Service turnout --}}

Service turnout

Which services attend training, and their Service Manager

@forelse($byService as $r) @empty @endforelse
Service Service Manager Workers attended Attendances Trainings Attendance rate
{{ $r->name }} {{ $r->sm_name ?? '—' }} {{ $r->workers_attended }} / {{ $r->workers_total }} {{ $r->attended }} {{ $r->trainings }} @include('trainer._rate-meter', ['rate' => $r->rate])
No training attendance in your services yet.
{{-- Trainer utilisation --}}

Trainer utilisation

Most-used trainers by attendances delivered

@forelse($byTrainer as $r)
{{ $r->trainer }} {{ $r->sessions }} {{ Str::plural('session', $r->sessions) }} · {{ $r->trainings }} {{ Str::plural('training', $r->trainings) }} · {{ $r->services }} {{ Str::plural('service', $r->services) }}
{{ $r->attended }}
@empty

No trainer activity yet.

@endforelse
{{-- Training demand --}}

Training demand

Most-attended trainings — where the business invests

@forelse($byTraining as $r)
{{ $r->title }} {{ $r->workers }} {{ Str::plural('worker', $r->workers) }} · {{ $r->services }} {{ Str::plural('service', $r->services) }}
{{ $r->attended }}
@empty

No trainings recorded yet.

@endforelse
@endsection