@extends('backend.layouts.app') @section('content')
| # | 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 |