{{ __('Invoice') }}

{{ __('Invoice') }}

{{ __('Order ') }} #{{ $order->invoice_id }}
{{ __('Order Date') }}:
{{ formatDate($order->created_at) }}

{{ __('Billed To') }}:
{{ $order->user->name }}
{{ __('Phone:') }} {{ $order->user->phone }}
{{ __('Email') }} {{ $order->user->email }}
{{ __('Address') }} {{ $order->user->address }}
{{ __('Payment Method') }}:
{{ $order->payment_method }}
{{ __('Payment Status') }}:
{{ $order->payment_status }}

{{ __('Order Summary') }}
@foreach ($order->orderItems as $item) @endforeach
# {{ __('Item') }} {{ __('by') }} {{ __('Price') }}
{{ $loop->iteration }} {{ $item->course->title }} {{ $item->course->instructor->name }}
{{ $item->course->instructor->email }}
${{ number_format($item->price * $order->conversion_rate, 2) }} {{ $order->payable_currency }}
@csrf
{{ __('Payment Status') }}
{{ __('Order Status') }}
@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 = ($subTotal * $order->gateway_charge) / 100; } $total = number_format(($subTotal - $discount + $gatewayCharge) * $order->conversion_rate, 2); @endphp
{{ __('Subtotal') }}
{{ number_format($subTotal * $order->conversion_rate, 2) }} {{ $order->payable_currency }}
{{ __('Gateway Charge') }} ({{ number_format($gatewayCharge,2) }}%)
{{ number_format($gatewayCharge * $order->conversion_rate, 2) }} {{ $order->payable_currency }}
{{ __('Discount') }}
{{ number_format($discount * $order->conversion_rate, 2) }} {{ $order->payable_currency }}

{{ __('Total') }}
{{ $total }} {{ $order->payable_currency }}