@yield('css')
@php if ($order->state) { $state = json_decode($order->state, true); } else { $state = []; } @endphp| {{ __('Products') }} | {{ __('Attribute') }} | {{ __('Quantity') }} | {{ __('Price') }} | ||
|---|---|---|---|---|---|
| {{ $item['name'] }} |
@if(isset($item['attribute']['names']))
@foreach($item['attribute']['names'] as $index => $name)
{{ $name }} : {{ $item['attribute']['option_name'][$index] }} @endforeach @else -- @endif |
{{ $item['qty'] }} | @php $total_price = $item['main_price'] + $item['attribute_price']; @endphp @if ($setting->currency_direction == 1) {{ $order->currency_sign }}{{ round($total_price * $order->currency_value, 2) }} @else {{ round($total_price * $order->currency_value, 2) }}{{ $order->currency_sign }} @endif | ||
| {{ __('Tax') }} | @if ($setting->currency_direction == 1) {{ $order->currency_sign }}{{ round($order->tax * $order->currency_value, 2) }} @else {{ round($order->tax * $order->currency_value, 2) }}{{ $order->currency_sign }} @endif | ||||
| {{ __('Coupon discount') }} ({{ $discount['code']['code_name'] }}) | @if ($setting->currency_direction == 1) -{{ $order->currency_sign }}{{ round($discount['discount'] * $order->currency_value, 2) }} @else -{{ round($discount['discount'] * $order->currency_value, 2) }}{{ $order->currency_sign }} @endif | ||||
| {{ __('Shipping') }} | @if ($setting->currency_direction == 1) {{ $order->currency_sign }}{{ round($shipping['price'] * $order->currency_value, 2) }} @else {{ round($shipping['price'] * $order->currency_value, 2) }}{{ $order->currency_sign }} @endif | ||||
| {{ __('State Tax') }} | @if ($setting->currency_direction == 1) {{ isset($state['type']) && $state['type'] == 'percentage' ? ' (' . $state['price'] . '%) ' : '' }} {{ $order->currency_sign }}{{ round($order['state_price'] * $order->currency_value, 2) }} @else {{ isset($state['type']) && $state['type'] == 'percentage' ? ' (' . $state['price'] . '%) ' : '' }} {{ round($order['state_price'] * $order->currency_value, 2) }}{{ $order->currency_sign }} @endif | ||||
| @if ($order->payment_method == 'Cash On Delivery') {{ __('Total amount') }} @else {{ __('Total amount due') }} @endif | @if ($setting->currency_direction == 1) {{ $order->currency_sign }}{{ PriceHelper::OrderTotal($order) }} @else {{ PriceHelper::OrderTotal($order) }}{{ $order->currency_sign }} @endif | ||||