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

Historial

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

Sample: {{$history->code}}

Lote: {{$history->lot}}

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
@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))}}
@if($history->date_of_analysis!=null)

AnĂ¡lisis

{{date("d/m/Y", strtotime($history->date_of_analysis))}}
@endif
@endsection @section('js') @endsection