@extends('student.student_dashboard') @section('admin')

Billing History

Account Summary
Total Fee: {{ number_format($totalFee) }} ৳
Total Paid: {{ number_format($totalPaid) }} ৳
Balance: {{ number_format($balance) }} ৳
Installment Information
@forelse($installments as $key => $inst) @php $paidAmount = $inst->studentPayments ->where('student_id', Auth::user()->id) ->sum('amount'); $isPaid = $paidAmount >= $inst->payable; @endphp @empty @endforelse
SL Installment No Due Date Installment Amount Payable Late Fee Status
{{ $key + 1 }} {{ $inst->installment_number }} {{ \Carbon\Carbon::parse($inst->due_date)->format('Y-m-d') }} {{ number_format($inst->amount) }} ৳ {{ number_format($inst->payable ?? $inst->amount) }} ৳ {{ number_format($inst->late_fee ?? 0) }} ৳ @if($isPaid) Paid @else Unpaid @endif
No installment data found
Account Ledger
@forelse($billingHistory as $key => $item) @empty @endforelse
SL Date Type Details Debit (Charge) Credit (Payment) Remark
{{ $key + 1 }} {{ $item['date'] }} {{ $item['type'] }} {{ $item['details'] }} {{ $item['debit'] > 0 ? number_format($item['debit']) : '-' }} {{ $item['credit'] > 0 ? number_format($item['credit']) : '-' }} {{ $item['remark'] }}
No billing history found.
@endsection