@foreach ($this->statuses() as $st) @endforeach
@forelse ($orders as $o) @php $extra = $o->extra ?? []; $username = $extra['username'] ?? $o->link ?? '—'; $subMin = $extra['min'] ?? null; $subMax = $extra['max'] ?? null; $posts = $extra['posts'] ?? null; $delay = $extra['delay'] ?? null; $expiry = $extra['expiry'] ?? null; $totalQty = ($subMax && $posts) ? (int)$subMax * (int)$posts : null; $isCancelable = !in_array($o->status, ['canceled', 'completed', 'refunded']); @endphp @empty @endforelse
{{ __('ID') }} {{ __('Client') }} {{ __('Service / Profile') }} {{ __('Charge') }} {{ __('Status') }} {{ __('Min / Max') }} {{ __('Posts') }} {{ __('Delay') }} {{ __('Qty') }} {{ __('Date') }}
{{ $o->id }}
{{ $o->user?->name ?? '—' }}
{{ $o->user?->email }}
@if($o->api_service_id ?? $o->service_id) {{ $o->api_service_id ?? $o->service_id }} – @endif {{ $o->serviceName() }}
{{ $username }}
{{ money($o->charge) }} @if($subMin && $subMax) {{ number_format($subMin) }} / {{ number_format($subMax) }} @else — @endif {{ $posts ? number_format($posts) : '—' }} {{ $delay ? $delay.'m' : '—' }} {{ $totalQty ? number_format($totalQty) : '—' }} {{ rf_date($o->created_at) }} @if ($isCancelable) @endif
@if ($orders->hasPages())
{{ $orders->links() }}
@endif
{{-- Detail modal (Alpine-only, zero round-trip) --}} {{-- Edit modal --}}
@error('editLink')

{{ $message }}

@enderror
@error('editQuantity')

{{ $message }}

@enderror

{{ __('Editing an order does not issue any refund or charge. Use "Cancel & refund" for money adjustments.') }}

{{-- Change status modal --}}