@extends('layouts.vendor') @section('content')

Billing Address

{{$order->customer_name}}
{{$order->customer_address}}
{{$order->customer_city}}
{{$order->customer_country}}
Invoice Number

Order Date

Order ID

{{sprintf("%'.08d", $order->id)}}

{{date('d-M-Y',strtotime($order->created_at))}}

{{$order->order_number}}

@php $subtotal = 0; $tax = 0; $ship = 0; @endphp @foreach($cart->items as $product) @if($product['item']['user_id'] != 0) @if($product['item']['user_id'] == $user->id) @php $subtotal += round($product['price'] * $order->currency_value , 2); @endphp @endif @endif @endforeach @if($user->shipping_cost != 0) @php $subtotal = $subtotal + round($user->shipping_cost * $order->currency_value , 2); @endphp @endif @if($order->tax != 0) @php $tax = ($subtotal / 100) * $order->tax; $subtotal = $subtotal + $tax; @endphp @endif
Product Size Color Price Quantity Line Total
{{strlen($product['item']['name']) > 30 ? substr($product['item']['name'],0,30).'...' : $product['item']['name']}} {{$product['size']}} {{$order->currency_sign}}{{ round($product['item']['cprice'] * $order->currency_value , 2) }} {{$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($user->shipping_cost * $order->currency_value , 2) }}
TAX({{$order->currency_sign}}){{round($tax,2)}}
Total {{$order->currency_sign}}{{ round($subtotal, 2) }}

Order Details

@if($order->dp == 0)

Shipping Method: @if($order->shipping == "pickup") Pick Up @else Ship To Address @endif

@endif

Payment Method: {{$order->method}}

@if($order->dp == 0)

Shipping Address

{{$order->shipping_name == null ? $order->customer_name : $order->shipping_name}}

{{$order->shipping_address == null ? $order->customer_address : $order->shipping_address}}
{{$order->shipping_city == null ? $order->customer_city : $order->shipping_city}}
{{$order->shipping_country == null ? $order->customer_country : $order->shipping_country}}
@endif
@endsection