@extends('layouts.app') @section('title') Prepaid Bulk Operations | {{ config('app.name') }} @endsection @php $badge = fn ($status) => \App\Http\Controllers\IserveuCardAdminController::statusBadge($status); @endphp @section('content')

Prepaid Bulk Operations

@include('backend.iserveu-cards.partials.mode-alert') @if (session('bulk_errors'))
Nothing was submitted. Fix these rows and upload the file again:
@endif
Bulk Onboarding
CSV Template

One customer per row. Columns: id_no (optional affiliate ID No), title (Mr/Mrs/Ms), first_name, last_name, mobile_number, email, dob (YYYY-MM-DD or DD-MM-YYYY), gender (Male/Female/Other), ovd_type (PAN/AADHAAR), ovd_id, address, city, state, pincode. Up to {{ $maxRows }} rows. Every row is checked first; nothing is sent if any row has an error.

@canAccess('payments-prepaid-card', 'Create')
@csrf
@endcanAccess

After submission use Check Status: successful rows get their card reference and are synced (KYC OTP may still be pending).

Bulk Load
CSV Template

Columns: mobile_number, amount (₹{{ number_format($minLoad) }} – ₹{{ number_format($maxLoad) }} per card). Every mobile must already be an onboarded prepaid card in this list. Step 1 sends a bulk load OTP for the total; step 2 is entering that OTP on the batch below. Money moves from the pool wallet.

@canAccess('payments-prepaid-card', 'Approval')
@csrf
@else

You don't have permission to load cards.

@endcanAccess
Batches
@forelse ($requests as $record) @empty @endforelse
#DateTypeRowsAmount SR NumberStatusByAction
{{ $record->id }} {{ $record->created_at->format('d-m-Y h:i A') }} {{ $record->type === 'onboard' ? 'Onboarding' : 'Load' }} {{ $record->total_rows }} {{ $record->total_amount !== null ? '₹' . number_format((float) $record->total_amount, 2) : '-' }} {{ $record->sr_number ?? '-' }} {!! $badge($record->status) !!}{{ $record->status_desc }} {{ trim(($record->creator->name ?? '') . ' ' . ($record->creator->last_name ?? '')) ?: '-' }}
View @if ($record->sr_number && in_array($record->status, ['SUBMITTED', 'PARTIAL'], true)) @canAccess('payments-prepaid-card', 'Update')
@csrf
@endcanAccess @endif @if ($record->canSubmitOneByOne()) @canAccess('payments-prepaid-card', 'Create')
@csrf
@endcanAccess @endif @if ($record->status === 'OTP_PENDING') @canAccess('payments-prepaid-card', 'Approval')
@csrf
@endcanAccess @endif
No bulk batches yet.
{{ $requests->links('pagination::bootstrap-5') }}
@endsection