@extends('layouts.app') @section('tab', 'plan') @section('content') @php $canManage = auth()->user()->canManageProject($project); $ref = $project->refDate(); $monthNames = [1 => 'Jan', 'Feb', 'Mar', 'Apr', 'Mei', 'Jun', 'Jul', 'Agu', 'Sep', 'Okt', 'Nov', 'Des']; $isTimeline = $filters['view'] === 'timeline'; $isGantt = $filters['view'] === 'gantt'; @endphp
@if ($filters['q'] || $filters['modul'] || $filters['sbu'] || $filters['status'] || $filters['pic'] || $filters['tipe'] || $filters['request_date'] || $filters['start_date'] || $filters['end_date']) Reset @endif
Tabel Timeline Gantt
@if ($canManage) @endif ⬇ Excel
Tanggal acuan: {{ $ref->format('d-m-Y') }} Skala timeline: {{ $project->timelineScale() }} hari {{ count($rows) }} task tampil
@if ($isTimeline)
@foreach ($periods as $index => $period) @php $isToday = $ref->gte($period) && $ref->lt($period->addDays($project->timelineScale())); @endphp @endforeach @forelse ($timeline as $entry) @php $row = $entry['row']; $task = $row['task']; @endphp @foreach ($periods as $index => $period) @php $cell = $entry['cells'][$index] ?? null; $isToday = $ref->gte($period) && $ref->lt($period->addDays($project->timelineScale())); $marker = $task->due_date && $task->due_date->toImmutable()->gte($period) && $task->due_date->toImmutable()->lt($period->addDays($project->timelineScale())) ? '◆' : ''; $class = 'gc'.($cell ? ' g'.($cell['state'] === 'done' ? '1' : ($cell['state'] === 'late' ? '2' : '3')) : '').($isToday ? ' tdy' : ''); @endphp @endforeach @empty @endforelse
No Modul SBU Item / Kebutuhan PIC Due Status Info Due {{ $project->scopeLabel().($index + 1) }}
{{ $period->day }}
{{ $monthNames[$period->month] }}
{{ $loop->iteration }} {{ $task->module?->name }} {{ $task->sbu?->name }} {{ $task->item }} {{ $task->pic?->name }} {{ $task->due_date?->format('d-m-y') }} {{ $marker }}
Belum ada task pada filter ini.
Sudah dikerjakan Rencana Terlambat Periode berjalan ◆ = target due date
@elseif ($isGantt)
@foreach ($periods as $index => $period) @php $isToday = $ref->gte($period) && $ref->lt($period->addDays($project->timelineScale())); @endphp @endforeach @forelse ($gantt as $group) @foreach ($group['rows'] as $bar) @php $barClass = match ($bar['status']) { 'Selesai' => 'done', 'Terlambat' => 'late', 'Berjalan' => 'running', default => 'open', }; @endphp @endforeach @empty @endforelse
Modul / Item {{ $project->scopeLabel().($index + 1) }}
{{ $period->day }}
{{ $monthNames[$period->month] }}
%
{{ $group['name'] }} · {{ count($group['rows']) }} task
{{ $bar['item'] }} Mulai: {{ $bar['start'] ?? '—' }} · Target: {{ $bar['due'] ?? '—' }}
@if ($bar['target'] !== null) ◆ @endif
Actual Actual: {{ $bar['end'] ?? '—' }}
@if ($bar['actual'] !== null) @endif
{{ $bar['progress'] }}%
Belum ada task pada filter ini.
◆ Target (titik due date) Actual · Selesai Actual · Berjalan Actual · Terlambat Actual · OPEN Target = 1 titik due date. Grafik actual memanjang dari tanggal mulai sampai tanggal selesai.
@else
@forelse ($rows as $row) @php $task = $row['task']; @endphp @empty @endforelse
No Modul SBU Item / Kebutuhan Tipe PIC Tgl Request Target / Due Date Mulai Selesai Durasi % Progres Status Info Due Catatan
{{ $loop->iteration }} {{ $row['duration'] }} @if ($canManage) @endif
Belum ada task pada filter ini.
@endif @if ($canManage)
@csrf

Tambah task

@endif

Detail task

Memuat…

@endsection