@section('title','View Order') @push('vendor-style') @endpush @push('style') @endpush @push('vendor-script') @endpush @push('script') @endpush
{{-- Content --}}
@php $canFulfill = true; if($order->items) { foreach($order->items as $key => $item){ if (strtotime($item->date . ' ' . $item->time) > time()){ $canFulfill = false; break; } } } @endphp @if($order->status <=2 && $order->cancel_requested) @elseif($order->status ==1 && !$order->cancel_requested && $order->items->count() == 1) @elseif(auth()->user()->can('fulfill_order_update') && ($order->status ==2) && $canFulfill && !$order->cancel_requested) @elseif(!$order->refund_completed && $order->status ==3) @endif
@if($order->refund_completed)

@endif






Products

@if($order->items->count() > 1) @endif @if($order->items) @foreach($order->items as $key => $item) @if($order->items->count() > 1) @endif @endforeach @if($order->items->count() > 1) @endif @if($order->items->count() > 1) @endif @if($order->is_discount_applied) @if($order->items->count() > 1) @endif @endif @if($order->items->count() > 1) @endif @endif
#Status ActionItem Date Time Location Note Price
{{$key + 1}} @if ($item->status != 3 && $item->cancel_requested) Cancel Requested @elseif($item->status == 1) {{$item->status_label}} @elseif($item->status == 2) {{$item->status_label}} @elseif($item->status == 3) {{$item->status_label}} @elseif($item->status == 4) {{$item->status_label}} @endif @if($item->status <=2 && $item->cancel_requested) @elseif($item->status ==1 && !$item->cancel_requested) @elseif(($item->status ==2) && !$item->cancel_requested) @endif {{$item->product->title}} {{$item->date_admin_display}} {{$item->time_admin_display}} {{$item->location}} {{$item->note}} {{$item->price}}KWD
Sub Total {{$order->sub_total}}KWD
Handling Charge {{$order->handling_charge}}KWD
Discount {{$order->discount}}KWD
Total {{$order->amount}}KWD