@extends('layouts.app') @section('title', 'Fee ' . $fee->fee_reference) @section('content')

{{ $fee->fee_reference }} @php($sc = ['pending' => 'warning', 'paid' => 'success', 'cancelled' => 'dark', 'waived' => 'secondary'][$fee->payment_status] ?? 'secondary') {{ ucfirst($fee->payment_status) }}

@if($fee->isPaid()) Print Receipt PDF @endif @if(!$fee->isPaid() && auth()->user()->hasPermission('fees.edit')) Edit @endif Back
Fee Details
Vehicle
@if($fee->vehicle) {{ $fee->vehicle->license_plate }} — {{ trim(($fee->vehicle->make ?? '') . ' ' . ($fee->vehicle->model ?? '')) }} @else - @endif
Fee Type
{{ $fee->typeLabel() }}
Description
{{ $fee->description ?? '-' }}
Amount
{{ $fee->formattedAmount() }}
Due Date
{{ $fee->due_date?->format('d M Y') ?? '-' }}
Receipt No.
{{ $fee->receipt_number ?? '-' }}
Payment Method
{{ $fee->payment_method ? ucwords(str_replace('_', ' ', $fee->payment_method)) : '-' }}
Payment Reference
{{ $fee->payment_reference ?? '-' }}
Payer
{{ $fee->payer_name ?? '-' }}@if($fee->payer_phone) ({{ $fee->payer_phone }})@endif
Paid At
{{ $fee->paid_at?->format('d M Y H:i') ?? '-' }}
Collected By
{{ $fee->collector?->name ?? '-' }}
Notes
{{ $fee->notes ?? '-' }}
@if(!$fee->isPaid() && $fee->payment_status !== 'cancelled' && auth()->user()->hasPermission('fees.collect'))
Record Payment
@csrf
@endif
Actions
@if(!$fee->isPaid() && $fee->payment_status !== 'cancelled' && auth()->user()->hasPermission('fees.edit'))
@csrf
@endif @if(!$fee->isPaid() && auth()->user()->hasPermission('fees.delete'))
@csrf @method('DELETE')
@endif @if($fee->isPaid()) Print Receipt @endif
@endsection