Track Type Invoices
@php
$trackInvoices = $student->invoices->where('type', 'track');
@endphp
@forelse ($trackInvoices as $invoice)
Invoice Number:
{{ $invoice->invoice_number }}
Payment Status:
{{ $invoice->payment_status ??'' }}
Bill Status:
{{ $invoice->bill_status ??'' }}
Track:
{{ $invoice->levels->track->name_en ??'' }}
@empty
No track type invoices found.
@endforelse
Product Type Invoices
@php
$productInvoices = $student->invoices->where('type', 'product');
@endphp
@forelse ($productInvoices as $invoice)
Invoice Number:
{{ $invoice->invoice_number ??'' }}
Payment Status:
{{ $invoice->payment_status ??'' }}
Bill Status:
{{ $invoice->bill_status ??'' }}
Product:
{{ $invoice->product->name_en ??'' }}
@empty
No product type invoices found.
@endforelse