@extends('layouts.dash') @section('title', 'Orders') @section('content')
Revenue: {{ taka($revenue) }} total • {{ taka($revenueToday) }} today • Auto-expire: {{ (int) setting('nagorikpay_expire_minutes',30) }} min • Auto-recheck every 5 min
| # | User | API / Package | Amount | Payment | Status | Action |
|---|---|---|---|---|---|---|
| {{ $o->id }} {{ fmt_date($o->created_at, true) }} @if($o->expires_at && $o->status === 'pending') Exp {{ $o->expires_at->diffForHumans() }}@endif |
{{ $o->user->name }} {{ $o->user->email }} |
{{ $o->order_kind === 'wallet_topup' ? 'Wallet top-up' : ($o->service?->name ?? '—') }} {{ $o->order_kind === 'wallet_topup' ? taka($o->amount) : (($o->package?->name ?? 'Custom credits').' • '.number_format((int) ($o->credit_quantity ?: ($o->package?->requests ?? 0))).' credits') }} |
{{ $o->amount > 0 ? taka($o->amount) : 'FREE' }} | {{ $o->payment_method }} {{ $o->sender_number }} {{ \Illuminate\Support\Str::limit($o->txn_id,18) }} @if($o->nagorikpay_txn && $o->nagorikpay_txn !== $o->txn_id) {{ \Illuminate\Support\Str::limit($o->nagorikpay_txn,18) }}@endif @if($o->attempts > 0) Attempts: {{ $o->attempts }}@endif |
{!! badge($o->status) !!}
@if($o->admin_note) {{ $o->admin_note }}@endif |
@if($o->status === 'pending')
@if($o->payment_method==='nagorikpay')
@endif
@else
@if($o->payment_method==='nagorikpay' && $o->txn_id && $o->status!=='approved')
@else
—
@endif
@endif
|