@if ($studentInvoice->product)
Product Details
@else
Course Details
@endif
@if ($studentInvoice->discount_plan_id)
Pricing Plan Details
Discount Plan:
Total Price:
Discount:
Discount Amount:
{{ $studentInvoice->discount_plan->name_en ?? '' }}
{{ number_format($studentInvoice->total_price, 2) }}
@if ($studentInvoice->discount_plan_type == 'fixed')
{{ number_format($studentInvoice->discount_plan_price, 2) }}
{{ number_format($studentInvoice->total_price, 2) - number_format($studentInvoice->discount_plan_price, 2) }}
@elseif ($studentInvoice->discount_plan_type == 'percentage')
{{ number_format($studentInvoice->discount_plan_price, 0) }}%
{{ number_format($studentInvoice->total_price * $studentInvoice->discount_plan_price / 100, 2) }}
@else
0
@endif
@endif
@if ($studentInvoice->promocode_id)
Promocode Details
Promocode:
Total Price:
Discount:
Discount Amount:
{{ $studentInvoice->promocode->code ?? '' }}
@if ($studentInvoice->discount_plan_id)
{{ number_format($studentInvoice->total_price * $studentInvoice->discount_plan_price / 100, 2) }}
@else
{{ number_format($studentInvoice->total_price, 2) }}
@endif
@if ($studentInvoice->promocode_type == 'fixed')
{{ number_format($studentInvoice->promocode_price, 2) }}
@elseif ($studentInvoice->promocode_type == 'percentage')
{{ number_format($studentInvoice->promocode_price, 0) }}%
@else
0
@endif
{{ number_format($studentInvoice->net_price, 2) }}
@endif
Final Total:
{{ number_format($studentInvoice->net_price, 2) }}