@extends('admin.layout.app') @section('preload-section') @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
{{ csrf_field() }}




@if ($orders->isNotEmpty()) @php $i=1; @endphp @foreach ($orders as $order) @if ($order->payment_status == 'success' || $order->payment_status == 'Success') @endif @if ($order->payment_status == 'cod' || $order->payment_status == 'COD' || $order->payment_status == 'Cod') @endif @if ($order->payment_status == 'pending' || $order->payment_status == 'Pending') @endif @php $i++; @endphp @endforeach @else @for ($i = 1; $i < 10; $i++) @endfor @endif
# {{ __('keywords.Cart_id') }} {{ __('keywords.Cart price') }} {{ __('keywords.User') }} Order Date Expected Delivery Date {{ __('keywords.Cart Products') }} {{ __('keywords.Payment') }} {{ __('keywords.Order Status') }}
{{ $i }} {{ $order->cart_id }} {{ $order->total_price }} {{ $order->user?->name }}

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

{{ $order->order_date }} {{ $order->delivery_date }} {{ $order->payment_method }} | Paid Cash on DeliveryPending

{{ $order->order_status }}

{{ __('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