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

Order Booking

@if(Request::has('order'))
@csrf
  • Name: {{ ucfirst($order->customer_name) }}
  • {{--
    City: {{ ucfirst($order->customer_city) }}
    --}}
    City:
  • Address: {{ ucfirst($order->customer_address) }}
  • {{--
    Phone: {{ $order->customer_phone }}
    --}}
    Phone:
  • Email: {{ is_null($order->customer_email)? 'user@makeupcityshop.com' : $order->customer_email }}
  • Subtotal: {{ number_format($order->subtotal, 2) }}
  • Shipping Amount: {{ number_format($order->shipping_amount, 2) }}
  • Tax Amount: {{ number_format($order->tax_amount, 2) }}
  • Discount Amount: {{ number_format($order->discount_amount, 2) }}
  • Payment Method: {{ $order->payment_method }}
  • Shipping Method: {{ !is_null($api)? $api->name : 'DHL' }}
@if($order->shipping_courier == 'Forrun(Express) - Express Delivery (within 2 hours)' && Auth::user()->id != 88)
This order is Forrun(Express) - Express Delivery and cannot be booked by this account.
@else
- Add Package @endif
@if(!is_null($api) && $api->name == 'GoPanda' && $order->customer_city == 'Jaranwala') @foreach($orderItems as $orderItem) @if(checkBrandCode($orderItem->brand_id)) @if(checkIfItemIsShipped($orderItem->order_product_id)) @if(checkIfItemInventory($orderItem->upc)) @endif @endif @endif @endforeach @else @foreach($orderItems as $orderItem) @if(checkIfItemIsShipped($orderItem->order_product_id) == true) @php $upcs = []; $upcSku = DB::table('sku_upc_example')->where('sku', $orderItem->upc)->get(); if(!is_null($upcSku)){ foreach($upcSku as $val){ $upcs[] = $val->upc; } } @endphp <@foreach($upcs as $upc) input type="hidden" name="hscode[]" class="form-control" value="{{ $orderItem->hscode }}"> @endif @endforeach @endif
Upc Sku Weight Row Total Ordered Quantity Remaining Quantity Scanned Quantity Remarks Package
@php $upcs = []; $upcSku = DB::table('sku_upc_example')->where('sku', $orderItem->item_sku)->get(); if(!is_null($upcSku)){ foreach($upcSku as $val){ $upcs[] = $val->upc; } } @endphp {{ implode(',', $upcs) }} {{ $orderItem->item_sku }} {{ $orderItem->item_weight }} {{ number_format(($orderItem->item_row_total), 2) }}
{{ floor($orderItem->item_quantity_ordered) }}
{{ floor($orderItem->item_quantity_ordered) - floor($orderItem->qty_confirmed) }}
{{ floor($orderItem->qty_confirmed) }}
@if($upcs) @foreach($upcs as $upc)
{{ $upc }}
@endforeach @else {{ $orderItem->upc }} @endif
{{ $orderItem->item_sku }} {{ $orderItem->item_weight }} {{ number_format(($orderItem->item_row_total), 2) }}
{{ floor($orderItem->item_quantity_ordered) }}
{{ floor($orderItem->item_quantity_ordered) - floor($orderItem->qty_confirmed) }}
{{ floor($orderItem->qty_confirmed) }}
@if(!is_null($api)) @if(!is_null($api->extra_fields)) @foreach($extra_fields as $key => $value)
@endforeach @endif @endif @if($order->shipping_courier == 'Forrun(Express) - Express Delivery (within 2 hours)' && Auth::user()->id != 88)

This order is Forrun(Express) - Express Delivery
and cannot be booked by this account.

@else
@endif
@endif
@endsection @section('script') @endsection