{{-- Loaded into a common_model modal from Bulk Operations --}} @php $badge = fn ($status) => \App\Http\Controllers\IserveuCardAdminController::statusBadge($status); $results = collect($record->result ?? [])->keyBy('mobile_number'); @endphp
Type
{{ $record->type === 'onboard' ? 'Bulk Onboarding' : 'Bulk Load' }}
SR Number
{{ $record->sr_number ?? '-' }}
Status
{!! $badge($record->status) !!}
Last Checked
{{ $record->checked_at?->format('d-m-Y h:i A') ?? '-' }}
@if ($record->status_desc)
Message: {{ $record->status_desc }}
@endif
@if ($record->response)

iServeU response · HTTP {{ $record->response['http_status'] ?? '-' }} · {{ $record->response['at'] ?? '' }}

{{ json_encode($record->response['body'] ?? null, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES | JSON_UNESCAPED_UNICODE) }}
{{ $record->response['endpoint'] ?? '' }} @if ($record->type === 'onboard' && !$record->sr_number && ($record->response['body']['statusDesc'] ?? '') === 'No data found')
iServeU's bulk onboarding API answers "No data found" for every request from this API user, including the exact sample from their spec, while single onboarding works. This needs iServeU to enable bulk onboarding for ECOM365ADMIN. Until then use Submit One by One on the batch list, which sends these same rows through the single onboarding API.
@endif
@endif
@if ($record->type === 'onboard') @else @endif @foreach ($record->rows ?? [] as $row) @php $res = $results->get($row['mobile_number']); @endphp @if ($record->type === 'onboard') @else @endif @endforeach
#NameMobileEmailOVDCityCard RefMobileAmountResult
{{ $loop->iteration }}{{ $row['title'] }} {{ $row['first_name'] }} {{ $row['last_name'] }} {{ $row['mobile_number'] }} {{ $row['email'] }} {{ $row['ovd_type'] }} {{ $row['ovd_id'] }} {{ $row['city'] }} {{ $res['card_ref_no'] ?? '-' }}{{ $row['mobile_number'] }} ₹{{ number_format((float) $row['amount'], 2) }} @if ($res) {!! $badge($res['status']) !!} {{ $res['status_desc'] }} @else Pending @endif