{{ __('Voucher batches') }} {{ __('Agents') }} @if (session('voucher-flash'))
{{ session('voucher-flash') }}
@endif
{{-- ── Generate ── --}} @if ($showForm)
{{ __('Generate a batch') }}
{{ __('Codes only work on the router you pick.') }}
{{ __('Optional. Stops unsold cards lasting forever.') }}
@endif {{-- ── Assign to an agent ── --}} @if ($assignBatchId)
{{ __('Give stock to an agent') }}
@if ($this->agents->isEmpty())

{{ __('No active agents yet.') }} {{ __('Add one first') }}.

@endif
@endif {{-- ── Batches ── --}}
{{ __('Batches') }}
@forelse ($batches as $b) @empty @endforelse
{{ __('Batch') }} {{ __('Package') }} {{ __('Price') }} {{ __('Unsold') }} {{ __('Used') }} {{ __('Created') }} {{ __('Actions') }}
{{ $b->name }} {{ $b->quantity }} {{ __('codes') }} @if ($b->prefix) · {{ $b->prefix }}-… @endif @if ($b->router_name) · {{ $b->router_name }} @endif {{ $b->package?->package ?: '—' }} {{ money($b->price, 0) }} {{ $b->unused_count }} {{ $b->used_count }} {{ $b->created_at->format('d M Y') }} @if ($b->expires_at) {{ __('expires') }} {{ $b->expires_at->format('d M Y') }} @endif
{{ __('No voucher codes yet. Generate a batch to start selling cards.') }}
@if ($batches->hasPages())
{{ $batches->links() }}
@endif