@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->status > 0 && $order->items->count() > 1) @endif @if($order->items) @foreach($order->items as $key => $item) @if($order->status > 0 && $order->items->count() > 1) @endif @endforeach @if($order->status > 0 && $order->items->count() > 1) @endif @if($order->is_discount_applied) @if($order->status > 0 && $order->items->count() > 1) @endif @endif @if($order->status > 0 && $order->items->count() > 1) @endif @endif
#Status ActionItem Date Time Location Choices 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 }} @if($item->option !=null) - {{@$item->option->dropdown->title}}({{@$item->option->price}} @Lang('custom.KWD')) @endif {{$item->date_admin_display}} {{$item->time_admin_display}} {{$item->location}} @if(!empty($item->addon_options)) @foreach($item->addon_options as $option)

{{ $option['addon_name_en'] }}: {{ $option['option_id'] > 0 ? $option['addon_option_en'] : $option['other'] }}, {{ $option['price'] ?? 0 }} @Lang('custom.KWD')

@endforeach @endif
{{$item->note}} {{$item->price }} @Lang('custom.KWD')
Sub Total {{$order->sub_total}} @Lang('custom.KWD')
Discount {{$order->discount}} @Lang('custom.KWD')
Total {{$order->amount}} @Lang('custom.KWD')