DETAIL TUGAS {{ $taskIndex + 1 }}: {{ strtoupper($task->task_name) }}
Deskripsi
{{ $task->task_description ?: '-' }}
Penanggung Jawab
{{ $task->assignedUser->name ?? '-' }}
Status
{{ $statusLabels[$task->status] ?? $task->status }}
@if($task->targets->count() > 0)
Target:
| Nama Target |
Target |
Tercapai |
Satuan |
Tanggal |
@foreach($task->targets as $target)
| {{ $target->target_name }} |
{{ number_format($target->target_value, 0, ',', '.') }} |
{{ number_format($target->achieved_value ?? 0, 0, ',', '.') }} |
{{ $target->target_unit ?? '-' }} |
{{ $target->target_date ? $target->target_date->format('d/m/Y') : '-' }} |
@endforeach
@endif
@if($task->budgetRealizations->count() > 0)
Realisasi Anggaran:
| Tanggal |
Deskripsi |
Kategori |
Jumlah |
@php $taskTotalBudget = 0; @endphp
@foreach($task->budgetRealizations as $budget)
| {{ $budget->transaction_date ? $budget->transaction_date->format('d/m/Y') : '-' }} |
{{ $budget->description }} |
{{ $budget->category ?? '-' }} |
Rp {{ number_format($budget->amount, 0, ',', '.') }} |
@php $taskTotalBudget += $budget->amount; @endphp
@endforeach
| TOTAL |
Rp {{ number_format($taskTotalBudget, 0, ',', '.') }} |
@endif
@if($task->logbooks->count() > 0)
Logbook ({{ $task->logbooks->count() }} aktivitas):
| Tanggal |
Aktivitas |
Progress |
Status |
@foreach($task->logbooks->take(5) as $logbook)
| {{ $logbook->activity_date ? $logbook->activity_date->format('d/m/Y') : '-' }} |
{{ Str::limit($logbook->title, 60) }} |
{{ $logbook->progress_value ?? '-' }}% |
{{ $logbook->verified_at ? 'Verified' : 'Pending' }} |
@endforeach
@if($task->logbooks->count() > 5)
|
... dan {{ $task->logbooks->count() - 5 }} logbook lainnya
|
@endif
@endif