@extends('layouts.admin') @section('title', 'Select Indicators for Project') @section('content')
@if(!$project)
You don't have any project assigned yet. Ask your MEAL Department to assign you to a project (Admin > Users).
@else
@csrf

Select every core (Tier 1) and cross-cutting (Tier 2) indicator that {{ $project->title }} contributes to. Only approved selections will appear on this project's data submission form. This is a one-time mapping exercise — re-run it any time the project's scope changes.

@foreach($indicators->groupBy(fn($i) => $i->tier == 1 ? ($i->program->title ?? 'Unassigned') : 'Tier 2 — Cross-Cutting') as $groupName => $group)
{{ $groupName }}
@foreach($group as $ind) @php($status = $existingMap[$ind->id] ?? null) @endforeach
CodeCore IndicatorDonor Logframe RefCurrent Status
{{ $ind->code }} {{ $ind->name }} @if($status) {{ $status }} @else Not yet mapped @endif
@endforeach
@endif @endsection