@extends('layouts.app') @section('title', 'Session Reports') @section('content') @include('partials.flash')

Session Reports

Attendance by service and by training{{ $serviceId ? ' — filtered to '.optional($services->firstWhere('id', $serviceId))->name : '' }}.

{{-- Filters --}}
@if($serviceId || $filters['q'] !== '') Clear @endif
{{-- Summary tiles --}}
@php $tiles = [ ['label' => 'Workers Attended', 'value' => $summary['workers'], 'icon' => 'how_to_reg'], ['label' => 'Total Attendances', 'value' => $summary['attendances'], 'icon' => 'groups'], ['label' => 'Services', 'value' => $summary['services'], 'icon' => 'holiday_village'], ['label' => 'Trainings', 'value' => $summary['trainings'], 'icon' => 'school'], ]; @endphp @foreach($tiles as $t)
{{ $t['icon'] }}

{{ $t['value'] }}

{{ $t['label'] }}

@endforeach
{{-- Service performance --}}

Service performance

How many workers from each service attended training

@forelse($byService as $r) @empty @endforelse
Service Workers attended Attendances Trainings Attendance rate
{{ $r->name }} {{ $r->workers_attended }} / {{ $r->workers_total }} {{ $r->attended }} {{ $r->trainings }} @include('trainer._rate-meter', ['rate' => $r->rate])
No attendance recorded yet.
{{-- By training --}}

By training

Attendance per training{{ $serviceId ? ' for the selected service' : '' }}

@forelse($byTraining as $r) @empty @endforelse
Training Sessions Workers attended Attended Attendance rate
{{ $r->title }} {{ $r->sessions }} {{ $r->attendees }} {{ $r->attended }}/{{ $r->expected }} @include('trainer._rate-meter', ['rate' => $r->rate])
No trainings match these filters.
@endsection