@extends('admin.layouts.main') @php $page_name = 'Orders'; @endphp @section('content')
| # | User | Order ID | Transaction ID | Status | Create Order | Is Paid | Is Delivered | Payment Type | Created At | Actions | |
|---|---|---|---|---|---|---|---|---|---|---|---|
| {{ $order->id }} | {{ $order->user->name ?? 'N/A' }} {{ $order->user->mobile ?? 'N/A' }} |
{{ $order->payment_order_id }} | {{ $order->transaction_id }} | {{-- @if ($order->under_process == 0) {{ ucfirst(config("constant.order_status.$order->status")) }} @else --}} @if ($order->status == 'pending') {{ ucfirst('payment pending') }} @elseif($order->status == 'failed') {{ ucfirst('Order failed') }} @else under_process") }}"> {{ ucfirst(config("constant.under_process.$order->under_process")) }} @endif {{-- @endif --}} | {{ $order->is_paid ? 'Yes' : 'No' }} | {{ $order->is_delivered ? 'Yes' : 'No' }} | {{ ucfirst($order->payment_type) }} | {{ $order->created_at->format('d-m-Y H:i') }} | View {{-- Edit --}} | ||
| No orders found. | |||||||||||