{{ __('invoice') }}

{{ __('Order Id: ') }}{{ $order->invoice_id }}

{{ __('Date: ') }}{{ formatDate($order->created_at) }}
{{ __('Billed To') }}

{{ $order->user->name }}

{{ $order->user->phone }}

{{ $order->user->email }}

{{ $order->user->address }}

{{ __('Billed From') }}

{{ $setting->app_name }}

{{ $setting->contact_message_receiver_mail }}

{{ $setting->site_address }}

@foreach ($order->orderItems as $item) @endforeach
{{ __('No') }}. {{ __('Item') }} {{ __('By') }} {{ __('Price') }}
{{ $loop->iteration }} {{ $item->course->title }} {{ $item->course->instructor->name }}
{{ $item->course->instructor->email }}
{{ $item->price * $order->conversion_rate }} {{ $order->payable_currency }}
@php $subTotal = 0; $discount = 0; $gatewayCharge = 0; foreach ($order->orderItems as $item) { $subTotal += $item->price; } if ($order->coupon_discount_amount > 0) { $discount = $order->coupon_discount_amount; } if ($order->gateway_charge > 0) { $gatewayCharge = ($order->gateway_charge / ($subTotal - $discount)) * 100; } $total = ($subTotal - $discount + $order->gateway_charge) * $order->conversion_rate; @endphp
{{ __('Payment Details') }}

{{ __('Payment Method') }} : {{ $order->payment_method }}

{{ __('Payment Status') }} : {{ $order->payment_status }}

{{ __('Sub Total') }} :{{ number_format($subTotal * $order->conversion_rate, 2) }} {{ $order->payable_currency }}

{{ __('Discount') }} :{{ number_format($discount * $order->conversion_rate, 2) }} {{ $order->payable_currency }}

{{ __('Gateway Charge') }} ({{ $gatewayCharge }}%){{ number_format($order->gateway_charge * $order->conversion_rate, 2) }} {{ $order->payable_currency }}

{{ __('Total') }} :{{ number_format($total, 2) }} {{ $order->payable_currency }}