@extends('layout.administrator.index') @section('title', 'Historial') @section('style') @endsection @section('content')
{{--

Historial

--}}
@if(session('success')) @endif @if(session('danger')) @endif

Información

Lote: {{$history->lot}}

@if ($history->sos=="true")

SOS

@endif

Cliente

{{$history->getCustomer->name}}

Flota

{{$history->getFleet->name}}

Equipo

{{$history->getEquipment->unit_id}}

Componente

{{$history->component}}

Lubricante

{{$history->lubricant}}

Tipo de sistema

{{$history->system_type}}

Marca del aceite

{{$history->oil_brand}}

Peso del aceite

{{$history->oil_weight}}

Marca

{{$history->make}}

Modelo

{{$history->model}}

Horometro del componente

{{$history->horometer}}

Tiempo del aceite

{{$history->oil_time}}

Tipo de aceite

{{$history->oil_type}}

Cambio de aceite

@if ($history->oil_change=="true")
SI
@else
NO
@endif

Cambio de filtro

@if ($history->filter_change)
SI
@else
NO
@endif

Relleno de lubricante

@if ($history->lubricant_refill)
SI
@else
NO
@endif
@if ($history->lubricant_refill)

Cantidad de relleno

{{number_format($history->refill_amount, 1)}} gal
@endif
{{Config::get('constants.states_samples')[$history->state]['name']}}

Actualizar

@csrf @method('put')
@if ($history->date_of_analysis!=null)
@endif
Ensayos y Resultados
@foreach ($results as $result) @endforeach
Ensayo Resultado
{{ $result->getTest->name ?? 'N/A' }} {{-- ID oculto para saber qué resultado se edita --}}
@isAdmin @if ($history->state != 5) @endif @endisAdmin
@endsection @section('js') @endsection