@extends('layouts.app') @section('title', 'Insights') @section('content') @include('partials.flash')
Workforce training health across {{ $summary['services'] }} {{ Str::plural('service', $summary['services']) }}.
@php $insRole = auth()->user()->primaryRole(); @endphp @if(\Illuminate\Support\Facades\Route::has($insRole . '.compliance.report')) picture_as_pdf Print / PDF @endif{{ $t['value'] }}
{{ $t['label'] }}
{{ $s['value'] }}
{{ $s['label'] }}
No enrolments in your services yet.
@endifCompletions per month · last 12 months
@php $W = 520; $H = 180; $pl = 8; $pr = 8; $pt = 14; $pb = 26; $n = count($completions); $xf = fn ($i) => $pl + ($n <= 1 ? 0 : $i * ($W - $pl - $pr) / ($n - 1)); $yf = fn ($v) => $pt + ($H - $pt - $pb) * (1 - $v / $compMax); $pts = collect($completions)->map(fn ($p, $i) => round($xf($i), 1).','.round($yf($p['count']), 1)); $area = 'M '.round($xf(0), 1).','.round($H - $pb, 1).' L '.$pts->implode(' L ').' L '.round($xf($n - 1), 1).','.round($H - $pb, 1).' Z'; @endphpRanked — where to focus
No services in scope.
@endforelseCourses with the most overdue renewals
No overdue training — nothing to flag.
@endforelse