@yield('css')
@php if($order->state){ $state = json_decode($order->state,true); }else{ $state = []; } @endphp| {{__('Products')}} | {{__('Attribute')}} | {{__('Quantity')}} | {{__('Price')}} | ||
|---|---|---|---|---|---|
| {{$item['name']}} | @if($item['attribute']['option_name']) @foreach ($item['attribute']['option_name'] as $optionkey => $option_name) @endforeach @else -- @endif | {{$item['qty']}} | @if ($setting->currency_direction == 1) {{$order->currency_sign}}{{round($item['main_price']*$order->currency_value,2)}} @else {{round($item['main_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 | ||||