@extends('layouts.vendor') @section('styles') @endsection @section('content')
@include('includes.admin.form-both')

Order Details

@php $price = number_format($order->vendororders()->where('user_id','=',$user->id)->sum('price'),2); if($user->shipping_cost != 0){ $price = $price + round($user->shipping_cost * $order->currency_value , 2); } if($order->tax != 0){ $tax = ($price / 100) * $order->tax; $price += $tax; } @endphp
Order ID : {{$order->order_number}}
Total Product : {{$order->vendororders()->where('user_id','=',$user->id)->sum('qty')}}
Total Cost :{{$order->currency_sign}}{{ round($price * $order->currency_value , 2) }}
Ordered Date : {{date('d-M-Y H:i:s a',strtotime($order->created_at))}}

Billing Details

Name : {{$order->customer_name}}
Email : {{$order->customer_email}}
Phone : {{$order->customer_phone}}
Address : {{$order->customer_address}}
Country : {{$order->customer_country}}
City : {{$order->customer_city}}
Postal Code : {{$order->customer_zip}}
@if($order->dp == 0)

Shipping Details

@if($order->shipping == "pickup") @else @endif
Pickup Location: : {{$order->pickup_location}}
Name: : {{$order->shipping_name == null ? $order->customer_name : $order->shipping_name}}
Email: : {{$order->shipping_email == null ? $order->customer_email : $order->shipping_email}}
Phone: : {{$order->shipping_phone == null ? $order->customer_phone : $order->shipping_phone}}
Address: : {{$order->shipping_address == null ? $order->customer_address : $order->shipping_address}}
Country: : {{$order->shipping_country == null ? $order->customer_country : $order->shipping_country}}
City: : {{$order->shipping_city == null ? $order->customer_city : $order->shipping_city}}
Postal Code: : {{$order->shipping_zip == null ? $order->customer_zip : $order->shipping_zip}}
@endif

Products Ordered

@foreach($cart->items as $key => $product) @if($product['item']['user_id'] != 0) @if($product['item']['user_id'] == $user->id) @endif @endif @endforeach
Product ID# Shop Name Status Product Title Quantity Size Color Total Price
{{ $product['item']['id'] }} @if($product['item']['user_id'] != 0) @php $user = App\Models\User::find($product['item']['user_id']); @endphp @if(isset($user)) {{$user->shop_name}} @else Vendor Removed @endif @endif @if($product['item']['user_id'] != 0) @php $user = App\Models\VendorOrder::where('order_id','=',$order->id)->where('user_id','=',$product['item']['user_id'])->first(); @endphp {{$user->status}} @endif @if($product['item']['user_id'] != 0) @php $user = App\Models\User::find($product['item']['user_id']); @endphp @if(isset($user)) {{strlen($product['item']['name']) > 30 ? substr($product['item']['name'],0,30).'...' : $product['item']['name']}} @else {{strlen($product['item']['name']) > 30 ? substr($product['item']['name'],0,30).'...' : $product['item']['name']}} @endif @endif @if($product['license'] != '') View License @endif {{$product['qty']}} {{ $product['item']['measure'] }} {{$product['size']}} {{$order->currency_sign}}{{ round($product['price'] * $order->currency_value , 2) }}
{{-- LICENSE MODAL --}} {{-- LICENSE MODAL ENDS --}} {{-- MESSAGE MODAL --}}
{{-- MESSAGE MODAL ENDS --}} {{-- ORDER MODAL --}} {{-- ORDER MODAL ENDS --}} @endsection @section('scripts') @endsection