@extends('layouts.app') @section('content') @php $regex = "([^\\s]+(\\.(?i)(jpe?g|png|pdf|jpg))$)"; $regexPdf = "([^\\s]+(\\.(?i)(pdf))$)"; $pdfIcon = "https://upload.wikimedia.org/wikipedia/commons/thumb/8/87/PDF_file_icon.svg/833px-PDF_file_icon.svg.png"; $e = ''; @endphp
@csrf {{-- @method('PUT') --}}

Farmer Details (edit)

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


Max size 5 MB
@if (isset($farmers->farmerDocuments) && count($farmers->farmerDocuments->document_files) > 0) @foreach ($farmers->farmerDocuments->document_files as $file) @if($file->file_name == 'Dummy-File-.docx') @continue @else
@if (preg_match($regex, $file->file_name)) {{--
--}} @php $icon = preg_match($regexPdf, $file->file_name) ? $pdfIcon : $file->full_url; @endphp {{--
--}} @endif
@endif @endforeach @endif

Max size 5 MB
{{-- --}}
@if (isset($farmers->farmerDocuments) && count($farmers->farmerDocuments->document_type_files) > 0) @foreach ($farmers->farmerDocuments->document_type_files as $file)
@if (preg_match($regex, $file->file_name)) {{--
--}} @php $icon = preg_match($regexPdf, $file->file_name) ? $pdfIcon : $file->full_url; @endphp {{--
--}} @endif
@endforeach @endif

@foreach (@$farmerCowDetails as $key => $farmerCowDetail) @if($loop->first) @php $e = 'enable-month'; @endphp @else @php $e = 'disable-month' @endphp @endif @php $month = null; $monthWiseCowDetails = @$farmerCowDetail->getMonthWiseCowDetails(); $monthWiseProduction = @$farmerCowDetail->getMonthWiseProduction(); @endphp
Herd Size Milking Dry Heifer 7-12 mo 6 mo Bull Calf
@foreach (@$monthWiseCowDetails as $item)
@endforeach
{{-- --}}
Milk Supplied (Ltr.) Supplied to Others (Ltr.) Self use Total milk
production (Ltr.)
{{ @$total_milk_production }}
Yield (Ltr.)
/Cow /Day
{{ round(@$yeildPerDay, 2) }}
{{-- --}} @if ($loop->first) Remove @endif
{{-- @if ($loop->last) @endif --}} @endforeach

@php $impAreaId = request()->get('impAreaId') ? : 1; @endphp @if(!empty($farmersImprovementArea)) @foreach($farmersImprovementArea as $imp_area)

{{@$imp_area['name']}}

@endforeach @endif
@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') @include('setting.partials.address-js') @endsection