My Bills
@error('current_session') {{ $message }} @enderror
@error('term_id') {{ $message }} @enderror
@if($this->bill_list && count($this->bill_list) > 0) @foreach($this->bill_list as $bill)

{{ $bill->studentRecord->user->name ?? 'Unknown Student' }} ({{ $bill->studentRecord->my_class->name ?? 'Unknown Class' }} / Term {{$bill->term_id}})

Bill Due : {{ \App\Helpers\Mk::formatCurrency($bill->total_amount) }}
Amount Due : {{ \App\Helpers\Mk::formatCurrency($bill->due_amount) }}
Discount : {{ \App\Helpers\Mk::formatCurrency($bill->discount_value) }}
Paid : {{ \App\Helpers\Mk::formatCurrency($bill->paid_amount) }}
Balance : {{ \App\Helpers\Mk::formatCurrency($bill->balance) }}
Pre. Balance : {{ \App\Helpers\Mk::formatCurrency($bill->pre_bal) }}
CR.0
Bill Details
@if($bill->paid_amount >= $bill->due_amount) @else @endif Payment History
@endforeach @else @endif