Upedia Academy

123 Academy St, City, Country
info@upedia.com
Invoice #: {{ $studentInvoice->invoice_number }} Date: {{ $studentInvoice->created_at->format('Y-m-d') }}
Student: {{ $studentInvoice->student->first_name ?? '' }} {{ $studentInvoice->student->last_name ?? '' }} Email: {{ $studentInvoice->student->email ?? 'N/A' }}
Course / Product
Name Start End Staff Price
{{ $studentInvoice->product?->name_en ?? ($studentInvoice->levels?->name_en ?? '') }} {{ $studentInvoice->staff_scheduled?->start_date ?? '-' }} {{ $studentInvoice->staff_scheduled?->end_date ?? '-' }} @if ($studentInvoice->staff_scheduled?->staff) {{ $studentInvoice->staff_scheduled->staff->first_name ?? '' }} {{ $studentInvoice->staff_scheduled->staff->last_name ?? '' }} @else - @endif {{ number_format($studentInvoice->total_price, 2) }}
Transactions
@forelse ($studentInvoice->transaction as $index => $transaction) @empty @endforelse
# Transaction Date Payment Method Amount Transaction Img Reason Status
{{ $index + 1 }} {{ $transaction->created_at->format('Y-m-d H:i') }} {{ $transaction->payment_type }} {{ $transaction->amount }} @if ($transaction->transaction_img) Transaction Image @else No image @endif {{$transaction->reason ?? "--"}} @if ($transaction->status == 'paid') Paid @elseif ($transaction->status == 'pending') Pending @else Rejected @endif
No transactions found for this invoice
@if ($studentInvoice->promocode_id)
Promocode
Code: {{ $studentInvoice->promocode->code }} Type: {{ ucfirst($studentInvoice->discount_type) }} Value: @if ($studentInvoice->discount_type == 'fixed') {{ number_format($studentInvoice->discount, 2) }} @else {{ number_format($studentInvoice->discount, 0) }}% @endif
@endif
Final Price: {{ number_format($studentInvoice->net_price, 2) }}