@extends('backend.layouts.app') @section('content')

Marcar Arribos / Llegada de buses

Arribos / Llegadas
@php $sort_search = null; $cont=1; $fechaActual = now()->toDateString(); // Obtenemos la fecha actual en formato 'Y-m-d' @endphp @foreach($registro_llegadas as $key => $llegada) @if(is_null(\App\Models\RegistroLlegada::where("llegada_id", $llegada->id)->where("estado", "1")->whereDate('created_at', $fechaActual)->first()) ) @endif @endforeach
# Empresa Destino Puerta Carril Hora
{{ ($key+1) + ($registro_llegadas->currentPage() - 1)*$registro_llegadas->perPage() }} -- {{ $cont }} @php $cont++; @endphp @foreach(\App\Models\Empresa::where("id", $llegada->id_empresa)->get() as $empresa) {{ $empresa->name }} @endforeach @foreach(\App\Models\Destino::where("id", $llegada->id_destino)->get() as $destino) {{ $destino->name }} @endforeach @foreach(\App\Models\Puerta::where("id", $llegada->id_puerta)->get() as $puerta) {{ $puerta->name }} @endforeach @foreach(\App\Models\Carril::where("id", $llegada->id_carril)->get() as $carril) {{ $carril->name }} @endforeach {{ $fechaActual }} - {{ $llegada->hora }} @if( is_null(\App\Models\RegistroLlegada::where("llegada_id", $llegada->id)->where("estado", "1")->whereDate('created_at', $fechaActual)->first()) ) Registrar Arribo @else @endif
{{ $registro_llegadas->appends(request()->input())->links() }}
@endsection @section('modal') @include('modals.delete_modal') @endsection @section('script') @endsection