@csrf
{{ __('Cancel') }}
{{ __('Admin · Users · Bulk import') }}

{{ __('Import users from') }} {{ __('CSV') }}

{{ __("Upload a CSV with up to 5,000 users at a time. They'll all receive a magic-link login email after import succeeds.") }}

{{-- Result / validation banners --}} @if (session('success'))
{{ session('success') }}
@endif @if (session('error'))
{{ session('error') }}
@endif @error('csv')
{{ $message }}
@enderror @if (session('import_errors') && count(session('import_errors')))
{{ __('Rows that need attention:') }}
    @foreach (session('import_errors') as $line)
  • {{ $line }}
  • @endforeach
@endif
01 {{ __('Download the template') }}
{{ __('users-template.csv') }}
{{ __('Columns: name, email, mobile, role, workspace, gender, address, status') }}
{{ __('Download') }}
02 {{ __('Choose CSV file') }} *
03 {{ __('Import options') }}
{{ __('Applied to rows missing the workspace column.') }}
{{-- TEMPORARY inline copy of resources/js/charts/admin-users-import.js. Here so the page works WITHOUT running `npm run build` (the bundled module needs a rebuild + asset upload). To revert to the proper build: delete this whole @push block and re-add page="admin-users-import" on the layout tag above — the module is already registered in app.js. Progressive enhancement only: the form submits fine even without this. --}} @push('scripts') @endpush