{{ __('Invoice') }}
{{ __('Invoice') }}
{{ __('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 ') }} #{{ $order->invoice_id }}
{{ __('Order Date') }}:{{ formatDate($order->created_at) }}
@if ($order->isBundleOrder()) {{ __('Bundle Name') }}:
{{ $order?->order_details?->title }}
@endif @if ($order->isGiftOrder()) {{ __('Gift') }}:
{{ __('Recipient Name') }}: {{ $order?->order_details?->recipient_name }}
{{ __('Recipient Email') }}: {{ $order?->order_details?->recipient_email }}
@if (empty($order?->order_details?->verification_token))
{{ __('Claimed') }}
@else
{{ __('Pending') }}
{{__('Re Send Claim Email')}} @endif @endif
{{ __('Order Summary') }}
| # | {{ __('Item') }} | {{ __('by') }} | {{ __('Price') }} |
|---|---|---|---|
| {{ $loop->iteration }} | {{ $item->course->title }} |
{{ $item->course->instructor->name }}
{{ $item->course->instructor->email }} |
@if ($order->isBundleOrder()) -- @else {{ number_format($item->price * $order->conversion_rate, 2) }} {{ $order->payable_currency }} @endif |
@if (\Modules\BasicPayment\app\Services\PaymentMethodService::OFFLINE_PAYMENT == $order->payment_method)
{{ __('Payment Receipt File') }}
{{ __('Download Receipt') }}
@endif
@if ($order->isBundleOrder())
@php
$subTotal = $order->payable_amount;
$subTotalWithCharge = $subTotal * $order->conversion_rate;
$gatewayCharge = 0;
if ($order->gateway_charge > 0) {
$gatewayCharge =
($order->gateway_charge / $subTotalWithCharge) * 100;
}
$total = number_format($subTotalWithCharge + $order->gateway_charge, 2);
@endphp
@else
@php
$subTotal = 0;
$discount = 0;
$gatewayCharge = 0;
foreach ($order->orderItems as $item) {
$subTotal += $item->price;
}
$subTotalWithConversion = $subTotal * $order->conversion_rate;
if ($order->coupon_discount_amount > 0) {
$discount = $order->coupon_discount_amount;
}
if ($order->gateway_charge > 0) {
$gatewayCharge =
($order->gateway_charge /
($subTotalWithConversion - $discount)) *
100;
}
$total = number_format(
$subTotalWithConversion - $discount + $order->gateway_charge,
2,
);
@endphp
@endif
{{ __('Subtotal') }}
{{ number_format($subTotal * $order->conversion_rate, 2) }}
{{ $order->payable_currency }}
{{ __('Gateway Charge') }}
({{ number_format($gatewayCharge, 2) }}%)
{{ number_format($order->gateway_charge, 2) }}
{{ $order->payable_currency }}
{{ __('Total') }}
{{ $total }}
{{ $order->payable_currency }}
{{ __('Subtotal') }}
{{ number_format($subTotal * $order->conversion_rate, 2) }}
{{ $order->payable_currency }}
{{ __('Gateway Charge') }}
({{ number_format($gatewayCharge, 2) }}%)
{{ number_format($order->gateway_charge, 2) }}
{{ $order->payable_currency }}
{{ __('Discount') }}
{{ number_format($discount, 2) }}
{{ $order->payable_currency }}
{{ __('Total') }}
{{ $total }}
{{ $order->payable_currency }}