@extends('layouts.app') @section('title', 'XML Tratamento - ERP-PLUS') @section('page_title', 'XML Tratamento') @section('page_subtitle', 'Listagem de documentos com filtros para download e gerenciamento de XMLs.') @push('styles') @endpush @section('content')

Notas encontradas

{{ $documents->total() }} nota(s) @if ($hasFilters) com filtros aplicados @endif
XML completo: {{ $fullDocumentsCount }} Resumo: {{ $summaryDocumentsCount }}
{{-- Filter bar --}}
@if ($hasFilters) Limpar @endif
@csrf
@forelse ($documents as $document) @php $key = $document->access_key; $keyShort = strlen($key) === 44 ? substr($key, 0, 10).'...'.substr($key, -10) : $key; @endphp naoPodeCiencia) style="background:#fef2f2" @endif> @empty @endforelse
Chave de acesso Emissao Fornecedor Valor XML Ciencia Acoes
{{ $keyShort }}
{{ $document->company->name }} · NSU {{ $document->nsu ?? '-' }}
{{ $document->issued_at?->format('d/m/Y') ?? '-' }}
{{ Str::limit($document->issuer_name ?? '-', 30) }}
@if ($document->issuer_cnpj)
{{ $document->issuer_cnpj }}
@endif
{{ $document->total_amount ? 'R$ '.number_format((float) $document->total_amount, 2, ',', '.') : '-' }} @if ($document->xml_content) Completo @elseif ($document->raw_summary_xml) Resumo @else Sem XML @endif @if ($document->hasCiencia) Ciencia @else Pendente @endif
@can('manifest-documents') @if ($document->naoPodeCiencia) Indisponivel @elseif (! $document->hasCiencia) @csrf @endif @endcan @if ($document->xml_content) XML @else @can('sync-documents')
@csrf
@endcan @endif @if ($document->raw_summary_xml) Resumo @endif
@if ($hasFilters) Nenhum documento encontrado com os filtros aplicados. Limpar filtros @else Nenhum documento sincronizado ainda. @endif
@can('sync-documents')
Nenhum selecionado
@endcan @if ($documents->hasPages())
@if ($documents->onFirstPage()) Anterior @else Anterior @endif Pagina {{ $documents->currentPage() }} de {{ $documents->lastPage() }} — {{ $documents->total() }} registro(s) @if ($documents->hasMorePages()) Proxima @else Proxima @endif
@endif
@endsection