@extends('layouts.admin') @section('title', 'Orders') @section('page-title', 'Orders') @push('styles') @endpush @section('content')
| Order # | Customer | Total | Status | Payment Status | Date | Actions |
|---|---|---|---|---|---|---|
| {{ $order->order_number }} | {{ $order->user->name }} | ${{ number_format($order->total_amount, 2) }} | @if($order->payment_status === 'confirmed') @php $nextStatus = null; if ($order->status === 'confirmed') { $nextStatus = 'accepted'; } elseif ($order->status === 'accepted') { $nextStatus = 'dispatched'; } elseif ($order->status === 'dispatched') { $nextStatus = 'delivered'; } @endphp @if($nextStatus) @else {{ ucfirst($order->status) }} @endif @else {{ ucfirst($order->status) }} @endif | @if($order->payment_receipt_path) @if($order->payment_status === 'pending') Pending @elseif($order->payment_status === 'confirmed') Confirmed @elseif($order->payment_status === 'rejected') Rejected @endif @else No Receipt @endif | {{ $order->created_at->format('M d, Y') }} |
View
@if($order->payment_receipt_path && $order->payment_status === 'pending')
@endif
@if($order->tracking_number)
Tracked
@endif
|