@extends('layout.administrator.index') @section('title', 'Historial') @php $fluidCategoryName = strtolower((string) optional(optional($history->getLubricant)->getCategory)->name); $isGreaseSample = strpos($fluidCategoryName, 'grasa') !== false || strpos($fluidCategoryName, 'grease') !== false; @endphp @section('style') @endsection @section('content')
{{--

Historial

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

Sample: {{$history->code}}

Lote: {{$history->lot}}

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 del componente

{{$history->make}}

Modelo del componente

{{$history->model}}

Horometro del componente

{{$history->horometer}}

Tiempo del aceite

{{$history->oil_time}}

Tipo de aceite

{{$history->oil_type}}

{{ $isGreaseSample ? 'Cambio de grasa' : 'Cambio de aceite' }}

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

Cambio de filtro

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

SOS

@endif

Fecha

Muestra

{{date("d/m/Y", strtotime($history->sample_date_taken))}}

Recibido

{{date("d/m/Y", strtotime($history->sample_date_received))}}
{{-- modal graficas --}}
@if(!$isGreaseSample) @endif @foreach ($tests as $test) {{-- --}} @endforeach
Newest Sample Data & Trend Older
Sample ID 0 0 0 0 0
Date Taken 0 0 0 0 0
Date Delivered 0 0 0 0 0
Date Analized 0 0 0 0 0
Hours SMU 0 0 0 0 0
Horometer Component 0 0 0 0 0
Hours Oil 0 0 0 0 0
{{ $isGreaseSample ? 'Grease Changed?' : 'Oil Changed?' }} 0 0 0 0 0
Filter Changed? -- -- -- -- --
Oil Weight 0 0 0 0 0
General Condition -- -- -- -- --
Wear Condition -- -- -- -- --
Contamination Cond -- -- -- -- --
Lube Helath Cond -- -- -- -- --
{{$test->name}}0 0 0 0 0
@endsection @section('js')