{{ __('Payment Information') }}
@php
if ($order->payment_status == 'pending') {
$payment_bg = 'bg-warning';
} elseif ($order->payment_status = 'completed') {
$payment_bg = 'bg-success';
} elseif ($order->payment_status = 'rejected') {
$payment_bg = 'bg-danger';
}
$symbol = $order->currency_symbol;
$position = $order->currency_symbol_position;
@endphp
- {{ __('Cart Total') . ':' }}()
:{{ $position == 'left' ? $symbol : '' }}{{ number_format($order->total, 2, '.', ',') }}{{ $position == 'right' ? $symbol : '' }}
- {{ __('Discount') . ':' }}()
:{{ $position == 'left' ? $symbol : '' }}{{ number_format($order->discount, 2, '.', ',') }}{{ $position == 'right' ? $symbol : '' }}
-
@php
$total = floatval($order->total);
$discount = floatval($order->discount);
$subtotal = $total - $discount;
@endphp
{{ __('Subtotal') . ':' }}()
:{{ $position == 'left' ? $symbol : '' }}{{ number_format($subtotal, 2, '.', ',') }}{{ $position == 'right' ? $symbol : '' }}
- {{ __('Tax') . ':' }} {{ '(' . $tax->product_tax_amount . '%)' }}()
:{{ $position == 'left' ? $symbol : '' }}{{ number_format($order->tax, 2, '.', ',') }}{{ $position == 'right' ? $symbol : '' }}
-
@php $shippingMethod = $order->shippingMethod()->first(); @endphp
@if ($order->productType == 'digital')
{{ __('Shipping Cost') . ':' }}():
@if (is_null($order->shipping_cost))
{{ '-' }}
@else
{{ $position == 'left' ? $symbol : '' }}{{ number_format($order->shipping_cost, 2, '.', ',') }}{{ $position == 'right' ? $symbol : '' }}({{ is_null($shippingMethod) ? '-' : $shippingMethod->title }})
@endif
@endif
-
{{ __('Paid Amount') . ':' }}
:{{ $position == 'left' ? $symbol : '' }}{{ number_format($order->grand_total, 2, '.', ',') }}{{ $position == 'right' ? $symbol : '' }}
-
{{ __('Payment Method') . ':' }}{{ __($order->payment_method) }}
-
{{ __('Payment Status') . ':' }}
:{{ __($order->payment_status) }}