@extends('admin.admin_dashboard') @section('admin') <<<<<<< HEAD ======= @include('partials.admin.stepper-assets') >>>>>>> origin/main
{{-- breadcrumb --}} {{-- Styled Breadcrumb --}}
{{-- Optional page title on the left --}}
Edit Child Update
{{-- Step triggers same as add form --}}
@csrf @method('PUT') {{-- Step 1: Select Child --}}
Select Child to Update
{{-- Step 2: Child Info --}}
Child Details

Update the child fields below

{{-- still at home --}}
still_at_home)=='yes' ? 'checked':'' }}>
still_at_home)=='no' ? 'checked':'' }}>
{{-- schooling --}}
is_schooling)=='yes' ? 'checked':'' }}>
is_schooling)=='no' ? 'checked':'' }}>
{{-- church attendance --}}
@foreach(['regularly','sometimes','no'] as $freq)
church_attendance)==$freq ? 'checked':'' }}>
@endforeach
{{-- appearance --}}
@foreach(['Good','Fair','Poor'] as $look)
appearance)==strtolower($look) ? 'checked':'' }}>
@endforeach
{{-- hobby & dream --}}
{{-- guardian select & info --}}
{{-- Step 3: Family Info --}}
Family Info
house_type)=='permanent' ? 'checked':'' }}>
house_type)=='semi_permanent' ? 'checked':'' }}>
@foreach(['kitchen','utensils_rack','bathroom','latrine'] as $item)
{'has_'.$item}) ? 'checked':'' }}>
@endforeach
recent_death)=='yes' ? 'checked':'' }}>
recent_death)=='no' ? 'checked':'' }}>
{{-- Step 4: Sustainability --}}
Sustainability
received_coffee)=='yes' ? 'checked':'' }}>
received_coffee)=='no' ? 'checked':'' }}>
harvesting_coffee)=='yes' ? 'checked':'' }}>
harvesting_coffee)=='no' ? 'checked':'' }}>
@foreach(['not_ready'=>'Not yet at harvesting stage','dried'=>'Coffee dried','pest_disease'=>'Affected by pest/disease','other'=>'Other'] as $val=>$label)
harvest_no_reason)==$val ? 'checked':'' }}>
@endforeach
Update Photo>>>>>> origin/main >
{{-- JS: image preview, stepper, toggles, alerts (same as add form) --}} @endsection