{{-- --}} {{-- --}}
Name : {{ $student->name }} ID : {{ $student->roll }} Class : {{ $monthlyFee->class->code }} Session : {{ $monthlyFee->year }} - {{ $monthlyFee->year+1 }}Invoice No : {{ $invoice->invoice_no }}Due Date : {{ $invoice->deadline===null? '' : dateFormat($invoice->deadline,'jS M Y') }}
@php($colspan = 2) @php($sl = 1) {{-- @if(isset($invoice->previousDue))--}} {{-- @php($previousDue = $invoice->previousDue)--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @endif--}} @foreach($studentPaymentItems as $studentPaymentItem) @php($lateFeeReport = checkLateFee($studentPaymentItem->id)) @php($amount = $studentPaymentItem->receivable + $lateFeeReport['late_fee']) @endforeach {{-- @php($fine=0) @php($discount=0)--}} {{-- @php($delay = invoiceDelay($invoice->deadline))--}} {{-- @if($delay>0)--}} {{-- @php($perDayFine = siteInfo('daily_fine'))--}} {{-- @php($fine = $delay*$perDayFine)--}} {{-- @php($lateFee = lateFee($invoice->id))--}} {{-- @php($fine = $lateFee['fine'])--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- @php($discount=0)--}} {{-- --}} {{-- --}} {{-- @endif--}} {{-- --}} {{-- @php($receivable = $invoice->receivable_amount+$fine-$discount)--}} {{-- --}} {{-- --}} {{-- --}} {{-- --}} {{-- --}}
Sl. Select Description Reference Amount(Tk) Status
{{ $sl++ }}Previous Due{{ $previousDue->description }}{{ numberFormat($previousDue->receivable) }}
{{ $sl++ }} @if($studentPaymentItem->status==1) @elseif($studentPaymentItem->status==2)
@endif
{{ $studentPaymentItem->item->name }} @if($studentPaymentItem->lab_fee>0) + Lab Fee @endif @if($lateFeeReport['late_fee']>0) + Late Fee @endif @if($studentPaymentItem->item->billing_cycle==2) ({{ $studentPaymentItem->year }} - {{ $studentPaymentItem->year+1 }}) @elseif($studentPaymentItem->item->billing_cycle==3) ({{ $studentPaymentItem->month->name }} - {{ dateFormat($studentPaymentItem->due_date,'Y') }}) @endif @if($studentPaymentItem->status==1) @elseif($studentPaymentItem->status==2) {!! $lateFeeReport['message'] !!} @endif {{ numberFormat($amount) }} @if($studentPaymentItem->status==1) Paid @elseif($studentPaymentItem->status==2 and $studentPaymentItem->due_date == null) Unpaid @elseif($studentPaymentItem->status==2 and $lateFeeReport['late_fee']>0) Late @elseif($studentPaymentItem->status==2 and $lateFeeReport['late_fee']==0) Upcoming @endif
{{ ++$sl }}Late Fee{{ $lateFee['reference'] }}--}} {{-- {{ numberFormat($fine) }}--}} {{-- --}} {{--
{{ ++$sl }}Discount--}} {{-- --}} {{-- --}} {{-- {{ numberFormat($discount) }}--}} {{-- --}} {{--
Total Amount{{ numberFormat($receivable) }}
{{-- --}}
Payment Methods
Total
Tk.
Discount
Tk.
Note
Receivable
Tk.
Cash
Tk.
bKash
Tk.
Nagad
Tk.
Bank
Tk.
Received
Tk.
Date