@extends('admin.layouts.app') @section('title', 'Orders') @section('content')

Orders

@foreach($orders as $order) @endforeach
OrderCustomerPaymentTxnIDAmountStatusDateActions
{{ $order->order_number }} {{ $order->user->name ?? 'N/A' }} {{ $order->payment_method }} {{ $order->transaction_id }} {{ \App\Models\Setting::get('currency_symbol','৳') }}{{ number_format($order->total, 2) }} {{ ucfirst($order->status) }} {{ $order->created_at->format('M d, Y') }} @if($order->status === 'pending')
@csrf @method('PATCH')
@csrf @method('PATCH')
@endif
{{ $orders->links() }} @endsection