@extends('layouts.master')
@section('title', 'Hostel Fees')
@section('content')
Hostel Fees
| Student |
Month |
Amount |
Penalty |
Paid |
Discount |
Status |
Pay |
Invoice |
@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
| {{ 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
|
|
|
@endforeach
@endsection