@extends('admin.layout.app') @section('preload-section') {{-- You must include files that need to be preloaded: Syncronous scripts and Stylesheets mostly --}} @endsection @section('content')
| # | {{ __('keywords.Cart_id') }} | {{ __('keywords.Cart price') }} | {{ __('keywords.User') }} | {{ __('keywords.Order_Date') }} | {{ __('keywords.Delivery_Date') }} | {{ __('keywords.Status') }} | {{ __('keywords.Payment Method') }} | {{ __('keywords.Payment Status') }} | {{ __('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 }}) | {{-- @dd($order->order_status) --}} @if ($order->order_status == null || $order->order_status == '')
NOT PLACED |
@endif
@if ($order->order_status == 'payment_pending' || $order->order_status == 'payment_pending')
Payment Pending |
@endif
@if ($order->order_status == 'Pending' || $order->order_status == 'pending')
Pending |
@endif
@if ($order->order_status == 'Confirmed' || $order->order_status == 'confirmed')
Confirmed |
@endif
@if ($order->order_status == 'out_for_delivery' || $order->order_status == 'Out_For_Delivery')
Out For Delivery |
@endif
@if ($order->order_status == 'Cancelled' || $order->order_status == 'cancelled')
Cancelled |
@endif
@if ($order->order_status == 'Completed' || $order->order_status == 'completed')
Completed |
@endif
@if ($order->order_status == 'failed' || $order->order_status == 'failed')
Failed |
@endif
@if ( $order->payment_method == 'COD' || $order->payment_method == 'cod' || $order->payment_method == 'Cod' || $order->payment_method == 'COD') @else @endif {{ $order->payment_method }} | @if ($order->payment_status == null || $order->payment_status == '')
NOT PLACED |
@endif
@if ($order->payment_status == 'Pending' || $order->payment_status == 'pending')
Pending |
@endif
@if ($order->payment_status == 'Confirmed' || $order->payment_status == 'confirmed')
Confirmed |
@endif
@if ($order->payment_status == 'Refunded' || $order->payment_status == 'Refunded')
Refunded |
@endif
@if ($order->payment_status == 'Cancelled' || $order->payment_status == 'cancelled')
Cancelled |
@endif
@if ($order->payment_status == 'Paid' || $order->payment_status == 'paid')
Paid |
@endif
@if ($order->payment_status == 'failed' || $order->payment_status == 'failed')
Failed |
@endif
{{-- {{$order->payment_status}} | --}}|
| {{ __('keywords.No data found') }} | @for ($i = 1; $i < 9; $i++) @endfor