
<div class="form-group row <?php echo e($errors->has('people_id') ? 'has-error' : ''); ?>">
    <label for="people_id" class="col-md-2 control-label">บุคคล</label>
    <div class="col-md-4">
        <select class="form-control" id="people_id" name="people_id">
        	    <option value="" style="display: none;" <?php echo e(old('people_id', optional($voterAssessment)->people_id ?: '') == '' ? 'selected' : ''); ?> disabled selected>ระบุ บุคคล</option>
        	<?php $__currentLoopData = $people; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $person): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			    <option value="<?php echo e($key); ?>" <?php echo e(old('people_id', optional($voterAssessment)->people_id) == $key ? 'selected' : ''); ?>>
			    	<?php echo e($person); ?>

			    </option>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
        
        <?php echo $errors->first('people_id', '<p class="form-text text-muted">:message</p>'); ?>

    </div>
</div>

<div class="form-group row <?php echo e($errors->has('assessment_date') ? 'has-error' : ''); ?>">
    <label for="assessment_date" class="col-md-2 control-label">วันที่ประเมิน</label>
    <div class="col-md-4">
        <input class="form-control" name="assessment_date" type="text" id="assessment_date" value="<?php echo e(old('assessment_date', optional($voterAssessment)->assessment_date)); ?>" placeholder="ระบุ วันที่ประเมิน">
        <?php echo $errors->first('assessment_date', '<p class="form-text text-muted">:message</p>'); ?>

    </div>
</div>

<div class="form-group row <?php echo e($errors->has('assessment_period') ? 'has-error' : ''); ?>">
    <label for="assessment_period" class="col-md-2 control-label">ครั้งที่ประเมิน</label>
    <div class="col-md-4">
        <input class="form-control" name="assessment_period" type="text" id="assessment_period" value="<?php echo e(old('assessment_period', optional($voterAssessment)->assessment_period)); ?>" min="-32768" max="32767" placeholder="ระบุ ครั้งที่ประเมิน">
        <?php echo $errors->first('assessment_period', '<p class="form-text text-muted">:message</p>'); ?>

    </div>
</div>

<div class="form-group row <?php echo e($errors->has('score') ? 'has-error' : ''); ?>">
    <label for="score" class="col-md-2 control-label">โอกาสได้คะแนน</label>
    <div class="col-md-4">
        <select class="form-control" id="score" name="score">
        	    <option value="" style="display: none;" <?php echo e(old('score', optional($voterAssessment)->score ?: '') == '' ? 'selected' : ''); ?> disabled selected>ระบุ โอกาสได้คะแนน</option>
        	<?php $__currentLoopData = ['3' => '3',
'2' => '2',
'1' => '1']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $text): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			    <option value="<?php echo e($key); ?>" <?php echo e(old('score', optional($voterAssessment)->score) == $key ? 'selected' : ''); ?>>
			    	<?php echo e($text); ?>

			    </option>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
        
        <?php echo $errors->first('score', '<p class="form-text text-muted">:message</p>'); ?>

    </div>
</div>

<div class="form-group row <?php echo e($errors->has('target_number') ? 'has-error' : ''); ?>">
    <label for="target_number" class="col-md-2 control-label">เบอร์ที่คาดว่าจะให้คะแนน</label>
    <div class="col-md-4">
        <select class="form-control" id="target_number" name="target_number">
        	    <option value="" style="display: none;" <?php echo e(old('target_number', optional($voterAssessment)->target_number ?: '') == '' ? 'selected' : ''); ?> disabled selected>ระบุ เบอร์ที่คาดว่าจะให้คะแนน</option>
        	<?php $__currentLoopData = ['3' => '3',
'2' => '2',
'1' => '1']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $text): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			    <option value="<?php echo e($key); ?>" <?php echo e(old('target_number', optional($voterAssessment)->target_number) == $key ? 'selected' : ''); ?>>
			    	<?php echo e($text); ?>

			    </option>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
        
        <?php echo $errors->first('target_number', '<p class="form-text text-muted">:message</p>'); ?>

    </div>
</div>

<div class="form-group row <?php echo e($errors->has('associates_id') ? 'has-error' : ''); ?>">
    <label for="associates_id" class="col-md-2 control-label">พรรคที่คาดว่าจะให้คะแนน</label>
    <div class="col-md-4">
        <select class="form-control" id="associates_id" name="associates_id">
        	    <option value="" style="display: none;" <?php echo e(old('associates_id', optional($voterAssessment)->associates_id ?: '') == '' ? 'selected' : ''); ?> disabled selected>ระบุ พรรคที่คาดว่าจะให้คะแนน</option>
        	<?php $__currentLoopData = $associates; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $associate): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			    <option value="<?php echo e($key); ?>" <?php echo e(old('associates_id', optional($voterAssessment)->associates_id) == $key ? 'selected' : ''); ?>>
			    	<?php echo e($associate); ?>

			    </option>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
        
        <?php echo $errors->first('associates_id', '<p class="form-text text-muted">:message</p>'); ?>

    </div>
</div>

<div class="form-group row <?php echo e($errors->has('users_id') ? 'has-error' : ''); ?>">
    <label for="users_id" class="col-md-2 control-label">ผู้บันทึกข้อมูล</label>
    <div class="col-md-4">
        <select class="form-control" id="users_id" name="users_id">
        	    <option value="" style="display: none;" <?php echo e(old('users_id', optional($voterAssessment)->users_id ?: '') == '' ? 'selected' : ''); ?> disabled selected>ระบุ ผู้บันทึกข้อมูล</option>
        	<?php $__currentLoopData = $users; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $user): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			    <option value="<?php echo e($key); ?>" <?php echo e(old('users_id', optional($voterAssessment)->users_id) == $key ? 'selected' : ''); ?>>
			    	<?php echo e($user); ?>

			    </option>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
        
        <?php echo $errors->first('users_id', '<p class="form-text text-muted">:message</p>'); ?>

    </div>
</div>

<div class="form-group row <?php echo e($errors->has('selected') ? 'has-error' : ''); ?>">
    <label for="selected" class="col-md-2 control-label"></label>
    <div class="col-md-4">
        <select class="form-control" id="selected" name="selected">
        	    <option value="" style="display: none;" <?php echo e(old('selected', optional($voterAssessment)->selected ?: '') == '' ? 'selected' : ''); ?> disabled selected>ระบุ </option>
        	<?php $__currentLoopData = ['YES' => 'YES',
'NO' => 'NO']; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $key => $text): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
			    <option value="<?php echo e($key); ?>" <?php echo e(old('selected', optional($voterAssessment)->selected) == $key ? 'selected' : ''); ?>>
			    	<?php echo e($text); ?>

			    </option>
			<?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
        </select>
        
        <?php echo $errors->first('selected', '<p class="form-text text-muted">:message</p>'); ?>

    </div>
</div>

<?php /**PATH D:\xampp7.4R1\htdocs\disk8\election\source\resources\views/voter_assessments/form.blade.php ENDPATH**/ ?>