@extends('layouts.app') @section('title', 'BillAvenue MDM Import | ' . config('app.name')) @section('content')

BillAvenue — MDM Import

@if (session('success')) @endif @if ($errors->any()) @endif {{-- ── Upload Form ─────────────────────────────────────────────────────── --}}
Upload MDM File
@csrf
@error('type')
{{ $message }}
@enderror
Column header must be one of: biller_id, Biller ID, BillerId, or billerId. Max 20 MB.
@error('file')
{{ $message }}
@enderror
How to process

After upload, run the artisan command on the server:

php artisan billavenue:process-mdm-import {import_id}

Options:

  • --batch=100 — biller IDs sent in one BillAvenue call (default 100; use a smaller value if a batch is rejected)
  • --sleep=500 — ms between API calls (default 500)

full_mdm & modification: calls BillAvenue Biller Info API for each batch of biller IDs and upserts into bbps_billers.
deactivation: marks billers inactive — no API call.

{{-- ── Import History ───────────────────────────────────────────────────── --}}
Import History
@forelse ($imports as $imp) @php $pending = $imp->total_count - $imp->processed_count; $pct = $imp->total_count > 0 ? round(($imp->processed_count / $imp->total_count) * 100) : 0; @endphp @empty @endforelse
# Type File Total Done OK Failed Pending Status Started Completed
{{ $imp->id }} @if ($imp->type === 'full_mdm') Full MDM @elseif ($imp->type === 'modification') Modification @else Deactivation @endif {{ $imp->file_name }} {{ number_format($imp->total_count) }} {{ number_format($imp->processed_count) }}
{{ number_format($imp->success_count) }} {{ number_format($imp->failed_count) }} {{ number_format($pending) }} @switch($imp->status) @case('pending') Pending @break @case('processing') Processing @break @case('completed') Completed @break @case('failed') Failed @break @endswitch {{ $imp->started_at?->format('d M Y H:i') ?? '—' }} {{ $imp->completed_at?->format('d M Y H:i') ?? '—' }} View
No imports yet.
@if ($imports->hasPages()) @endif
@endsection