@extends('layouts.app', ['class' => 'g-sidenav-show bg-gray-100']) @section('content') @include('layouts.navbars.auth.topnav', ['title' => 'Fine and Payment'])

Fine and Payment

Add
@foreach ($finesAndPayments as $fine) @endforeach
# Student Name Amount Paid Paid Date Receipt No Actions

{{ $loop->iteration ?? 'N/A' }}

{{ $fine->student->firstname?? 'N/A'}}

{{ $fine->amount ?? 'N/A'}}

@if($fine->paid == 0) Yes @else No @endif

@if(!empty($fine->paid_at))

{{ \Carbon\Carbon::parse($fine->paid_at)->format('d-m-Y') }}

@else N/A @endif

{{ $fine->receipt_no ?? 'N/A'}}

@csrf @method('DELETE')
@endsection