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

Master Data • PHLN Projects

LIST PROJECTS

Manage PHLN project portfolios, MoU values, and grant registration statuses.

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

Filter & Search Projects

Sesuaikan tampilan daftar project sesuai kebutuhan.

@include('partials.year-filter', ['label' => 'Grant Registration Year', 'years' => $years, 'allLabel' => 'Semua Tahun']) @if(auth()->check() && auth()->user()->isSuperAdmin()) @include('partials.unit-filter') @endif
Search Project
@if(!empty($search) || !empty($year) || !empty($selectedUnitId)) Reset @endif
@if(!empty($search) || !empty($year) || !empty($selectedUnitId))
Found {{ $projects->total() }} project(s) @if(!empty($search)) matching {{ $search }} @endif @if(!empty($year)) with grant registration year {{ $year }} @endif @if(!empty($selectedUnitId)) in unit @php $selectedUnit = $units->firstWhere('id', (int) $selectedUnitId); @endphp {{ $selectedUnit->acronym ?? $selectedUnit->organization_unit }} @endif
@endif
@forelse($projects as $index => $project) @empty @endforelse
# Unit Register No. Project Name MoU Amount (Rp) MoU Amount (USD) Grant Reg. Actions
{{ $projects->firstItem() + $index }} {{ $project->organizationUnit->acronym ?? $project->organizationUnit->organization_unit ?? '-' }} {{ $project->register_number ?? '-' }} {{ $project->project_name }} @if($project->mou_period) MoU Period: {{ $project->mou_period }} @endif Rp {{ number_format($project->mou_amount, 0, ',', '.') }} @if(!is_null($project->mou_amount_usd) && $project->mou_amount_usd > 0) $ {{ number_format((int) $project->mou_amount_usd, 0, ',', '.') }} @else - @endif @php $grStatus = $project->grant_registration_status ?? 'Not Yet Registered'; @endphp
@if($grStatus === 'Registered') Registered @else Not Yet Registered @endif @if($project->grant_registration_date) {{ $project->grant_registration_date->format('d M Y') }} @else - @endif @if($project->grant_registration_link) Document @endif
@csrf @method('DELETE')

@if(!empty($search) || !empty($year) || !empty($selectedUnitId)) No projects found matching the given filters. @else No projects found. @endif

@if($projects->hasPages())
{{ $projects->links() }}
@endif
@endsection