@foreach ($this->statuses() as $st) @endforeach
@forelse ($orders as $o) @php $done = data_get($o->drip_progress, 'runs_done', 0); $qtyPerRun = $o->drip_quantity ?: $o->quantity; $totalUnits = $qtyPerRun * $o->runs; $isCancelable = !in_array($o->status, ['canceled', 'completed', 'refunded']); @endphp @empty @endforelse
{{ __('ID') }} {{ __('Client') }} {{ __('Service / Link') }} {{ __('Cost') }} {{ __('Status') }} {{ __('Progress') }} {{ __('Interval') }} {{ __('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() }}
{{ $o->link }}
{{ $o->cost !== null ? money($o->cost) : '—' }} {{ $done }} / {{ $o->runs }} {{ $o->interval_minutes }} {{ __('min') }} {{ number_format($totalUnits) }} {{ 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 --}}