@once @endonce
@if(! $canSeeAll)
Consulta restrita ao documento vinculado ao seu usuario como {{ $portalScope['tipo'] === 'destinatario' ? 'destinatario' : 'remetente' }}.
@endif
@if($canSeeAll) @endif
Limpar
Documentos{{ $metrics['total'] }}
Entregues{{ $metrics['entregues'] }}
Ocorrencias{{ $metrics['ocorrencias'] }}
Em rota{{ $metrics['em_rota'] }}
Comprovantes{{ $metrics['comprovantes'] }}
@if(! $tabelaDisponivel)
Tabela de documentos ainda nao disponivel neste tenant.
@elseif($documentos->isEmpty())
Nenhum documento localizado para os filtros informados.
@else @foreach($documentos as $nota) @php $status = strtolower((string) $nota->status_entrega); $statusClass = str_contains($status, 'ocorr') ? 'ocorrencia' : ($status === 'entregue' ? 'entregue' : ''); $latlong = is_array($nota->destino_latlong) ? implode(', ', array_filter($nota->destino_latlong)) : (string) $nota->destino_latlong; $comprovanteUrl = filled($nota->comprovante_path) ? (str_starts_with((string) $nota->comprovante_path, 'http') ? $nota->comprovante_path : asset('storage/'.ltrim((string) $nota->comprovante_path, '/'))) : ''; @endphp @endforeach
Documento Remetente Destinatario Status Eventos Localizacao Comprovante
NF {{ $nota->numero_nf ?: '-' }}
CT-e {{ $nota->numero_cte ?: '-' }} | Rom. {{ $nota->numero_romaneio ?: '-' }}
{{ $nota->data_emissao?->format('d/m/Y') ?: '-' }}
{{ $nota->remetente_nome ?: $nota->cliente_nome ?: '-' }}
{{ $nota->remetente_documento ?: $nota->cliente_documento ?: '-' }}
{{ $nota->destinatario_nome ?: '-' }}
{{ trim((string) $nota->destino_cidade.'/'.(string) $nota->destino_uf, '/') ?: '-' }}
{{ strtoupper(str_replace('_', ' ', $nota->status_entrega ?: 'pendente')) }}
Chegada: {{ $nota->saida_efetiva_at?->format('d/m/Y H:i') ?: '-' }}
Entrega: {{ $nota->entregue_at?->format('d/m/Y H:i') ?: '-' }}
Recebedor: {{ $nota->recebedor_nome ?: '-' }}
@if(filled($nota->ocorrencia_descricao))
Ocorrencia: {{ $nota->ocorrencia_descricao }}
@endif
{{ $latlong ?: '-' }} @if($comprovanteUrl) Ver comprovante @else Sem comprovante @endif
Exibindo ate {{ $limit }} documentos. Use os filtros ou exporte para consultar volumes maiores.
@endif