{{-- ID --}} @if(Auth::user()->id_role == 1) {{-- TIPO DE FLUIDO --}} {{-- TIEMPO DE PROCESO --}} @endif {{-- SAMPLE ID --}} {{-- ACCOUNT --}} {{-- UNIT ID --}} {{-- UNIT MAKE --}} {{-- UNIT MODEL --}} {{-- COMPONENT LOCATION --}} {{-- COMPONENT MAKE --}} {{-- COMPONENT MODEL --}} {{-- SERIAL COMPONENT --}} {{-- SYSTEM TYPE --}} {{-- HOURS SMU --}} {{-- HOURS COMPONENT --}} {{-- HOURS OIL --}} {{-- OIL CHANGED? --}} {{-- FILTER CHANGED? --}} {{-- OIL BRAND --}} {{-- OIL REFERENCE --}} {{-- OIL WEIGHT --}} {{-- DATE TAKEN --}} {{-- DATE DELIVERED --}} {{-- DATE ANALIZED --}} @foreach($tests as $test => $key) @endforeach @if(Auth::user()->reportType == 1) @foreach($premium_tests as $pTest) @endforeach @endif @if (count($samples)>0) @foreach ($samples as $key => $sample) {{-- ID --}} @if(Auth::user()->id_role == 1) {{-- TIPO DE FLUIDO --}} @endif {{-- SAMPLE ID --}} {{-- ACCOUNT --}} {{-- UNIT ID --}} {{-- UNIT MAKE --}} {{-- UNIT MODEL --}} {{-- COMPONENT LOCATION --}} {{-- COMPONENT MAKE --}} {{-- COMPONENT MODEL --}} {{-- SERIAL COMPONENT --}} {{-- SYSTEM TYPE --}} {{-- HOURS SMU --}} {{-- HOURS COMPONENT --}} {{-- HOURS OIL --}} {{-- OIL CHANGED? --}} {{-- FILTER CHANGED? --}} {{-- OIL BRAND --}} {{-- OIL REFERENCE --}} {{-- OIL WEIGHT --}} {{-- DATE TAKEN --}} {{-- DATE DELIVERED --}} {{-- DATE ANALIZED --}} @if (is_numeric($sample->status_report)) @else @endif @if (is_numeric($sample->wearout_condition) && is_numeric($sample->contamination_cond) && is_numeric($sample->lube_health_cond)) @else @endif @foreach($tests as $test) @if (isset($sample->getSampleResultOrderBy->firstWhere('test_id', $test->id)['value'])) @elseif(Str::startsWith($test->reference, 'CDiamIso')) @php $iso = $sample->getSampleResultOrderBy->firstWhere('test_id', 44)['value']; $cleanIso = str_replace('(4406) ', '', $iso); $dividedIso = explode('/', $cleanIso); @endphp @switch($test->reference) @case('CDiamIsoCum4') @break @case('CDiamIsoCum6') @break @case('CDiamIsoCum14') @break @endswitch @else @endif @endforeach @if(Auth::user()->reportType == 1) @foreach($premium_tests as $pTest) @if (isset($sample->getSampleResultOrderBy->firstWhere('test_id', $pTest->id)['value'])) @else @endif @endforeach @endif @endforeach @else @endif
IDTIPO DE FLUIDOTIEMPO DE PROCESOSAMPLE IDACCOUNTUNIT IDUNIT MAKEUNIT MODELCOMPONENT LOCATIONCOMPONENT MAKECOMPONENT MODELSERIAL COMPONENTSYSTEM TYPEHOURS SMUHOURS COMPONENTHOURS OILOIL CHANGED?FILTER CHANGED?OIL BRANDOIL REFERENCEOIL WEIGHTDATE TAKENDATE DELIVEREDDATE ANALIZEDGENERAL CONDITION WEAROUR CONDITION CONTAMINATION CONDITION LUBE HEALTH CONDITION{{$key->name}}{{$pTest->name}}COMENTARIOS STD COMENTARIO GENERAL
{{strpos($sample->code, '-') !== false ? explode("-", $sample->code)[1] : $sample->code}}{{$sample->getLubricant->getCategory->name}} @if(!is_null($sample->sos)) {{$sample->sos == 'true' ? 'SOS' : 'Standard'}} {{-- TIEMPO DE PROCESO --}} @endif #{{$sample->code}}{{$sample->getFleet->name}}{{$sample->getEquipment->unit_id}}{{$sample->make}}{{$sample->model}}{{$sample->component}} @if($sample->getComponentEquipment) {{$sample->getComponentEquipment->getComponentMake->name}} @else --- @endif @if($sample->getComponentEquipment) {{$sample->getComponentEquipment->getComponentModel->name}} @else --- @endif {{$sample->system_type}}{{$sample->horometer}}{{$sample->horometer_component}}{{$sample->oil_time}}{{$sample->oil_change == 'true' ? 'SI' : 'NO'}}{{$sample->filter_change ? 'SI' : 'NO'}}{{$sample->oil_brand}}{{$sample->lubricant}}{{$sample->oil_weight}}{{date("Y-m-d", strtotime($sample->sample_date_taken))}}{{date("Y-m-d", strtotime($sample->sample_date_received))}}{{date("Y-m-d", strtotime($sample->date_of_analysis))}}{{Config::get("constants.semaphore")[$sample->status_report]['name']}}--{{Config::get("constants.semaphore")[$sample->wearout_condition]['name']}} {{Config::get("constants.semaphore")[$sample->contamination_cond]['name']}} {{Config::get("constants.semaphore")[$sample->lube_health_cond]['name']}}-- -- -- {{ $sample->getSampleResultOrderBy->firstWhere('test_id', $test->id)['value'] }} {{ $dividedIso[0] }}{{ $dividedIso[1] }}{{ $dividedIso[2] }}-- {{ $sample->getSampleResultOrderBy->firstWhere('test_id', $pTest->id)['value'] }} --{{$sample->commentary}} {{$sample->rules_message}}
No se encontraron muestras