{{-- Compliance Matrix (overview) — services (rows) × courses (columns), each cell the home's completion rate for that course. From ManagementController@matrix: $rows, $courses, $registeredManagers, $rmId, $q --}} @extends('layouts.app') @section('title', 'Compliance Matrix') @section('content') @include('partials.flash') @php $role = auth()->user()->primaryRole(); $matrixRoute = $role . '.compliance.matrix'; $indexRoute = $role . '.compliance.index'; $exportUrl = route($matrixRoute, array_filter(['rm' => $rmId, 'q' => $q, 'format' => 'csv'])); @endphp {{-- Controls --}}
Nothing to show
No services or assigned courses in this selection.
| Service | @foreach($courses as $course)
{{ \Illuminate\Support\Str::limit($course->title, 26) }}
|
@endforeach
|---|---|
|
{{ $row['service']->name }}
{{ $row['service']->code }} |
@foreach($row['cells'] as $cell)
@if($cell === null) – @else @php $bg = $cell['overdue'] > 0 ? 'bg-error text-on-error' : ($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'] }}% @endif | @endforeach