<?php $this->load->view('includes/header'); ?>
<div class="page-title">                    
  <h2><span ></span><?php echo $heading_title; ?></h2>
</div>
<div class="page-content-wrap"> 
  <div class="fix"></div>
  <div class="row">
    <div class="col-md-12">
      <?php if ($this->session->flashdata('success')) { ?>
        <div class="alert alert-info">
          <?php echo $this->session->flashdata('success'); ?>
        </div>
      <?php } ?>
      <div class="panel panel-default">
        <div class="panel-body">
          <?php //echo validation_message(); ?>
          <?php echo form_open_multipart('sitepanel/kisan_mitra/edit_profile/', 'class="form-horizontal"'); ?> 
          <div class="form-group">
            <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Name</label>
            <div class="col-md-6">                                     
              <input type="text" class="form-control" name="admin_name" id="admin_name" value="<?php echo set_value("admin_name",$mres['admin_name']);?>"> 
              <?php echo form_error("admin_name");?>
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Email</label>
            <div class="col-md-6">                                     
              <input type="text" class="form-control" name="admin_email" id="admin_email" value="<?php echo set_value("admin_email",$mres['admin_email']);?>"> 
              <?php echo form_error("admin_email");?>
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Mobile Number</label>
            <div class="col-md-6">                                     
              <input type="text" class="form-control" name="phone" id="phone" value="<?php echo set_value("phone",$mres['phone']);?>"> 
              <?php echo form_error("phone");?>
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-3 col-xs-12 control-label"><span class="required">*</span>Address</label>
            <div class="col-md-6">                                     
              <input type="text" class="form-control" name="address" id="address" value="<?php echo set_value("address",$mres['address']);?>"> 
              <?php echo form_error("address");?>
            </div>
          </div>
          <div class="form-group">
            <label class="col-md-3 col-xs-12 control-label"><span class="required"></span>Profile Picture</label>
            <div class="col-md-6 col-xs-12">
              <a class="file-input-wrapper btn btn-default  fileinput btn-primary"><span>Browse file</span><input type="file" class="fileinput btn-primary" name="image1" id="image1" title="Browse file" accept="image/*"></a>
              <?php if($mres['admin_image']){
                $product_path = "district_head/" . $mres['admin_image']; ?>                                
              <a href="#" data-toggle="modal" data-target=".image_pop" class="pull-right">
                <img src="<?php echo base_url() . 'uploaded-files/' . $product_path; ?>" width="150" class="img-responsive img-rounded center-block" alt="">
              </a>
              <?php } ?>
            </div>
          </div>
          <?php /*
          <div class="form-group">
            <label class="col-md-3 col-xs-12 control-label"><span class="required">**</span>WhatsApp Number</label>
            <div class="col-md-6">
              <input type="text" name="whatsapp" class="form-control" value="<?php echo set_value('whatsapp', $admin_info->whatsapp); ?>" />                                                    
            </div>
          </div>*/ ?>

          <div class="form-group">
            <div class="col-md-8">
              <input type="submit" class="btn bg-red pull-right" value="Update Info"  />
            </div>
          </div>
          <?php echo form_close(); ?>
        </div>
      </div>
    </div>
  </div>
</div>


<?php $this->load->view('includes/footer'); ?>