@extends('layouts::admin') @section('page_title', 'Import Participants') @section('page_subtitle', 'Upload and validate participant data in bulk') @section('content')
@if (session('error'))
{{ session('error') }}
@endif {{-- Upload Card --}}

Upload Participant File

Select the program and upload your CSV or Excel file. Columns required: name, email, phone, course_slug

@csrf {{-- Program selector --}}
@error('program_id')

{{ $message }}

@enderror
{{-- Dropzone --}}

Drop your file here

or click to browse from your computer

Supports CSV, XLSX, XLS · Max 10MB

@error('file')

{{ $message }}

@enderror
{{-- Recent Imports --}}

Recent Imports

@if ($recentImports->isEmpty())

No imports yet. Upload a file above to get started.

@else
@foreach ($recentImports as $log) @php $meta = $log->metadata ?? []; @endphp @endforeach
Description Imported Duplicates Errors By Date
{{ $log->description }} {{ $meta['imported'] ?? '—' }} {{ $meta['duplicates'] ?? '—' }} {{ $meta['errored'] ?? '—' }} {{ $log->user?->name ?? '—' }} {{ $log->created_at->format('M d, Y H:i') }}
@endif
@endsection