@extends('layout.admin.master') @section('meta-title', 'Orders') @section('body-class', 'menu-position-side menu-side-left full-screen with-content-panel') @section('breadcrumbs') @endsection @push('asset-top') @endpush @section('content')
Order #00{{$order['order']->id}}
Placed On{{date('F d, Y', strtotime($order['order']->created_at))}}
@csrf
@foreach($order['items'] as $item) @if($item['addons']) @endif @endforeach
Product Info Quantity Price
@if($item['product']) {{(app()->currentLocale()=='en')?$item['product']->name_en:$item['product']->name_ar}} @else Product Deleted @endif
Weight : {{$item->weight}}
@if($item['area'] ) {{ (app()->currentLocale() == 'en') ? $item['area']->name_en : $item['area']->name_ar }} @else {{ __('Area not found') }} @endif
{{$item->delivery_date}}
@if($item['slot']) {{ date('h:i A', strtotime($item['slot']->start)) }} - {{ date('h:i A', strtotime($item['slot']->end)) }} @else {{ __('Time slot not available') }} @endif
{{($item->message)?$item->message:'No message'}}
{{$item->quantity}}
{{$item->quantity*$item->price}} KWD
Addons
@foreach($item['addons'] as $addon) @endforeach
{{(app()->currentLocale()=='en')?$addon['addon']->name_en:$addon['addon']->name_ar}}
{{$addon['qty']}}
{{$addon['price']*$addon['qty']}} KWD
Order Summary
Subtotal
{{$order['cart']->subtotal}} KWD
Coupon Code{{$order['cart']->coupon}}
{{($order['cart']->discount)?$order['cart']->discount:0}} KWD
Delivery Charges
{{($order['order']->shipping)?$order['order']->shipping:0}} KWD
Total
{{(float)$order['cart']->subtotal - (float)$order['cart']->discount + (float)$order['order']->shipping}} KWD
{{$order['order']->billing_name}}
Phone
{{$order['order']->billing_phone}}
Order Type
{{ucwords($order['order']->type)}}
Address
{{$order['order']->billing_name}} - {{$order['order']->billing_phone}}
{{$order['order']->billing_block}}, {{$order['order']->billing_street}}, @if($item['area']) {{ (app()->currentLocale() == 'en') ? $item['area']->name_en : $item['area']->name_ar }}, @endif {{$order['order']->billing_avenue}}, {{$order['order']->billing_email}}
Payment Method
{{($order['order']->pay_type=='cod')?'Cash on delivery': $order['order']->pay_type}}
@endsection