@extends('layouts.admin') @section('title', 'Order ' . $order->public_id) @section('content') @use('App\Support\Money') @php $me = auth()->user(); $st = $order->status->value; @endphp

← Orders

Order {{ $order->public_id }} {{ $st }}

Reseller {{ $order->user?->email }} · {{ $order->service->name }} · UID {{ $order->player_uid }}@if ($order->region) · {{ $order->region }}@endif · provider id {{ $order->provider_order_id }} · submitted {{ $order->submitted_at?->format('d M H:i') ?? 'never' }} · lookups {{ $order->reconcile_attempts }}

Reserved
{{ Money::format($order->reserved_amount) }}
Charged / released
{{ Money::format($order->captured_amount) }} / {{ Money::format($order->released_amount) }}
Refunded
{{ Money::format($order->refunded_amount) }}
{{ $order->failure_code }}

Items (normalized results)

@foreach ($order->items as $i)@endforeach
#ProductPriceStatusReason
{{ $i->id }}{{ $i->product->code }}{{ Money::format($i->unit_price) }}{{ $i->status->value }}{{ $i->failure_code ?? '—' }}
@if ($me->hasPermission('orders.resolve') && in_array($st, ['processing', 'manual_review']))

Resolve

@if ($order->submitted_at)
@csrf
@endif
Resolve manually (after checking the provider's own records)
@csrf @foreach ($order->items as $i) @endforeach @include('admin.partials.reason', ['id' => 'resolve'])
@endif @if ($me->hasPermission('orders.resolve') && $st === 'pending' && ! $order->submitted_at)

Never sent

This order was accepted but never reached the provider, so re-submitting cannot double-top-up.

@csrf @include('admin.partials.reason', ['id' => 'retry'])
@endif @if ($me->hasPermission('orders.refund') && in_array($st, ['success', 'partial']) && bccomp((string) $order->captured_amount, '0', 2) > 0)

Refund

Returns {{ Money::format($order->captured_amount) }} to the reseller's wallet. One time only. Follow your refund policy.

@csrf @include('admin.partials.reason', ['id' => 'refund'])
@endif

Wallet postings

@forelse ($transactions as $t)@empty@endforelse
DateTypeAmountReference
{{ $t->created_at->format('d M, H:i') }}{{ $t->type->value }}{{ Money::format($t->amount) }}{{ $t->reference }}
None.

Provider callbacks (scrubbed)

@forelse ($events as $e)
{{ $e->created_at->format('d M H:i:s') }} from {{ $e->source_ip }}
{{ json_encode($e->payload, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) }}
@empty

No callbacks received.

@endforelse
@endsection