@extends('layouts.app') @section('title', 'Activities List - SIPHLN 2026') @section('content')

Master Data • Activities

LIST ACTIVITIES

Manage project activities, budget allocations, and key performance indicators.

@if(auth()->check() && auth()->user()->role === 'super_admin') Template Export CSV @endif @if(auth()->check() && auth()->user()->role !== 'super_admin') Add Activity @endif
@if(session('success'))
{{ session('success') }}
@endif @if(session('error')) @endif

Filter & Cari Activity

Sesuaikan tampilan daftar activity sesuai kebutuhan.

@include('partials.year-filter', ['label' => 'Implementation Year', 'years' => $years ?? [], 'allLabel' => 'Semua Tahun']) @if(auth()->check() && auth()->user()->isSuperAdmin()) @include('partials.unit-filter') @endif
Search Activity
@if(!empty($search) || !empty($year) || !empty($selectedUnitId)) Reset @endif
@if(!empty($search) || !empty($year) || !empty($selectedUnitId))
Found {{ $activities->total() }} activity(ies) @if(!empty($search)) matching {{ $search }} @endif @if(!empty($year)) for year {{ $year }} @endif @if(!empty($selectedUnitId)) in unit @php $selectedUnit = $units->firstWhere('id', (int) $selectedUnitId); @endphp {{ $selectedUnit->acronym ?? $selectedUnit->organization_unit }} @endif
@endif
@forelse($activities as $index => $activity) @empty @endforelse
# Project & Unit Activity Name Program Code Type Thematic Status Budget ({{ $activity->execution_year ?? '-' }}) Actions
{{ $activities->firstItem() + $index }} {{ $activity->project->project_name ?? '-' }} {{ $activity->organizationUnit?->acronym ?? $activity->project->organizationUnit->acronym ?? '-' }} {{ $activity->activity_name }} {{ $activity->program_code ?? '-' }} {{ $activity->activity_type ?? 'N/A' }} @if($activity->thematic_apbn) {{ $activity->thematic_apbn }} @else - @endif @if(($activity->statusName ?? 'On Going') === 'Completed') Completed @else {{ $activity->statusName ?? 'On Going' }} @endif Rp {{ number_format($activity->budget, 0, ',', '.') }}
@csrf @method('DELETE')
@if(!empty($search) || !empty($year)) No activities found matching the given filters. @else No activities recorded yet. @endif
@if($activities->hasPages())
{{ $activities->links() }}
@endif
@endsection