{{ $daily->form->title }}

Checklist unit operator untuk {{ $daily->unit->unittype->name }} per hari

logo
{{-- --}}
Report # : {{ $daily->code_report }}
Unit Name : {{ $unit->unittype->name }}
Unit # : {{ $unit->unit_code }}
Shift : Shift {{ $daily->shift->name }}
Vin # : -
@php use Carbon\Carbon; $now = Carbon::now('Asia/Jakarta')->locale('id'); $no = 1; $days = ['Sen', 'Sel', 'Rab', 'Kam', 'Jum', 'Sab', 'Min']; $currentDayIndex = $now->dayOfWeekIso - 1; @endphp {{-- TABEL HARI --}} @foreach ($days as $day) @endforeach @foreach ($days as $i => $day) @endforeach {{-- @foreach ($days as $i => $day) @endforeach --}}
Hari{{ $day }}
Tanggal & Jam @if ($i === $currentDayIndex) {{ $now->translatedFormat('d-F-Y H:i:s') }} @endif
Meter Reading @if ($i === $currentDayIndex) {{ $daily->meter_reading ?? '0 Hours' }} @endif
@foreach ($status as $item) @endforeach @foreach ($daily->form->sections as $index => $section) @foreach ($section->items as $key => $item) @php $currentDailyItem = $daily_item->firstWhere('form_item_id', $item->id); @endphp @foreach ($status as $st) @endforeach @endforeach @endforeach @php $count = $status->count(); @endphp
SN Keseluruhan Unit{{ $item->name }}Catatan
{{ $no++ }} {{ $item->name }} @if ($currentDailyItem && $currentDailyItem->status_id == $st->id) @php $color = '#000000'; if ($st->name == 'Baik') { $color = 'green'; } elseif ($st->name == 'Rusak') { $color = 'red'; } elseif ($st->name == 'Cukup') { $color = '#FFDE21'; } @endphp @endif {{ $currentDailyItem->note ?? '' }}
Comment (*) {{ $daily->comment }}
{{-- TABEL OPERATOR / SHIFT / COMMENT --}} @foreach ($days as $i => $day) @endforeach @foreach ($days as $i => $day) @endforeach
Operator @if ($i === $currentDayIndex) {{ $daily->user->name ?? '-' }} @endif
Shift @if ($i === $currentDayIndex) Shift - {{ $daily->shift->name ?? '-' }} @endif
{{-- @dd("halo") --}}