<?php $__env->startSection('content'); ?>
<!-- farmers content -->
<div class="right_col" role="main">
  <div class="row x_panel">
    <div class="col-md-12 col-sm-12 col-xs-12">
    <h1>Farmers</h1>
<?php if(isset($data)){ ?>
<form action="<?php echo url('/'); ?>/admin/farmers/edit" id="" class="form-horizontal " method="post" enctype="multipart/form-data">
<?php echo e(csrf_field()); ?>

<input type="hidden" name="f_id" value="<?php echo $data->f_id; ?>">


<!-- Name Start -->
<div class="form-group">
  <label for="name" class="col-sm-3 control-label"> Name </label>
  <div class="col-sm-4">
    <input type="text" class="form-control" id="name" name="name" 
    
    value="<?php echo e($data->name); ?>"
    >
  </div>
  <div class="col-sm-5">
         <div class="label label-danger"><?php echo e($errors->first("name")); ?></div>
      </div>
</div> 
<!-- Name End -->



<!-- Email Start -->
<div class="form-group">
  <label for="email" class="col-sm-3 control-label"> Email </label>
  <div class="col-sm-4">
    <input type="email" class="form-control" id="email" name="email" 
    
    value="<?php echo e($data->email); ?>"
    >
  </div>
  <div class="col-sm-5">
         <div class="label label-danger"><?php echo e($errors->first("email")); ?></div>
      </div>
</div> 
<!-- Email End -->



<!-- Mobile Start -->
<div class="form-group">
  <label for="mobile" class="col-sm-3 control-label"> Mobile </label>
  <div class="col-sm-4">
    <input type="text" class="form-control" id="mobile" name="mobile" value="<?php echo e($data->mobile); ?>" onkeydown="if(this.value.length==10 && event.keyCode!=8 && event.keyCode!=9) return false;" oninput="this.value = this.value.replace(/[^0-9.]/g, '').replace(/(\..*)\./g, '$1');">
  </div>
  <div class="col-sm-5">
         <div class="label label-danger"><?php echo e($errors->first("mobile")); ?></div>
      </div>
</div> 
<!-- Mobile End -->



    <!-- Status Start -->
     <div class="form-group">
        <label class="control-label col-md-3">Status
             
        </label>                    
         <div class=" col-md-4 switch">
                    <div class="onoffswitch">
     <input type="checkbox" class="onoffswitch-checkbox"  data-on-label="Yes" data-off-label="No"  name="status" value="1" id="status" <?php if($data->status == 1){echo "checked=checked";}?> style="width:20px; height:20px;"/>
                    </div>
                </div>
      </div>
      <!-- Status End -->


  <div class="form-group">
  <div class="col-sm-3">
  </div>
   <div class="col-sm-6">
    <input type="hidden" name="rel_field" id="rel_field" value="<?php echo $rel_field; ?>">
    <input type="hidden" name="rel_id" id="rel_id" value="<?php echo $rel_id; ?>">
    <button type="reset" class="btn btn-default ">Reset</button>
    <button type="submit" class="btn btn-info ">Update</button>
   </div>
  </div>
</form>
<?php } else{
    echo '<h2 align="center" class="text-danger">No record found!</h2>';
  } ?>
    </div>
  </div>
</div>
<!-- /farmers content -->
<?php $__env->stopSection(); ?>
<?php echo $__env->make('master', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>