@extends('layouts.admin') @section('title', $indicator->exists ? 'Edit Indicator' : 'New Indicator') @section('content')
@csrf @if($indicator->exists) @method('PUT') @endif
1. Indicator Register
mandatory) ? 'checked' : '' }}>
exists ? $indicator->is_active : true) ? 'checked' : '' }}>
2. Sub-Indicators (data-carrying)

e.g. "4.1 No. of ward shava / open budget meetings supported"

@php($subs = old('sub_indicators', $subIndicators->map(fn($s) => ['code' => $s->code, 'label' => $s->label])->toArray())) @foreach($subs as $i => $sub)
@endforeach
3. Data Entry Form (Kobo-style)

Dropdown fields must draw from a controlled Dropdown List. This is the form project users will fill in when reporting against this indicator.

@php($fields = old('form_fields', $formFields->map(fn($f) => [ 'section' => $f->section, 'field_no' => $f->field_no, 'question' => $f->question, 'field_type' => $f->field_type, 'dropdown_list_id' => $f->dropdown_list_id, 'validation_rule' => $f->validation_rule, 'sub_indicator_code' => $f->sub_indicator_code, 'mandatory' => $f->mandatory ? 1 : 0, 'character_limit' => $f->character_limit, ])->toArray())) @foreach($fields as $i => $f)
@endforeach
Cancel
@endsection