@extends('layouts.app') @section('title', 'TVET Clearance') @section('content')

Clearance & certification

Confirm that learners have met fee, library and attachment requirements before certification.
@include('academics._nav')
@forelse($clearances as $clearance) @php $student = $students->firstWhere('id', $clearance->student_id); $flags = [ 'fees' => $clearance->fees_cleared, 'library' => $clearance->library_cleared, 'attachment' => $clearance->attachment_completed, 'exams' => $clearance->exams_cleared, 'certificate' => $clearance->certificate_collected, ]; $done = count(array_filter($flags)); @endphp @empty @endforelse
LearnerTypeProgrammeChecklistCleared onActions
{{ $student?->full_name ?? '—' }}{{ $student?->admission_no }}
{{ $clearance->type }} {{ $clearance->programme ?: '—' }}
@foreach($flags as $label => $flag) {{ ucfirst($label) }} @endforeach
{{ $done }}/5 completed
{{ $clearance->cleared_date ? \Carbon\Carbon::parse($clearance->cleared_date)->format('d M Y') : '—' }}
@csrf @method('DELETE')
@php $flagLabels = ['fees_cleared' => 'Fees cleared', 'library_cleared' => 'Library cleared', 'attachment_completed' => 'Attachment completed', 'exams_cleared' => 'Exams cleared', 'certificate_collected' => 'Certificate collected']; @endphp
@csrf
@foreach($flagLabels as $flag => $label)@endforeach
@foreach($clearances as $clearance)
@csrf @method('PUT')
@foreach($flagLabels as $flag => $label)@endforeach
@endforeach @endsection