| Data | NF | Man | Placa | Transp. | Motorista | Remetente | Destinatario | Status | Baixa | Comprovante | Integracao |
|---|---|---|---|---|---|---|---|---|---|---|---|
|
{{ optional($documento->data_emissao)->format('d/m/Y') ?: '-' }}
Filial {{ $documento->getRelationValue('filial')?->sigla ?: ($documento->getAttribute('filial') ?: '-') }}
|
{{ $documento->numero_nf ?: '-' }}
CT-e {{ $documento->numero_cte ?: '-' }}
|
{{ $documento->numero_romaneio ?: '-' }} | {{ $documento->veiculo_placa ?: $documento->veiculo?->placa ?: '-' }} | {{ $transportador ?: '-' }} |
{{ $documento->motorista_nome ?: $documento->motorista?->nome ?: '-' }}
{{ $documento->motorista_documento ?: $documento->motorista?->cpf ?: '' }}
|
{{ $documento->remetente_nome ?: $documento->cliente_nome ?: '-' }}
{{ $documento->remetente_documento ?: $documento->cliente_documento ?: '' }}
|
{{ $documento->destinatario_nome ?: '-' }}
{{ $documento->destino_cidade }}/{{ $documento->destino_uf }}
|
{{ strtoupper($documento->status_entrega ?: 'PENDENTE') }} |
{{ optional($documento->entregue_at)->format('d/m/Y H:i') ?: '-' }}
@if($documento->ocorrencia_at)
Ocorr. {{ $documento->ocorrencia_at->format('d/m/Y H:i') }}
@endif
|
@if(filled($documento->comprovante_path))
@php
$pathComprovante = (string) $documento->comprovante_path;
$registroComprovante = $documento->comprovantes->firstWhere('arquivo_path', $pathComprovante);
$urlComprovante = null;
if ($registroComprovante && auth()->user()?->tenant_id) {
$urlComprovante = \Illuminate\Support\Facades\URL::temporarySignedRoute('comprovantes.temporario', now()->addMinutes(30), ['tenant' => (int) auth()->user()->tenant_id, 'comprovante' => $registroComprovante->id]);
} elseif (filter_var($pathComprovante, FILTER_VALIDATE_URL) && in_array(strtolower((string) parse_url($pathComprovante, PHP_URL_SCHEME)), ['http', 'https'], true)) {
$urlComprovante = $pathComprovante;
} elseif (!str_starts_with(ltrim($pathComprovante, '/'), 'tenants/') && !str_contains($pathComprovante, '..') && !str_contains($pathComprovante, ':')) {
$urlComprovante = asset('storage/'.ltrim($pathComprovante, '/'));
}
$pdfComprovante = strtolower(pathinfo((string) parse_url($pathComprovante, PHP_URL_PATH), PATHINFO_EXTENSION)) === 'pdf';
@endphp
@if($urlComprovante)
Sim
Comprovante - NF {{ $documento->numero_nf }}
@if($pdfComprovante)
@else
@else
Sim
@endif
@else
Nao
@endif
|
{{ $integracao['agente'] }}
{{ $integracao['label'] }}
@if(filled($integracao['protocolo']))
Prot.: {{ \Illuminate\Support\Str::limit($integracao['protocolo'], 32) }}
@endif
@if($integracao['acao'])
Reenvio pendente
@endif
|
| Nenhum documento localizado para os filtros selecionados. | |||||||||||