Laporan Detail Tugas

{{ $task->program->program_name ?? 'N/A' }}

Dicetak pada: {{ $generatedDate }}

INFORMASI UMUM
Nama Tugas
{{ $task->task_name }}
Deskripsi
{{ $task->task_description ?: '-' }}
Program
{{ $task->program->program_name ?? '-' }}
@if ($task->parentTask)
Parent Tugas
{{ $task->parentTask->task_name ?? '-' }}
@endif
Penanggung Jawab
{{ $task->assignedUser->name ?? '-' }}
Status
@php $statusLabels = [ 'not_started' => 'Belum Dimulai', 'in_progress' => 'Sedang Berjalan', 'completed' => 'Selesai', 'on_hold' => 'Ditunda', 'cancelled' => 'Dibatalkan' ]; @endphp {{ $statusLabels[$task->status] ?? $task->status }}
Prioritas
{{ ucfirst($task->priority ?? '-') }}
Tanggal Mulai
{{ $task->start_date ? $task->start_date->format('d M Y') : '-' }}
Tanggal Selesai
{{ $task->end_date ? $task->end_date->format('d M Y') : '-' }}
Estimasi Anggaran
Rp {{ number_format($task->estimated_budget ?? 0, 0, ',', '.') }}
STATISTIK
{{ $totalTargets }} Total Target
{{ $achievedTargets }} Target Tercapai
{{ number_format($progressPercentage, 0) }}% Progress
{{ $totalLogbooks }} Total Logbook
Rp {{ number_format($totalBudget, 0, ',', '.') }} Total Realisasi Anggaran
{{ $verifiedLogbooks }} Logbook Terverifikasi
{{ $task->attachments->count() }} Total Lampiran
{{ $task->subTasks->count() }} Sub Tugas
@if($task->subTasks->count() > 0)
SUB TUGAS
@foreach($task->subTasks as $index => $subTask) @endforeach
No Nama Tugas Penanggung Jawab Status Mulai Selesai
{{ $index + 1 }} {{ $subTask->task_name }} {{ $subTask->assignedUser->name ?? '-' }} {{ $statusLabels[$subTask->status] ?? $subTask->status }} {{ $subTask->start_date ? $subTask->start_date->format('d/m/Y') : '-' }} {{ $subTask->end_date ? $subTask->end_date->format('d/m/Y') : '-' }}
@endif @if($task->targets->count() > 0)
TARGET TUGAS
@foreach($task->targets as $index => $target) @endforeach
No Nama Target Target Tercapai Satuan Tanggal Target Status
{{ $index + 1 }} {{ $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') : '-' }} @if($target->achieved_value >= $target->target_value) ✓ @else - @endif
@endif @if($task->budgetRealizations->count() > 0)
REALISASI ANGGARAN
@foreach($task->budgetRealizations as $index => $budget) @endforeach
No Tanggal Kategori Deskripsi Jumlah Dibuat Oleh
{{ $index + 1 }} {{ $budget->transaction_date ? $budget->transaction_date->format('d/m/Y') : '-' }} {{ $budget->category ?? '-' }} {{ $budget->description }} Rp {{ number_format($budget->amount, 0, ',', '.') }} {{ $budget->creator->name ?? '-' }}
TOTAL Rp {{ number_format($totalBudget, 0, ',', '.') }}
@endif @if($task->logbooks->count() > 0)
LOGBOOK AKTIVITAS
@foreach($task->logbooks as $index => $logbook) @endforeach
No Tanggal Judul Deskripsi Progress Dibuat Oleh Status
{{ $index + 1 }} {{ $logbook->activity_date ? $logbook->activity_date->format('d/m/Y') : '-' }} {{ $logbook->title }} {{ Str::limit($logbook->description, 100) }} {{ $logbook->progress_value ?? '-' }}% {{ $logbook->creator->name ?? '-' }} @if($logbook->verified_at) ✓ Verified @else Pending @endif
@endif @if($task->attachments->count() > 0)
LAMPIRAN
@foreach($task->attachments as $index => $attachment) @endforeach
No Nama File Tipe Ukuran Diunggah Oleh
{{ $index + 1 }} {{ $attachment->file_name }} {{ $attachment->file_type ?? '-' }} {{ number_format($attachment->file_size / 1024, 2) }} KB {{ $attachment->uploader->name ?? '-' }}
@endif