    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <h1 class="m-0 text-dark"><?php echo (isset($vehicletype))?'Edit Type':'Add Type' ?>
            </h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?= base_url(); ?>vehicle/vehicletype">Vehcile</a></li>
              <li class="breadcrumb-item active"><?php echo (isset($vehicletype))?'Edit Type':'Add Type' ?></li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <!-- Main content -->
    <section class="content">
      <div class="container-fluid">
              <form method="post" id="customer_add" class="card" action="<?php echo base_url();?>vehicle/<?php echo (isset($vehicletype))?'updatevehicletype':'updatevehicletype'; ?>">  
          <div class="card-body"> 

                  <div class="row">
                     <?php if(isset($vehicletype)) { ?>
                   <input type="hidden" name="id" id="id" value="<?php echo (isset($vehicletype)) ? $vehicletype[0]['id']:'' ?>" >
                 <?php } ?>
                    <div class="col-sm-4 col-md-3">
                      <div class="form-group">
                          <label class="form-label">Name<span class="form-required">*</span></label>
                          <input type="text" readonly required="true" class="form-control" value="<?php echo (isset($vehicletype)) ? $vehicletype[0]['v_type']:'' ?>" id="v_type" name="v_type" placeholder="Group Name">
                      </div>
                    </div>
                    <div class="col-sm-4 col-md-3">
                    <div class="form-group">
                    <label for="vt_group" class="form-label">Vehicle Group</label>
                        <select id="vt_group" name="vt_group" class="form-control " required="" style="pointer-events: none;">
                          <option value="">Select Vehicle Group</option> 
                          <?php if(!empty($v_group)) { foreach($v_group as $v_groupdata) { ?>
                          <option <?= (isset($vehicletype[0]['vt_group']) && $vehicletype[0]['vt_group'] == $v_groupdata['gr_id'])?'selected':''?> value="<?= $v_groupdata['gr_id'] ?>"><?= $v_groupdata['gr_name'] ?></option> 
                          <?php } } ?>
                        </select>
                    </div>
                    </div>
                     </div>
            <div class="row">
              <div class="form-group">
                     <label for="geo_name" class=" col-form-label">image</label>
                     
                        <input type="file" class="form-control"  value="<?php echo (isset($vehicletype)) ? $vehicletype[0]['image']:'' ?>"name="image" id="image"  placeholder="Enter Group Name">

                         <img src="../../assets/uploads/<?php echo $vehicletype[0]['image']; ?>" width="100" height="100">
                                   <input type="hidden"  id="old"  name="old"  value="<?php echo  $vehicletype[0]['image']  ?>"> 

                     </div>
                     <div class="form-group ">
                      <label for="geo_name" class="col-form-label">side image</label>
                     
                        <input type="file" class="form-control"  value="<?php echo (isset($vehicletype)) ? $vehicletype[0]['sideimage']:'' ?>"name="sideimage" id="sideimage"  placeholder="Enter Group Name">

                         <img src="../../assets/uploads/<?php echo $vehicletype[0]['sideimage']; ?>" width="100" height="100">
                                   <input type="hidden"  id="old1"  name="old1"  value="<?php echo  $vehicletype[0]['sideimage']  ?>"> 

                     </div>
                  </div>


                    <div class="form-group">
                        
                      </div>
                 
                   
                    

                
               
      <div class="modal-footer">

                  <button type="submit" class="btn btn-primary"> <?php echo (isset($vehicletype))?'Update Type':'Add Type' ?></button>
      </div>
    </div>
    </form>
             </div>
    </section>
    <!-- /.content -->

