@extends('layouts.app') @section('content') @php $regex = "([^\\s]+(\\.(?i)(jpe?g|png))$)"; $e = ''; @endphp
@csrf @method('PUT')

Farmer Details (edit)

{!! $errors->first('country_id', '') !!}
{!! $errors->first('region_id', '') !!}
{!! $errors->first('district_id', '') !!}
{!! $errors->first('county_id', '') !!}
{!! $errors->first('subCounty_id', '') !!}
{!! $errors->first('address', '') !!}

@if (count($farmers->farmerDocuments->document_files) > 0) @foreach ($farmers->farmerDocuments->document_files as $file)
@if (preg_match($regex, $file->file_name)) @endif
@endforeach @endif

Max size 2 MB
@if (count($farmers->farmerDocuments->document_type_files) > 0) @foreach ($farmers->farmerDocuments->document_type_files as $file)
@if (preg_match($regex, $file->file_name)) @endif
@endforeach @endif

@foreach (@$farmerCowDetails as $key => $farmerCowDetail) @if($loop->first) @php $e = 'enableddd-month' ;@endphp @else @php $e = 'disable-month'; @endphp @endif @php $month = null; $monthWiseCowDetails = @$farmerCowDetail->getMonthWiseCowDetails(); @endphp
Herd Size Milking Dry Heifer 7-12 mo 6 mo Bull Calf
@foreach (@$monthWiseCowDetails as $key => $item)
@endforeach
Milk Supplied (Ltr.) Supplied to Others (Ltr.) Self use
{{-- --}} @if ($loop->first) Remove @endif
@endforeach

Water Facility

Pasture & Fodder

Medicine & Vaccination

Machinery

Infrastructure

@foreach(@$improvementAreaDetail as $key=>$detail) @if(gettype(@$detail) == 'object')
@if(@$detail->input_type == 'dropdown') @elseif(@$detail->input_type == '') @else @endif
@else @continue @endif @endforeach
{{--
--}}
@endsection @section('scripts') @endsection