@extends('layouts.app') @section('content') @php $regex = "([^\\s]+(\\.(?i)(jpe?g|png))$)"; $e = ''; @endphp @csrf @method('PUT') Farmer Details (edit) Farmers Farmer details Personal Details Name Mobile +256 Email Gender gender == 'male')? ' selected="selected"' : '') }}}>Male gender == 'female') ? ' selected="selected"' : '') }}}>Female DOB Landline No +256 Farming Since Farm Size Dairy Area No. of people working in the farm Manager Name Manager's mobile +256 Supplier Id MCC and DDE MCC Name Select @foreach ($milkCollectionCenters as $milkCollectionCenter) mcc_id == $milkCollectionCenter->id) selected @endif> {{ $milkCollectionCenter->name }} @endforeach Mobile +256 DDE Name Select Mobile +256 Address Country * {!! $errors->first('country_id', ':message') !!} Region * {!! $errors->first('region_id', ':message') !!} District * {!! $errors->first('district_id', ':message') !!} County * Select County {{@$countyData->name}} {!! $errors->first('county_id', ':message') !!} Sub County * Select Sub County {{@$subCountyData->name}} {!! $errors->first('subCounty_id', ':message') !!} Zip Code Address * {{ @$farmers->address->address }} {!! $errors->first('address', ':message') !!} KYC documents user->profile_pic) target="_blank" @endif id="preview_image_link"> Select ID Proof farmerDocuments) && $farmers->farmerDocuments->doc_name == 'passport')? ' selected="selected"' : '') }}}>Passport farmerDocuments) && $farmers->farmerDocuments->doc_name == 'nic') ? ' selected="selected"' : '') }}}>National Identity Card @if (count($farmers->farmerDocuments->document_files) > 0) @foreach ($farmers->farmerDocuments->document_files as $file) @if (preg_match($regex, $file->file_name)) @endif @endforeach @endif Select Address Proof farmerDocuments) && $farmers->farmerDocuments->doc_type == 'utility-bill')? ' selected="selected"' : '') }}}>Utility Bill farmerDocuments) && $farmers->farmerDocuments->doc_type == 'bank-statement') ? ' selected="selected"' : '') }}}>Bank Statement farmerDocuments) && $farmers->farmerDocuments->doc_type == 'lease-agreement') ? ' selected="selected"' : '') }}}>Lease Agreement Choose your file here 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 Farm Cows and Yield + Add More @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 @foreach ($monthArray as $key => $month) month ? 'selected' : '' }}> {{ @$month }} @endforeach {{ date('Y') }} @php $total_milk_production = @$farmerTotalMilkProduction->supplied_to_others + @$farmerTotalMilkProduction->self_use + @$farmerTotalMilkProduction->supplied_to_pdfl; $monthNumber = \Carbon\Carbon::parse('March')->month; $daysInMonth = \Carbon\Carbon::now()->month($monthNumber)->daysInMonth; $yeildPerDay = ((@$total_milk_production / $daysInMonth) / @$farmerCowDetail->milking_cows); @endphp Herd Size: {{ @$farmerCowDetail->herd_size }} Milking Cows: {{ @$farmerCowDetail->milking_cows }} Production: {{ @$total_milk_production }} Ltr Yield: {{ round(@$yeildPerDay,2) }} Ltr/day 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 Improvement Areas Water Facility Pasture & Fodder Medicine & Vaccination Machinery Infrastructure @foreach(@$improvementAreaDetail as $key=>$detail) @if(gettype(@$detail) == 'object') @if(@$detail->input_type == 'dropdown') {{@$detail->parameter}} {{$detail->value}} @elseif(@$detail->input_type == '') @else {{@$detail->parameter}} @endif @else @continue @endif @endforeach Cancel {{-- Save --}} Save @endsection @section('scripts') @endsection
Personal Details
MCC and DDE
Address
KYC documents
Farm Cows and Yield
+ Add More
Improvement Areas
Water Facility
Pasture & Fodder
Medicine & Vaccination
Machinery
Infrastructure