@extends('admin.layout.app') @section('preload-section') {{-- You must include files that need to be preloaded: Syncronous scripts and Stylesheets mostly --}} @endsection @section('content')
@if (session()->has('success'))
@if (is_array(session()->get('success')))
    @foreach (session()->get('success') as $message)
  • {{ $message }}
  • @endforeach
@else {{ session()->get('success') }} @endif
@endif @if (count($errors) > 0) @if ($errors->any()) @endif @endif

{{ __('keywords.All orders') }}


@if (count($orders) > 0) @php $i=1; @endphp @foreach ($orders as $order) @if ($order->order_status == null || $order->order_status == '') @endif @if ($order->order_status == 'Pending' || $order->order_status == 'pending') @endif @if ($order->order_status == 'Confirmed' || $order->order_status == 'confirmed') @endif @if ($order->order_status == 'out_for_delivery' || $order->order_status == 'Out_For_Delivery') @endif @if ($order->order_status == 'Cancelled' || $order->order_status == 'cancelled') @endif @if ($order->order_status == 'Completed' || $order->order_status == 'completed') @endif @php $i++; @endphp @endforeach @else @for ($i = 1; $i < 9; $i++) @endfor @endif
# {{ __('keywords.Cart_id') }} {{ __('keywords.Cart price') }} {{ __('keywords.User') }} {{ __('keywords.Order_Date') }} {{ __('keywords.Delivery_Date') }} {{ __('keywords.Status') }} {{ __('keywords.Payment Method') }} {{ __('keywords.Details') }}
{{ $i }} {{ $order->cart_id }} {{ $order->total_price }} {{ $order->user?->name }}

({{ $order->user?->user_phone }})

{{ $order->order_date }} {{ $order->delivery_date }}({{ $order->time_slot }})

NOT PLACED

Pending

Confirmed

Out For Delivery

Cancelled

Completed

@if ( $order->payment_method == 'COD' || $order->payment_method == 'cod' || $order->payment_method == 'Cod' || $order->payment_method == 'COD') @else @endif {{ $order->payment_method }}
{{ __('keywords.No data found') }}

{{ $orders->render('pagination::bootstrap-4') }}
@foreach ($orders as $order)
@endforeach @endsection @section('postload-section') {{-- You must include files that have no direct efect on the load of the page and can be loaded meanwhile other tasks can be performed by user --}} @endsection