@extends('layouts.app') @section('title', 'MDM Import #' . $import->id . ' | ' . config('app.name')) @section('content')

MDM Import #{{ $import->id }}

@if (session('success')) @endif {{-- ── Summary cards ────────────────────────────────────────────────────── --}}

Total

{{ number_format($stats['total']) }}

Success

{{ number_format($stats['success']) }}

Failed

{{ number_format($stats['failed']) }}

Pending

{{ number_format($stats['pending']) }}

{{-- ── Import details ───────────────────────────────────────────────────── --}}
Batch Details
Type @if ($import->type === 'full_mdm') Full MDM @elseif ($import->type === 'modification') Modification @else Deactivation @endif
File {{ $import->file_name }}
Status @switch($import->status) @case('pending') Pending @break @case('processing') Processing @break @case('completed') Completed @break @case('failed') Failed @break @endswitch
Started {{ $import->started_at?->format('d M Y H:i:s') ?? '—' }}
Completed {{ $import->completed_at?->format('d M Y H:i:s') ?? '—' }}
@php $pct = $stats['total'] > 0 ? round(($stats['processed'] / $stats['total']) * 100) : 0 @endphp
Progress{{ $pct }}%
Commands

Process this batch:

php artisan billavenue:process-mdm-import {{ $import->id }}

With custom throttle (200ms between calls):

php artisan billavenue:process-mdm-import {{ $import->id }} --sleep=200
@if ($stats['failed'] > 0)

{{ number_format($stats['failed']) }} item(s) failed. Reset them to pending, then re-run the command:

@csrf
@endif
{{-- ── Item list ─────────────────────────────────────────────────────────── --}}
Items
Failed and pending shown first
@forelse ($items as $item) @empty @endforelse
# Biller ID Action Status Error Processed At
{{ $item->id }} {{ $item->biller_id }} @if ($item->action === 'upsert') Upsert @else Deactivate @endif @switch($item->status) @case('pending') Pending @break @case('success') Success @break @case('failed') Failed @break @endswitch {{ $item->error_message ?? '—' }} {{ $item->processed_at?->format('H:i:s d M') ?? '—' }}
No items found.
@if ($items->hasPages()) @endif
@endsection