@extends('layouts.usermain') @section('main-container')
{{-- Success Message --}} @if (session('success'))
{{ session('success') }}
@endif @if($baseline->admin_comments) @endif {{-- Edit Form --}}
@csrf @method('PUT')
Table no. 1.1 - Farmer Profile
@if($baseline->upload_respondent_photo) Respondent Photo @else @endif Only JPG/PNG files under 5MB are allowed.
Table 1.2 – Family Members
Name
Age
Gender
Category
Education Level
Action
@php $landIndex = 0; @endphp
Table 1.3 – Land Holding Information
{{-- ===== HEADER ROW (ONLY ONCE) ===== --}}
Plot / Khata No.
Type of Land
Total Area
Irrigated Area
Non-Irrigated
Irrigation Source
Action

{{-- ===== DATA ROWS ===== --}} @foreach($landHoldings as $land) @php $sourceArray = old("source_of_irrigation.$landIndex") ?? (is_array($land->irrigation_sources) ? $land->irrigation_sources : json_decode($land->irrigation_sources, true) ?? explode(',', $land->irrigation_sources)); $sourceArray = array_map('trim', (array) $sourceArray); @endphp
{{-- Plot / Khata --}}
plot_khata) }}" required>
{{-- Type of Land --}}
{{-- Total Area --}}
area) }}" oninput="validateDecimalInput(this)" required>
{{-- Irrigated Area --}}
irrigated_area) }}" oninput="validateDecimalInput(this)" required>
{{-- Non-Irrigated --}}
{{-- Irrigation Source --}}
{{-- Action --}}
@if($landIndex > 0) @endif
@php $landIndex++; @endphp @endforeach
@if($WaterHarvestingPlannings->isNotEmpty()) @foreach ($WaterHarvestingPlannings as $index => $planning)
{{-- Card Header --}}
Table 1.4 - Water Harvesting Structures Planning (Edit #{{ $loop->iteration }})
@if(!empty($planning->geotagged_file)) @endif
@endforeach @else
No Water Harvesting Planning data available.
@endif
{{-- Card Header --}}
Upload Documents
{{-- Beneficiary Agreement --}}
@if(!empty($documents?->beneficiary_agreement)) @endif beneficiary_agreement) ? 'required' : '' }}>
{{-- Khata Document --}}
@if(!empty($documents?->khata_document)) @endif khata_document) ? 'required' : '' }}>
{{-- Other Document --}}
@if(!empty($documents?->other_document)) @endif other_document) ? 'required' : '' }}>
{{-- Card Header --}}
Table 1.5: WHS Technical Feasibility
{{-- Row 1: All Inputs --}}
@if (isset($planning) && $planning->project_type_id !== 1)
@endif
@if (isset($planning) && $planning->project_type_id !== 1)
@endif
{{-- Row 2: Score Summary --}}
Catchment: 0.00% Land Slope: 0.00% @if (isset($planning) && $planning->project_type_id !== 1) Bed Slope: 0.00% Stream: 0.00% @endif Geographical: 0.00% Hydrological: 0.00% Drainage: -% LULC: -% Total: %
{{-- =========================== Table 1.6 - Water User Group =========================== --}}
Table 1.6 - Water User Group
Beneficiary
Category
Plot / Khata No.
Land Area (Acre)
Potential Irrigation (Acre)
Action
@endsection