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

Lote #{{ $batch->id }}

Visualização das linhas brutas lidas do arquivo enviado.


Tipo:
{{ $typeLabels[$batch->type] ?? $batch->type }}
Status:
{{ ucfirst($batch->status) }}
Total de linhas:
{{ $batch->total_rows }}
Arquivo:
{{ $batch->original_filename ?: '-' }}
Formato:
{{ $sourceFormatLabels[$batch->source_format] ?? strtoupper((string) $batch->source_format) }}
Mapeamento salvo:
{{ !empty($batch->mapping) ? 'Sim' : 'Nao' }}
@if($rows->isEmpty())
Nenhuma linha encontrada neste lote.
@else
@foreach($rows as $row) @endforeach
Linha Status Dados brutos Dados normalizados Erros
{{ $row->row_number }} {{ ucfirst($row->status) }}
{{ json_encode($row->raw_data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) }}
@if(!empty($row->normalized_data))
{{ json_encode($row->normalized_data, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) }}
@else - @endif
@if(!empty($row->errors))
{{ json_encode($row->errors, JSON_PRETTY_PRINT | JSON_UNESCAPED_UNICODE | JSON_UNESCAPED_SLASHES) }}
@else - @endif
{{ $rows->links() }} @endif
@endsection