@extends('template') @section('content')

Controle de coletas

@if (Session::has('message')) @endif
@if(count($dados) > 0) @foreach($dados as $return) @endforeach @endif
O.C Razão Social Bairro/Cidade Contato Qtd. Peso. V.L (N.F) Veículo Alocar Veículo Status Ações
{{ $return->ordem_coleta }} {{ $return->razao }}
{{ $return->cnpj }}
{{ $return->endereco_c }}, {{ $return->numero_c }}
{{ $return->bairro_c }}
{{ $return->cidade_c }} - {{ $return->uf_c }}
{{ $return->cep_c }}
{{ $return->contato_c }}
{{ $return->telefone_c }}
{{ $return->email_c }}
Vol: {{ $return->total_volumes }}
Peso: {{ $return->total_peso }}
VL. N.F: {{ $return->total_valor_nota_fiscal }}
{{ $return->nome_motorista }}
{{ $return->placa }}
{{ $return->tipo }}
@if($return->codigo_motorista == 'NULL' || $return->codigo_motorista == "") NÃO ALOCADO
@else ALOCADO @endif
@csrf @method("DELETE")
@if($jpe = json_decode($return->pontos_entrega)) @foreach($jpe->pontos_entrega as $key => $ponto)
  • @if ($ponto->tipo == "COL")
    {{ $ponto->razao }} {{ $ponto->endereco }}, {{ $ponto->numero }}
    @else
    {{ $ponto->razao }} {{ $ponto->endereco }}, {{ $ponto->numero }}
    @endif
    @if ($ponto->tipo == "COL") COLETA @else ENTREGA @endif @endforeach
  • @endif
    {!! $dados->links() !!}
    @endsection