{{-- Expects: $kpi (App\Models\Kpi), $chart (array from App\Support\KpiChart::build) --}}
{{ $kpi->name }} — last 12 months
{{ $kpi->thresholdSummary() }}@if ($kpi->unit_label) · unit: {{ $kpi->unit_label }}@endif
@if (($chart['type'] === 'line' && empty($chart['points'])) || ($chart['type'] === 'milestone' && empty($chart['markers'])))No entries in the last 12 months.
@elseif ($chart['type'] === 'line') @else {{-- Milestone timeline: met / missed markers per month --}} @endif