@extends('layouts.app') @section('title', 'Manifestacao - ERP-PLUS') @section('page_title', 'Manifestacao') @section('page_subtitle', 'Registre ciencia, confirmacao, desconhecimento ou operacao nao realizada para NF-e do destinatario.') @push('styles') @endpush @section('content')

Documentos

Selecione os documentos e o tipo de manifestacao desejado.
{{-- Filter bar --}}
@if ($hasFilters) Limpar @endif
{{-- Batch bar --}} @can('manifest-documents')
Selecione os documentos e escolha a acao:
{{-- Processing panel --}}
@forelse ($documents as $document) @php $key = $document->access_key; $keyShort = strlen($key) === 44 ? substr($key, 0, 10).'...'.substr($key, -10) : $key; $hasCiencia = $document->manifestations ->where('event_code', \App\Models\NfeManifestation::EVENT_CIENCIA_OPERACAO) ->whereIn('response_status_code', ['135', '136', '573']) ->isNotEmpty(); $hasConfirmacao = $document->manifestations ->where('event_code', \App\Models\NfeManifestation::EVENT_CONFIRMACAO_OPERACAO) ->whereIn('response_status_code', ['135', '136', '573']) ->isNotEmpty(); $hasDesconhecimento = $document->manifestations ->where('event_code', \App\Models\NfeManifestation::EVENT_DESCONHECIMENTO_OPERACAO) ->whereIn('response_status_code', ['135', '136', '573']) ->isNotEmpty(); $hasNaoRealizada = $document->manifestations ->where('event_code', \App\Models\NfeManifestation::EVENT_OPERACAO_NAO_REALIZADA) ->whereIn('response_status_code', ['135', '136', '573']) ->isNotEmpty(); $hasConclusiva = $hasConfirmacao || $hasDesconhecimento || $hasNaoRealizada; @endphp @empty @endforelse
Chave de acesso Empresa Fornecedor Valor Emissao XML Manifestacoes Acoes
{{ $keyShort }}
NSU {{ $document->nsu ?? '-' }}
{{ $document->company->name ?? '-' }}
{{ Str::limit($document->issuer_name ?? '-', 28) }}
@if ($document->issuer_cnpj)
{{ $document->issuer_cnpj }}
@endif
{{ $document->total_amount ? 'R$ '.number_format((float) $document->total_amount, 2, ',', '.') : '-' }} {{ $document->issued_at?->format('d/m/Y') ?? '-' }} @if ($document->xml_content) Completo @elseif ($document->raw_summary_xml) Resumo @else Sem XML @endif
@if ($hasCiencia) Ciencia @endif @if ($hasConfirmacao) Confirmacao @endif @if ($hasDesconhecimento) Desconhecimento @endif @if ($hasNaoRealizada) Nao realizada @endif @if (! $hasCiencia && ! $hasConclusiva) Pendente @endif
@can('manifest-documents') @if (! $hasCiencia)
@csrf
@endif @if ($hasCiencia && ! $hasConclusiva)
@csrf
@csrf
@csrf
@endif @else Sem permissao @endcan
@if ($hasFilters) Nenhum documento encontrado com os filtros aplicados. Limpar filtros @else Nenhum documento sincronizado ainda. Sincronizar documentos @endif
@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 @push('styles') @endpush