{{ __('Order Details') }}

{{ __('Invoice Number') }} : {{ sprintf("%'.08d", $order->id) }}
{{ __('Order Date') }} : {{ date('d-M-Y',strtotime($order->created_at)) }}
{{ __('Order ID')}} : {{ $order->order_number }}
@if($order->dp == 0) {{ __('Shipping Method') }} : @if($order->shipping == "pickup") {{ __('Pick Up') }} @else {{ __('Ship To Address') }} @endif
@endif {{ __('Payment Method') }} : {{$order->method}}
{{ __('Payment Status') }} : {{ $order->payment_status == 'Pending' ? "Unpaid":"Paid" }}
@if($order->dp == 0)

{{ __('Shipping Details') }}

{{ __('Customer Name') }}: {{ $order->shipping_name == null ? $order->customer_name : $order->shipping_name}}
{{ __('Address') }}: {{ $order->shipping_address == null ? $order->customer_address : $order->shipping_address }}
{{ __('City') }}: {{ $order->shipping_city == null ? $order->customer_city : $order->shipping_city }}
{{ __('Country') }}: {{ $order->shipping_country == null ? $order->customer_country : $order->shipping_country }}
@endif

{{ __('Billing Details') }}

{{ __('Customer Name') }}: {{ $order->customer_name}}
{{ __('Address') }}: {{ $order->customer_address }}
{{ __('City') }}: {{ $order->customer_city }}
{{ __('Country') }}: {{ $order->customer_country }}
@php $subtotal = 0; $tax = 0; @endphp @foreach($cart->items as $product) @php $subtotal += round($product['price'] * $order->currency_value, 2); @endphp @endforeach @if($order->shipping_cost != 0) @endif @if($order->packing_cost != 0) @endif @if($order->tax != 0) @php $tax = ($subtotal / 100) * $order->tax; @endphp @endif @if($order->coupon_discount != null) @endif
{{ __('Product') }} {{ __('Details') }} {{ __('Total') }}
@if($product['item']['user_id'] != 0) @php $user = App\Models\User::find($product['item']['user_id']); @endphp @if(isset($user)) {{ $product['item']['name']}} @else {{$product['item']['name']}} @endif @else {{ $product['item']['name']}} @endif @if($product['size'])

Size : {{str_replace('-',' ',$product['size'])}}

@endif @if($product['color'])

Color :

@endif

Price : {{$order->currency_sign}}{{ round($product['item']['price'] * $order->currency_value , 2) }}

Qty : {{$product['qty']}} {{ $product['item']['measure'] }}

{{$order->currency_sign}}{{ round($product['price'] * $order->currency_value , 2) }}
{{ __('Subtotal') }} {{$order->currency_sign}}{{ round($subtotal, 2) }}
{{ __('Shipping Cost') }}({{$order->currency_sign}}) {{ round($order->shipping_cost , 2) }}
{{ __('Packaging Cost') }}({{$order->currency_sign}}) {{ round($order->packing_cost , 2) }}
{{ __('TAX') }}({{$order->currency_sign}}){{round($tax, 2)}}
{{ __('Coupon Discount') }}({{$order->currency_sign}}) {{$order->currency_sign}}{{round($order->coupon_discount, 2)}}
{{ __('Total') }} {{$order->currency_sign}}{{ round($order->pay_amount * $order->currency_value , 2) }}