Laporan Tugas Program

{{ $program->program_name }}

Dicetak pada: {{ $generatedDate }}

INFORMASI PROGRAM
Nama Program
{{ $program->program_name }}
Deskripsi
{{ $program->description ?: '-' }}
Tanggal Mulai
{{ $program->start_date ? $program->start_date->format('d M Y') : '-' }}
Tanggal Selesai
{{ $program->end_date ? $program->end_date->format('d M Y') : '-' }}
STATISTIK PROGRAM
{{ $totalTasks }} Total Tugas
{{ $completedTasks }} Tugas Selesai
{{ $totalTasks > 0 ? number_format(($completedTasks / $totalTasks) * 100, 0) : 0 }}% Persentase Selesai
{{ $totalTasks - $completedTasks }} Tugas Berjalan
Rp {{ number_format($totalBudget, 0, ',', '.') }} Total Estimasi Anggaran
Rp {{ number_format($totalRealization, 0, ',', '.') }} Total Realisasi Anggaran
DAFTAR TUGAS
@php $statusLabels = [ 'not_started' => 'Belum Dimulai', 'in_progress' => 'Sedang Berjalan', 'completed' => 'Selesai', 'on_hold' => 'Ditunda', 'cancelled' => 'Dibatalkan' ]; @endphp @foreach($tasks as $index => $task) @endforeach
No Nama Task Penanggung Jawab Status Prioritas Mulai Selesai Anggaran
{{ $index + 1 }} {{ $task->task_name }} {{ $task->assignedUser->name ?? '-' }} {{ $statusLabels[$task->status] ?? $task->status }} {{ ucfirst($task->priority ?? '-') }} {{ $task->start_date ? $task->start_date->format('d/m/Y') : '-' }} {{ $task->end_date ? $task->end_date->format('d/m/Y') : '-' }} Rp {{ number_format($task->estimated_budget ?? 0, 0, ',', '.') }}
@foreach($tasks as $taskIndex => $task)
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: @foreach($task->targets as $target) @endforeach
Nama Target Target Tercapai Satuan Tanggal
{{ $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') : '-' }}
@endif @if($task->budgetRealizations->count() > 0)
Realisasi Anggaran: @php $taskTotalBudget = 0; @endphp @foreach($task->budgetRealizations as $budget) @php $taskTotalBudget += $budget->amount; @endphp @endforeach
Tanggal Deskripsi Kategori Jumlah
{{ $budget->transaction_date ? $budget->transaction_date->format('d/m/Y') : '-' }} {{ $budget->description }} {{ $budget->category ?? '-' }} Rp {{ number_format($budget->amount, 0, ',', '.') }}
TOTAL Rp {{ number_format($taskTotalBudget, 0, ',', '.') }}
@endif @if($task->logbooks->count() > 0)
Logbook ({{ $task->logbooks->count() }} aktivitas): @foreach($task->logbooks->take(5) as $logbook) @endforeach @if($task->logbooks->count() > 5) @endif
Tanggal Aktivitas Progress Status
{{ $logbook->activity_date ? $logbook->activity_date->format('d/m/Y') : '-' }} {{ Str::limit($logbook->title, 60) }} {{ $logbook->progress_value ?? '-' }}% {{ $logbook->verified_at ? 'Verified' : 'Pending' }}
... dan {{ $task->logbooks->count() - 5 }} logbook lainnya
@endif
@endforeach