@extends('adminlte.app') @section('content')

Listagem dos Pedidos

@if ($message = Session::get('success'))

{{ $message }}

@endif @if ($message = Session::get('danger'))

{{ $message }}

@endif
Lista de Postos
{{-- --}}
Filtros
@if($permissao->notificar_recebimento_agend_pedido) @endif @foreach ($agendamentos as $agendamento) @if(isset($agendamento->combustiveis->posto->nome_posto) ||isset($agendamento->combustiveis->posto->nome_posto)) @if($permissao->notificar_recebimento_agend_pedido) @if($agendamento->data_recebimento == '') @else @endif @endif @endif @endforeach
NR Postos Produtos data Agendamento Data Recebimento Data Sondagem Data Ultima SondagemNotificar Recebimento
{{$agendamento->id_agp }} @if(isset($agendamento->combustiveis->posto->nome_posto)) {{ $agendamento->combustiveis->posto->nome_posto }} @else @endif @if(isset($agendamento->combustiveis->produto->descricao)) {{$agendamento->combustiveis->produto->descricao}} @else @endif @if($agendamento->data_agendamento){{date('d/m/Y', strtotime($agendamento->data_agendamento))}}@endif @if($agendamento->data_recebimento != ''){{date('d/m/Y', strtotime($agendamento->data_recebimento))}}@endif @php $sondagem = $agendamento->combustiveis->sondagens_combustiveis() ->where('data_sondagem', '<=', $agendamento->data_agendamento) ->latest() ->first(); @endphp @if($sondagem) {{ floor($sondagem->sondagem_final) }} @endif @if(isset($agendamento->combustiveis->sondagens_combustiveis()->where('data_sondagem', '<=', $agendamento->data_agendamento)->latest()->first()->data_sondagem)) {{ date('d/m/Y - H:i:s', strtotime($agendamento->combustiveis->sondagens_combustiveis()->where('data_sondagem', '<=', $agendamento->data_agendamento)->latest()->first()->data_sondagem))}} @endif
@endsection