@extends('layouts.digitar') @section('Breadcrumbs') {!! Breadcrumbs::render('imports.index') !!} @endsection @php $typeLabels = [ 'documents' => 'Documentos', 'laws_projects' => 'Projetos de Lei', ]; $sourceFormatLabels = [ 'csv' => 'CSV', 'txt' => 'TXT', 'sql' => 'SQL', ]; @endphp @section('content')

Importador de Dados

Envie arquivos CSV/TXT e acompanhe os lotes processados pelo importador.


@include('flash::message')
@if($batches->isEmpty())
Nenhum lote de importação encontrado.
@else
@foreach($batches as $batch) @endforeach
ID Tipo Formato Arquivo Status Total Sucesso Erros Linhas Criado em Ações
{{ $batch->id }} {{ $typeLabels[$batch->type] ?? $batch->type }} {{ $sourceFormatLabels[$batch->source_format] ?? strtoupper((string) $batch->source_format) }} {{ $batch->original_filename ?: ($batch->filename ?: '-') }} {{ ucfirst($batch->status) }} {{ $batch->total_rows }} {{ $batch->success_rows }} {{ $batch->error_rows }} {{ $batch->rows_count }} {{ optional($batch->created_at)->format('d/m/Y H:i') }} Visualizar Mapear
{{ $batches->links() }} @endif
@endsection