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) }}
{{-- @if ($discountPlan)
Discount Plan
Name: {{ $discountPlan->name_en }} Type: {{ ucfirst($discountPlan->type) }} Value: @if ($discountPlan->type == 'fixed') {{ number_format($discountPlan->discount, 2) }} @else {{ number_format($discountPlan->discount, 0) }}% @endif Amount: {{ number_format($priceBeforeDiscount - $priceAfterDiscount, 2) }}
@endif --}} @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
{{-- --}} {{-- --}}
Original Price: {{ number_format($priceBeforeDiscount, 2) }}
Discounted Price: {{ number_format($priceAfterDiscount, 2) }}
Final Price: {{ number_format($studentInvoice->net_price, 2) }}