Orders #{{ substr($order->ulid, 0, 8) }}
Order Details
Back to Orders
@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif
Order Information
Order ID
{{ $order->ulid }}
Status
@php $statusLabel = $order->status; if ($order->status === 'failed') { $statusLabel = 'rejected'; } $sClass = match($order->status) { 'paid' => 'badge-paid', 'refunded', 'failed' => 'badge-refunded', default => 'badge-pending' }; @endphp {{ strtoupper($statusLabel) }}
Date
{{ $order->created_at->format('F d, Y h:i A') }}
Gateway
{{ $order->payment_gateway ?? 'Unknown' }}
Purchased Items
@foreach($order->items as $item) @endforeach @if($order->tax > 0) @endif
Product Amount
{{ $item->product_title }}
@if($item->product_version)
v{{ $item->product_version }}
@endif
${{ number_format($item->unit_price, 2) }}
Subtotal ${{ number_format($order->subtotal, 2) }}
Tax ${{ number_format($order->tax, 2) }}
Total ${{ number_format($order->total, 2) }}
Customer Details
Name
{{ $order->user->name ?? $order->billing_name ?? 'N/A' }}
Email
{{ $order->user->email ?? $order->billing_email ?? 'N/A' }}
@if($order->billing_country)
Country
{{ $order->billing_country }}
@endif
@if($order->isPending())
Action Required

This order is currently pending. You can approve it to fulfill the digital products, or reject it if the payment is invalid.

@csrf
@csrf
@elseif($order->isPaid())
Revoke Access

If you approved this manual payment by mistake, you can revoke access. This will mark the order as rejected.

@csrf
@endif