Watermark @foreach($bills as $bill)
  • Name: {{ $bill->studentRecord->user->name }}
  • Code: {{ $bill->studentRecord->user->code}}

Term: {{ $bill->term_id }}

Session: {{ $bill->sch_session }}

Next Term Begins: {{ $settings['term_begins'] }}

@foreach($bill->billItems->sortBy('name') as $item) @endforeach
Item Description Amount ({{ $settings['currency'] }}) Total Amount
{{ $item->name }} {{ $item->description }} {{ number_format($item->amount, 2, '.', ',') }} {{ number_format($item->pivot->total_amount, 2, '.', ',') }}

Total Amount: {{ $settings['currency'] }} {{ number_format($bill->total_amount, 2, '.', ',') }}

Discount: {{ $settings['currency'] }} {{ number_format($bill->discount_value, 2, '.', ',') }}

Due Amount: {{ $settings['currency'] }} {{ number_format($bill->due_amount, 2, '.', ',') }}

Previous Balance: {{ $settings['currency'] }} {{ number_format($bill->pre_bal, 2, '.', ',') }}

@if($bill->credit != null || $bill->credit != 0)

Credit: {{ $settings['currency'] }} {{ number_format($bill->credit, 2, '.', ',') }}

@endif
@endforeach