@extends('layouts.app') @section('title', 'NFS-e - Documentos de Saida') @section('page_title', 'NFS-e') @section('page_subtitle', 'Notas Fiscais de Servico importadas') @section('page_actions') Voltar Cadastrar @endsection @push('styles') @endpush @section('content')

Documentos NFS-e

{{ $documents->total() }} registro(s)
@if ($search || $companyFilter) Limpar @endif
@forelse ($documents as $doc) @php $key = $doc->access_key; $keyShort = $key ? Str::limit($key, 20) : '-'; @endphp @empty @endforelse
Cod. Verificacao Emissao Prestador Tomador Valor Status XML Acoes
{{ $keyShort }} {{ $doc->issued_at?->format('d/m/Y') ?? '-' }}
{{ Str::limit($doc->issuer_name ?? '-', 30) }}
@if ($doc->issuer_cnpj)
{{ $doc->issuer_cnpj }}
@endif
{{ Str::limit($doc->recipient_name ?? '-', 30) }}
@if ($doc->recipient_cnpj)
{{ $doc->recipient_cnpj }}
@elseif ($doc->recipient_cpf)
CPF {{ $doc->recipient_cpf }}
@endif
{{ $doc->total_amount ? 'R$ '.number_format((float) $doc->total_amount, 2, ',', '.') : '-' }} @php $statusMap = [ 'pending' => ['Pendente', 'neutral'], 'authorized' => ['Autorizado', 'ok'], 'cancelled' => ['Cancelado', 'danger'], 'denied' => ['Denegado', 'danger'], ]; [$sLabel, $sClass] = $statusMap[$doc->status] ?? [$doc->status, 'neutral']; @endphp {{ $sLabel }} @if ($doc->xml_content) OK @else Sem XML @endif @if ($doc->xml_content) @endif
@csrf @method('DELETE')
Nenhum documento NFS-e cadastrado.
@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