@extends('layouts.master') @section('title', 'Hostel Fees') @section('content')

Hostel Fees

Fees List
@csrf
@foreach($fees as $fee) @php $total = ($fee->amount ?? 0) + ($fee->penalty ?? 0); $paid = $fee->paid_amount ?? 0; $pending = $total - $paid; if ($pending < 0) $pending = 0; @endphp @endforeach
Student Month Amount Penalty Paid Discount Status Pay Invoice
{{ optional($fee->student->user)->name ?? 'N/A' }} {{ $fee->month }} ₹{{ $fee->amount }} ₹{{ $fee->penalty }} ₹{{ $fee->paid_amount }} ₹{{ $pending }} @if($fee->status == 'paid') Paid @elseif($fee->status == 'partial') Paid @else Unpaid @endif
@csrf
@endsection