@extends('layouts.inspinia.app') @section('title', 'Rutas chofer') @section('titulopagina', 'Chofer en ruta') @section('content')
@csrf @error('cod_agencia') *{{ $message }} @enderror @error('fecha') *{{ $message }} @enderror    
@foreach ($datoscabecera as $item) @if ($item->ASIGNADOS === 'ASIGNADOS')
{{ $item->ASIGNADOS }}
{{ $item->CANTIDAD }}
@endif @if ($item->ASIGNADOS === 'GESTIONADOS')
@endif @if ($item->ASIGNADOS === 'ENTREGADOS')
@endif @if ($item->ASIGNADOS === 'NO ENTREGADOS')
{{ $item->ASIGNADOS }}
{{ $item->CANTIDAD }}
@endif @if ($item->ASIGNADOS === 'OTROS')
{{ $item->ASIGNADOS }}
{{ $item->CANTIDAD }}
@endif @if ($item->ASIGNADOS === 'VEHICULOS')
@endif @endforeach
@foreach ($arraychofer as $i)
@if(is_array($i['nombre']) || is_object($i['nombre'])) @foreach ($i['nombre'] as $itemchofer) {{ $itemchofer->nombre }}
{{ $itemchofer->nom_agencia }}
@endforeach @else {{ $i['nombre'] }}
{{ $i['nom_agencia'] }}
@endif
@if(is_array($i['patente'])) @foreach ($i['patente'] as $itempatente) PATENTE: {{ $itempatente->patente }} @endforeach @else PATENTE: {{ $i['patente'] }} @endif
@if(is_array($i['inicioruta'])) @foreach ($i['inicioruta'] as $iteminicioruta) INICIO: {{ $iteminicioruta->inicioruta }} @endforeach @else INICIO: {{ $i['inicioruta'] }} @endif
Cumplimiento: @foreach ($i['rutas'] as $item) {{ $item->CUMPLIMIENTO }} @break @endforeach
Entregadas: @foreach ($i['rutas'] as $item) {{ $item->ENTREGADAS }} @break @endforeach
No Entregadas: @foreach ($i['rutas'] as $item) {{ $item->NO_ENTREGADAS }} @break @endforeach
Estado: @foreach ($i['rutas'] as $item) {{ $item->RUTA }} @break @endforeach
  • {{ date('H:i', strtotime($i['fechamin'])) }}
  • @foreach ($i['rutas'] as $item)
  • @if ($item->ESTADO == 0)
     
    @elseif ($item->ESTADO == 4)
     
    @elseif ($item->ESTADO == 3)
    @else
     
    @endif
  • @endforeach
  • {{ date('H:i', strtotime($i['fechamax'])) }}
@endforeach @endsection @section('javascript') // AIzaSyAONsqodcvDkZqZvPpDcauTeAK668tsR0w @endsection