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

Marcar Abordaje / Salidas de Buses

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