@php // Kolom waktu yang disembunyikan karena sudah digabung $skipAtCols = ['tested_at', 'checked_at', 'supervisor_at']; // Pasangan kolom "by" dengan waktu $byPairs = [ 'tested_by' => 'tested_at', 'checked_by' => 'checked_at', 'supervisor_by'=> 'supervisor_at', ]; @endphp
| {{ $title }} | @endforeach {{-- Header Properties --}} @foreach ($propCols as $title => $alias){{ $title }} | @endforeach {{-- Header Parameter Mesin (tanpa Num/Txt) --}} @foreach ($paramCols as $title => $aliases){{ $title }} | {{ $title }} | @endforeach|
|---|---|---|---|---|
| @if(!empty($name) && !empty($timeStr)) {{ $name }} at {{ $timeStr }} @elseif(!empty($name)) {{ $name }} @else - @endif | @else{{ $r->{$col} ?? '-' }} | @endif @endforeach {{-- Property --}} @foreach ($propCols as $alias){{ $r->{$alias} ?? '-' }} | @endforeach {{-- Parameter Mesin --}} @foreach ($paramCols as $aliases){{ $r->{$aliases[0]} ?? '-' }} | {{ $r->{$aliases[1]} ?? '-' }} | @endforeach