    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <div class="img-profile ml-3">

            </div>
            <h1 class="m-0 text-dark"><?php echo (isset($driverdetails)) ? 'Add Promotion' : 'Add Promotion' ?>
            </h1>

          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?= base_url(); ?>/dashboard">Promotion</a></li>
              <li class="breadcrumb-item active"><?php echo (isset($driverdetails)) ? 'Add Promotion' : 'Add Promotion' ?></li>
            </ol>
          </div><!-- /.col -->
        </div><!-- /.row -->
      </div><!-- /.container-fluid -->
    </div>
    <form method="post" id="add_driver" class="card" action="<?php echo base_url() . "drivers/insertdriver"; ?>" enctype="multipart/form-data">
      <!-- Main content -->
      <section class="content">
        <div class="container-fluid">
          <div class="card-body">


            <div class="row">
              <input type="hidden" name="d_id" id="d_id" value="<?php echo (isset($driverdetails)) ? $driverdetails[0]['d_id'] : '' ?>">

              <div class="col-sm-6 col-md-3">
                <label class="form-label">Title<span class="form-required">*</span></label>
                <div class="form-group">
                  <input type="text" name="d_firstName" id="firstName" class="form-control" placeholder="Title" value="<?php echo (isset($driverdetails)) ? $driverdetails[0]['firstName'] : '' ?>">
                </div>
              </div>
              <div class="col-sm-6 col-md-3">
                <div class="form-group">
                  <label class="form-label">Amount<span class="form-required">*</span></label>
                  <input type="number" name="d_lastName" value="<?php echo (isset($driverdetails)) ? $driverdetails[0]['lastName'] : '' ?>" class="form-control" placeholder="Amount">
                </div>
              </div>
            
              <div class="col-sm-6 col-md-3">
                <div class="form-group">
                  <label class="form-label">Start Date<span class="form-required">*</span></label>
                  <input type="tel" name="d_phoneNumber" value="<?php echo (isset($driverdetails)) ? $driverdetails[0]['phoneNumber'] : '' ?>" class="form-control" placeholder="Start Date">
                </div>
              </div>
                 <div class="col-sm-6 col-md-3">
                <div class="form-group">
                  <label class="form-label">End Date<span class="form-required">*</span></label>
                  <input type="tel" name="d_phoneNumber" value="<?php echo (isset($driverdetails)) ? $driverdetails[0]['phoneNumber'] : '' ?>" class="form-control" placeholder="Start Date">
                </div>
              </div>

              <div class="col-sm-6 col-md-6">
                <div class="form-group">
                  <label class="form-label">Type<span class="form-required">*</span></label>
                  <select id="isActive" name="d_isActive" class="form-control " required="">
                    <option value="">Select Type</option>
                    <option >Discount</option>
                     <option >ABC</option>
                      <option >CDE</option>
                   
                  </select>
                </div>
              </div>
              <div class="col-sm-6 col-md-3 ">
                <div class="form-group">
                  <label for="isActive" class="form-label"> Status</label>
                  <select id="isActive" name="d_isActive" class="form-control " required="">
                    <option value="">Select  Status</option>
                    <option <?php echo (isset($driverdetails) && $driverdetails[0]['isActive'] == 1) ? 'selected' : '' ?> value="1">Active</option>
                    <option <?php echo (isset($driverdetails) && $driverdetails[0]['isActive'] == 0) ? 'selected' : '' ?> value="0">Inactive</option>
                  </select>
                </div>
              </div>
                <div class="col-sm-12 col-md-12">
                <div class="form-group">
                  <label class="form-label">Message</label>
                  <textarea class="form-control"></textarea> 
                </div>
              </div>

            </div>

          </div>

        </div>
      </section>
      <!-- /.content -->


      <!-- Main content -->
      <section class="content">
        <div class="container-fluid">
          
          <input type="hidden" id="created_by" name="v_createdBy" value="<?php echo output($this->session->userdata['session_data']['u_id']); ?>">
          <input type="hidden" id="created_date" name="v_createdDate" value="<?php echo date('Y-m-d h:i:s'); ?>">
          <div class="card-footer text-right">
            <button type="submit" class="btn btn-primary"> <?php echo (isset($vehicledetails) && isset($driverdetails)) ? 'Add Promotion' : 'Add Promotion' ?></button>
          </div>
        </div>
      </section>
      <!-- /.content -->
    </form>