{{-- Page Header --}}

{{ __('Fee Assignments') }}

{{ __('Assign specific fee structures to students.') }}

{{-- Flash Messages --}} @if(session('success'))
{{ session('success') }}
@endif {{-- Filters Bar --}}
{{-- Assignments Table --}}
@forelse($assignments ?? [] as $a) @empty @endforelse
{{ __('Student') }} {{ __('Fee Structure') }} {{ __('Amount') }} {{ __('Status') }} {{ __('Assigned By') }} {{ __('Actions') }}
{{ strtoupper(substr($a['student_name'] ?? 'S', 0, 1)) }}
{{ $a['student_name'] ?? '' }}
{{ $a['fee_structure_name'] ?? '' }} GHS {{ number_format($a['amount'] ?? 0, 2) }} @php $status = $a['status'] ?? 'active'; $statusConfig = match($status) { 'active' => 'bg-emerald-100 text-emerald-700 border-emerald-200 dark:bg-emerald-900/30 dark:text-emerald-400', 'waived' => 'bg-indigo-100 text-indigo-700 border-indigo-200 dark:bg-indigo-900/30 dark:text-indigo-400', 'cancelled' => 'bg-rose-100 text-rose-700 border-rose-200 dark:bg-rose-900/30 dark:text-rose-400', default => 'bg-slate-100 text-slate-700 border-slate-200 dark:bg-slate-700 dark:text-slate-400' }; @endphp {{ $status }} {{ $a['assigned_by'] ?? '' }} @if(($a['status'] ?? '') === 'active') @else @endif
📋

{{ __('No assignments found') }}

{{ __('Assign fee structures to students to start tracking their financial obligations.') }}

{{-- Create/Assign Modal (Local State to prevent closing bug) --}}