@extends('layouts.app') @section('title', 'Completions & Certificates - Reports') @section('content') @php $modes = config('probation.completion_modes'); $types = config('probation.case_types'); @endphp

Completions & Certificates

Back
{{-- Satisfactory / Unsatisfactory / Absconded — click a tile to open that list --}}
@foreach(['satisfactorily' => 'bg-success', 'unsatisfactorily' => 'bg-secondary', 'absconded' => 'bg-dark'] as $m => $bg) @endforeach
{{ ($mode ?? null) ? ($modes[$mode] ?? $mode) . ' completions' : 'Completed Cases' }} {{ $completions->count() }} record(s)
@forelse($completions as $c) @php $cc = $c->case; $url = $cc ? route('probation.' . \App\Models\ProbationCase::routeKeyForType($cc->case_type) . '.show', $cc->id) : null; @endphp @empty @endforelse
Completed Case Name Module Officer Nature of Completion Certificate No.
{{ optional($c->completed_on)->format('d M Y') ?? '—' }} {{ $cc->serial_number ?? '#'.$c->case_id }} @if($url){{ $cc->prisoner->name ?? '—' }}@else — @endif {{ $cc ? ($types[$cc->case_type] ?? $cc->case_type) : '—' }} {{ $cc->officer->name ?? '—' }} {{ $modes[$c->norm_mode] ?? ucfirst($c->mode ?? '—') }} {{ $c->certificate_no ?? '—' }} @if($c->certificate_no) Certificate @endif
No completed cases{{ ($mode ?? null) ? ' in this category' : '' }} yet.
@endsection