@extends('layouts.app') @section('htmlheader_title') Elementos de ley — {{ $Vehicle->VehicPlaca }} @endsection @section('contentheader_title') Elementos de ley — {{ $Vehicle->VehicPlaca }}
@endsection @section('main-content')

Lista de verificación — Ley 769 de 2002 e HSEQ

Lista de verificación según Art. 30 Ley 769 de 2002 y requisitos HSEQ. Los elementos se usan en el preoperacional.

@csrf @method('PUT') {{-- EXTINTORES (detalle HSEQ) --}}

Extintores (detalle HSEQ)

@php $estadosOpciones = ['' => 'Seleccione', 'Bueno' => 'Bueno', 'Regular' => 'Regular', 'Malo' => 'Malo', 'No aplica' => 'No aplica']; @endphp @foreach([1, 2] as $num)
Extintor {{ $num }}
@php $fechaRecarga = $Vehicle->{'VehicExt'.$num.'FechaRecarga'}; $fechaRecargaVal = $fechaRecarga ? (is_object($fechaRecarga) ? $fechaRecarga->format('Y-m-d') : \Carbon\Carbon::parse($fechaRecarga)->format('Y-m-d')) : ''; @endphp
@endforeach @foreach($catalogo as $tipo_kit => $items)

@if($tipo_kit === 'kit_carretera') @elseif($tipo_kit === 'kit_herramientas') @elseif($tipo_kit === 'botiquin') @elseif($tipo_kit === 'kit_derrames') @else @endif {{ \App\ElementoLeyCatalogo::getNombreTipoKit($tipo_kit) }}

@if($items->contains('tipo_entrada', 'checklist')) @endif @if($items->contains('tipo_entrada', 'cantidad')) @endif @if($items->contains('tipo_entrada', 'estado')) @endif @if($items->contains('requiere_vencimiento', true)) @endif @foreach($items as $item) @php $el = $porVehiculo->get($item->id); $tipoEntrada = $item->tipo_entrada ?? 'checklist'; @endphp @if($items->contains('tipo_entrada', 'checklist')) @endif @if($items->contains('tipo_entrada', 'cantidad')) @endif @if($items->contains('tipo_entrada', 'estado')) @endif @if($items->contains('requiere_vencimiento', true)) @endif @endforeach
CumpleElementoCantidadEstadoVencimientoObservaciones
@if($tipoEntrada === 'checklist') cumple) ? 'checked' : '' }}> @else — @endif @if($tipoEntrada === 'cantidad') @else — @endif @if($tipoEntrada === 'estado') @else — @endif @if($item->requiere_vencimiento) @php $fv = $el && $el->fecha_vencimiento ? $el->fecha_vencimiento : null; $fvVal = $fv ? (is_object($fv) ? $fv->format('Y-m-d') : \Carbon\Carbon::parse($fv)->format('Y-m-d')) : ''; @endphp @else — @endif
@endforeach

Cancelar
@endsection