@extends('booth.layouts.app') @section('content')

Edit Voter List

Edit Voter List
@if(session()->has('success')) {{session()->get('success')}} @endif Back {{-- --}}
@php $data = App\Models\VoterlistUpdate::where('voter_id', $row->id)->where('mla_id',Auth::user()->create_by)->where('vidhansabha_id',Auth::user()->vidhansahba_id)->first(); @endphp
{!! Form::model($row, ['method' => 'patch', 'files' => true, 'route' => ['voter.update', encrypt($row->id)]]) !!} @csrf
{{ $errors->first('name')}}
{{ $errors->first('name')}}
{{ $errors->first('name')}}
{{ $errors->first('name')}}
{{ $errors->first('name')}}
{{ $errors->first('name')}}
{{ $errors->first('name')}}
@php $vidhansabha = DB::table('vidhan_sabhas')->where('vidhansabha_id',$row->ac_no)->value('vidhansabha_title'); @endphp
{{--
{{ $errors->first('name')}}
--}}
{{ $errors->first('pincode')}}
@php if($data != null){ $favar = $data->favar; $party1 = $data->party; $profession_type = $data->profession_type; $profession1 = $data->profession; $religion1 = $data->religion; $caste1 = $data->caste_id; $gotra = $data->gotra; $scheme_type = $data->scheme_type; $sechmeId = json_decode($data->scheme_id); $schemedescription = json_decode($data->scheme_description); $schemeyear = json_decode($data->scheme_year); }else{ $favar = $row->favar; $party1 = $row->party; $profession_type = $row->profession_type; $profession1 = $row->profession; $religion1 = $row->religion; $caste1 = $row->caste_id; $gotra = $row->gotra; $scheme_type = $row->scheme_type; $sechmeId = json_decode($row->scheme_id); $schemedescription = json_decode($row->scheme_description); $schemeyear = json_decode($row->scheme_year); } @endphp
{{ $errors->first('favar')}}
{{ $errors->first('profession_type')}}
{{-- --}} @foreach($profession as $r)
{{ $errors->first('profession')}}
{{ $errors->first('religion')}}
@php $otherCaste = App\Models\Caste::where('id',$caste1)->first(); if($otherCaste){ $status = 1; }else{ $status = 0; } @endphp
{{ $errors->first('caste')}}
status != 3) style="display:none;" @endif @else style="display:none;" @endif> status == 3) value="{{$otherCaste->caste_name}}" @endif @endif id="other_caste" class="form-control">
{{ $errors->first('other_caste')}}
{{ $errors->first('gotra')}}
@endsection