| {{ $loop->iteration }} |
{{ $invoice->student->name }} |
{{ $invoice->class->name }} |
{{ $invoice->student->roll }} |
{{ dateFormat($invoice->created_at,'d/m/Y') }} |
{{ $invoice->invoice_number }} |
{{-- @if(isset($invoice->previousDue))--}}
{{-- @php($previousDue = $invoice->previousDue)--}}
{{-- - --}}
{{-- Previous Due ({{ $previousDue->description }})--}}
{{--
--}}
{{-- @endif--}}
@foreach($invoice->studentPaymentItems as $detail)
@php($paymentItem = $detail->item)
-
{{ $paymentItem->name }}
{{-- @if($paymentItem->billing_cycle==2)--}}
{{-- {{ $invoice->year }} - {{ $invoice->year+1 }}--}}
@if($paymentItem->billing_cycle==3)
({{ $detail->month->name }} - {{ dateFormat($detail->due_date,'Y') }})
@endif
@endforeach
|
@foreach($invoice->methods as $method)
{{ $method->method == 1 ? 'Cash,':'' }}
{{ $method->method == 2 ? 'bKash-'.$method->transaction_id.',':'' }}
{{ $method->method == 3 ? 'Nagad-'.$method->transaction_id.',':'' }}
{{ $method->method == 4 ? 'Bank-'.$method->transaction_id.',':'' }}
@endforeach
|
{{ numberFormat($invoice->received) }}
|
{{-- View--}}
{{-- --}}
{{-- --}}
{{-- Edit--}}
{{-- --}}
{{-- Edit--}}
|
@endforeach
@endif