Detail Progress Pegawai

Memantau pelaksanaan tugas bulan {{ date('F Y') }}

{{ substr($targetUser->name, 0, 1) }}
{{ $targetUser->name }}

{{ $targetUser->position }} - {{ $targetUser->email }}

@foreach([['title'=>'PEKERJAAN RUTIN', 'data'=>$rutin, 'color'=>'#005494', 'class'=>'header-rutin', 'icon'=>'fa-sync-alt'], ['title'=>'PEKERJAAN STRATEGIS', 'data'=>$strategis, 'color'=>'#F07C00', 'class'=>'header-strategis', 'icon'=>'fa-chess-king']] as $section)
{{ $section['title'] }}
@forelse($section['data'] as $log) @php // LOGIKA: Jika Hari Ini > Deadline, MAKA MERAH (Tidak peduli status selesai/tidak) $isOverdue = false; if ($log->deadline && \Carbon\Carbon::now()->startOfDay()->gt(\Carbon\Carbon::parse($log->deadline))) { $isOverdue = true; } @endphp
{{ $log->indicator->name }}
@if($log->indicator->budget > 0)
Anggaran: Rp {{ number_format($log->indicator->budget, 0, ',', '.') }}
@endif
Jadwal Pelaksanaan
@if($log->start_date && $log->deadline) {{ date('d M', strtotime($log->start_date)) }} - {{ date('d M Y', strtotime($log->deadline)) }} @elseif($log->deadline) Deadline: {{ date('d M Y', strtotime($log->deadline)) }} @else - @endif
@if($isOverdue) LEWAT TENGGAT @endif
Langkah Pengerjaan
@if($log->subTasks->count() > 0)
@foreach($log->subTasks as $sub)
{{ $sub->title }} @if($sub->is_completed) @endif
@endforeach
@else
Tidak ada rincian sub-tugas.
@endif
PROGRESS

{{ $log->actual_percentage }}%

@if($log->status == 'Selesai') SELESAI @elseif($isOverdue) OVERDUE @else ON PROGRESS @endif
@if(Auth::user()->role == 'Supervisor')
@csrf @method('DELETE')
@endif
@empty
Belum ada tugas.
@endforelse
@endforeach