Importar leads

Sube un archivo CSV o XLSX. El sistema detecta columnas, sugiere mapeo automaticamente y rechaza archivos con mas de {{ $maxRows }} registros.

@if (session('status'))
{{ session('status') }}
@endif @if ($errors->has('file'))
{{ $errors->first('file') }}
@endif
@csrf
@if (is_array($preview))

Previsualizacion

Archivo
{{ $preview['original_name'] }}
Registros detectados
{{ $preview['total_rows'] }}
Columnas detectadas
{{ count($preview['headers']) }}
@csrf
@foreach ($targetFields as $field => $label)
@endforeach
@foreach ($preview['headers'] as $header) @endforeach @foreach ($preview['sample_rows'] as $sampleRow) @foreach ($preview['headers'] as $header) @endforeach @endforeach
{{ $header }}
{{ $sampleRow[$header] ?? '' }}
Se importaran solo filas con nombre o telefono. Las columnas sin mapear se ignoran.
@endif