@extends('admin.adminLayout') @section('admin_page_title') Batch #{{ $batchId }} Details @endsection @section('admin_content')
@php $batchType = $batch->batch_type ?? 'import'; // import | reassign $isReassign = $batchType === 'reassign'; @endphp

Batch #{{ $batchId }} – {{ $isReassign ? 'Reassign Queue' : 'Import Batch' }}

@if($isReassign) Leads in this batch are currently unassigned (e.g., user was deleted without a parent). Please assign them to a new owner. @else Only leads still assigned to you (not pushed to subusers) are listed. @endif
Uploaded rows: {{ $batch->total_rows }}
Inserted leads: {{ $batch->inserted_rows }}
{{-- Assign toolbar --}}
{{-- Assign to user --}}
@if($subUsers->isEmpty()) No eligible users available for assignment. @endif
{{-- Bulk status --}}
@if($isReassign) Only valid rows with an existing lead can be assigned or updated. @else Only valid rows owned by you can be assigned or updated. @endif
@csrf
# Lead Code Full Name Email Phone Country City Validation Lead Status Uploaded By Created
@endsection @section('script') @endsection