    <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($vehiclegroup))?'Edit Group':'Add Group' ?>
            </h1>
          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?= base_url(); ?>/dashboard">Vehcile</a></li>
              <li class="breadcrumb-item active"><?php echo (isset($vehiclegroup))?'Edit Group':'Add Group' ?></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($vehiclegroup))?'updatevehiclegroup':'updatevehiclegroup'; ?>">  
          <div class="card-body"> 

                  <div class="row">
                     <?php if(isset($vehiclegroup)) { ?>
                   <input type="hidden" name="gr_id" id="gr_id" value="<?php echo (isset($vehiclegroup)) ? $vehiclegroup[0]['gr_id']:'' ?>" >
                 <?php } ?>
                    <div class="col-sm-6 col-md-3">
                      <div class="form-group">
                          <label class="form-label">Name<span class="form-required">*</span></label>
                          <input type="text" required="true" class="form-control" value="<?php echo (isset($vehiclegroup)) ? $vehiclegroup[0]['gr_name']:'' ?>" id="gr_name" name="gr_name" placeholder="Group Name">
                      </div>
                    </div>
                    <div class="col-sm-6 col-md-3">
                      <div class="form-group">
                         <label class="form-label">Description<span class="form-required">*</span></label>
                          <input type="text" required="true" class="form-control" value="<?php echo (isset($vehiclegroup)) ? $vehiclegroup[0]['gr_desc']:'' ?>" id="gr_desc" name="gr_desc" placeholder="Group Description">
                      </div>
                    </div>
                    <div class="col-sm-6 col-md-3">
                      <div class="form-group">
                         <label class="form-label">Price</label>
                          <input type="text" required="true" class="form-control" value="<?php echo (isset($vehiclegroup)) ? $vehiclegroup[0]['gr_price']:'' ?>" id="gr_price" name="gr_price" placeholder="Group Price">

                      </div>
                    </div>  
                    

                </div>
                <div class="row">
                  <div class="col-sm-6 col-md-3">
                      <div class="form-group">
                         <label class="form-label">Waiting Time</label>
                          <input type="text" required="true" class="form-control" value="<?php echo (isset($vehiclegroup)) ? $vehiclegroup[0]['gr_waiting_time']:'' ?>" id="gr_waiting_time" name="gr_waiting_time" placeholder="Group Price">

                      </div>
                    </div>   
                    <div class="col-sm-6 col-md-3">
                      <div class="form-group">
                         <label class="form-label">Waiting Price</label>
                          <input type="text" required="true" class="form-control" value="<?php echo (isset($vehiclegroup)) ? $vehiclegroup[0]['gr_waiting_price']:'' ?>" id="gr_waiting_price" name="gr_waiting_price" placeholder="Group Price">

                      </div>
                    </div>   
                    <div class="col-sm-6 col-md-3">
                      <div class="form-group">
                         <label class="form-label">Waiting Grace Time</label>
                          <input type="text" required="true" class="form-control" value="<?php echo (isset($vehiclegroup)) ? $vehiclegroup[0]['gr_grace_time']:'' ?>" id="gr_grace_time" name="gr_grace_time" placeholder="Group Price">

                      </div>
                    </div>   
                </div>
                <div class="row">
                  <div class="col-sm-6 col-md-3">
                      <div class="form-group">
                         <label class="form-label">Fixed KM</label>
                          <input type="text" required="true" class="form-control" value="<?php echo (isset($vehiclegroup)) ? $vehiclegroup[0]['gr_fixed_km']:'' ?>" id="gr_fixed_km" name="gr_fixed_km" placeholder="Group Price">

                      </div>
                    </div>   
                    <div class="col-sm-6 col-md-3">
                      <div class="form-group">
                         <label class="form-label">Up to 1.5 Fixed Amount day time</label>
                          <input type="text" required="true" class="form-control" value="<?php echo (isset($vehiclegroup)) ? $vehiclegroup[0]['gr_fixed_amount']:'' ?>" id="gr_fixed_amount" name="gr_fixed_amount" placeholder="Group Price">

                      </div>
                    </div> 
                    <div class="col-sm-6 col-md-3">
                      <div class="form-group">
                         <label class="form-label">Up to 1.5 at night time</label>
                          <input type="text" required="true" class="form-control" value="<?php echo (isset($vehiclegroup)) ? $vehiclegroup[0]['gr_mid_night_charge']:'' ?>" id="gr_mid_night_charge" name="gr_mid_night_charge" placeholder="Group Price">

                      </div>
                    </div> 
                  </div>
                  <div class="row">
                  <div class="col-sm-6 col-md-3">
                      <div class="form-group">
                         <label class="form-label">Extra charge start time from</label>
                          <input type="text" required="true" class="form-control" value="<?php echo (isset($vehiclegroup)) ? $vehiclegroup[0]['gr_mid_night_time_start'].'am':'' ?>" id="gr_mid_night_time_start" name="gr_mid_night_time_start" placeholder="Group Price">

                      </div>
                    </div>   
                    <div class="col-sm-6 col-md-3">
                      <div class="form-group">
                         <label class="form-label">Extra charge end time</label>
                          <input type="text" required="true" class="form-control" value="<?php echo (isset($vehiclegroup)) ? $vehiclegroup[0]['gr_mid_night_time_to'].'am':'' ?>" id="gr_mid_night_time_to" name="gr_mid_night_time_to" placeholder="Group Price">

                      </div>
                    </div> 
                 
                  <!-- <div class="row"> -->
                  <div class="col-sm-6 col-md-3">
                      <div class="form-group">
                         <label class="form-label">Extra amount in night in %</label>
                          <input type="text" required="true" class="form-control" value="<?php echo (isset($vehiclegroup)) ? $vehiclegroup[0]['gr_mid_night_extra']:'' ?>" id="gr_mid_night_extra" name="gr_mid_night_extra" placeholder="Group Price">

                      </div>
                    </div> 
                  </div>
      <div class="modal-footer">

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

