@php $order = $order ?? null; $payments = $payments ?? collect(); @endphp @if($order)
Customer: {{ $order->user->name ?? 'N/A' }}
Package: {{ $order->package->title ?? 'N/A' }}
Final Amount: ₹{{ number_format($order->amount_final, 2) }}
@php $statusColors = [ 'pending' => 'warning', 'partially_paid' => 'info', 'paid' => 'success', 'cancelled' => 'danger', 'refunded' => 'secondary' ]; $statusColor = $statusColors[$order->status] ?? 'secondary'; @endphp {{ ucfirst(str_replace('_', ' ', $order->status)) }}| Transaction ID | Amount Paid | Status | Date | Remarks |
|---|---|---|---|---|
{{ $payment->transaction_id ?: 'N/A' }} |
₹{{ number_format($payment->amount_paid, 2) }} | {{ strtoupper($payment->payment_status) }} | {{ $payment->created_at->format('M d, Y h:i A') }} | {{ $payment->remarks ?: 'N/A' }} |
This order doesn't have any payments yet.