{{-- Session Coverage Matrix (overview) — services (rows) × training topics (columns), each cell the % of the home's booked staff who attended that topic. From ManagementController@matrix (?type=sessions): $rows, $columns, $registeredManagers, $rmId, $q --}} @extends('layouts.app') @section('title', 'Session Matrix') @section('content') @include('partials.flash') @php $role = auth()->user()->primaryRole(); $matrixRoute = $role . '.compliance.matrix'; $indexRoute = $role . '.compliance.index'; $exportUrl = route($matrixRoute, array_filter(['type' => 'sessions', 'rm' => $rmId, 'q' => $q, 'format' => 'csv'])); @endphp {{-- E-Learning ⇄ Sessions --}}
Nothing to show
No booked training sessions in this selection.
| Service | @foreach($columns as $col)
{{ \Illuminate\Support\Str::limit($col->title, 26) }}
|
@endforeach
|---|---|
|
{{ $row['service']->name }}
{{ $row['service']->code }} |
@foreach($row['cells'] as $cell)
@if($cell === null) N/A @else @php $bg = $cell['pct'] >= 100 ? 'bg-primary text-on-primary' : ($cell['pct'] > 0 ? 'bg-gold text-on-primary' : 'bg-surface-container-high text-on-surface-variant'); @endphp {{ $cell['pct'] }}% @if(! empty($cell['due'])) {{ $cell['due'] }} due @endif @endif | @endforeach