Invoice No{{ $invoice->invoice_number ?? 'INV-'.$order->id }}
Billed To{{ $order->user->name }}
{{ $order->user->email }} @if($order->user->phone) • {{ $order->user->phone }}@endif
API / Service{{ $order->service?->name ?? ($order->order_kind === 'wallet_topup' ? 'Wallet' : '—') }} @if($order->service?->slug)/api/{{ $order->service->slug }}@endif
Purchase{{ $order->order_kind === 'wallet_topup' ? 'Wallet top-up' : (($order->package?->name ?? 'Custom credits').' — '.number_format((int) ($order->credit_quantity ?: ($order->package?->requests ?? 0))).' credits') }}
Key credited{{ $order->key->api_key ?? $order->user->keys()->first()?->api_key ?? '—' }}
Payment Method{{ $order->payment_method === 'wallet' ? 'Wallet balance' : 'Auto Payment' }}
Transaction ID{{ $order->txn_id ?: '—' }}
@if($order->sender_number)
Sender Number{{ $order->sender_number }}
@endif
Payment Date{{ fmt_date($order->reviewed_at ?: $order->created_at, true) }}
Total Paid{{ $order->amount > 0 ? taka($order->amount) : 'FREE' }}
@if($order->status==='approved')
Payment verified and credits added successfully.
@endif