    <div class="content-header">
      <div class="container-fluid">
        <div class="row mb-2">
          <div class="col-sm-6">
            <div class="img-profile ml-3">
              <img src="<?= base_url() ?>assets/uploads/newlogo1.png" class="img-circle img-fluid" style="height: 100px;width: 100px;">
            </div>
            <h1 class="m-0 text-dark"><?php echo (isset($driverdetails)) ? 'Add driver' : 'Add driver' ?>
            </h1>

          </div><!-- /.col -->
          <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
              <li class="breadcrumb-item"><a href="<?= base_url(); ?>/dashboard">Vehicle</a></li>
              <li class="breadcrumb-item active"><?php echo (isset($driverdetails)) ? 'Add driver' : 'Add driver' ?></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">Frist Name<span class="form-required">*</span></label>
                <div class="form-group">
                  <input type="text" name="d_firstName" id="firstName" class="form-control" placeholder="Frist Name" 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">Last Name<span class="form-required">*</span></label>
                  <input type="text" name="d_lastName" value="<?php echo (isset($driverdetails)) ? $driverdetails[0]['lastName'] : '' ?>" class="form-control" placeholder="Last Name">
                </div>
              </div>
              <div class="col-sm-6 col-md-3">
                <div class="form-group">
                  <label class="form-label">Email<span class="form-required">*</span></label>
                  <input type="email" name="d_email" value="<?php echo (isset($driverdetails)) ? $driverdetails[0]['email'] : '' ?>" class="form-control" placeholder="Email">
                </div>
              </div>
              <div class="col-sm-6 col-md-3">
                <div class="form-group">
                  <label class="form-label">Phone Number<span class="form-required">*</span></label>
                  <input type="tel" name="d_phoneNumber" value="<?php echo (isset($driverdetails)) ? $driverdetails[0]['phoneNumber'] : '' ?>" class="form-control" placeholder="Phone Number">
                </div>
              </div>

              <div class="col-sm-6 col-md-6">
                <div class="form-group">
                  <label class="form-label">Password<span class="form-required">*</span></label>
                  <input type="password" name="d_password" value="<?php echo (isset($driverdetails)) ? $driverdetails[0]['password'] : '' ?>" class="form-control" placeholder="Password">

                </div>
              </div>
              <div class="col-sm-6 col-md-3 d-none">
                <div class="form-group">
                  <label for="isActive" class="form-label">Driver Status</label>
                  <select id="isActive" name="d_isActive" class="form-control " required="">
                    <option value="">Select Driver 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>

          </div>

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

      <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($vehicledetails)) ? 'Add Vehicle' : 'Add Vehicle' ?>
              </h1>
            </div><!-- /.col -->
            <div class="col-sm-6">
              <ol class="breadcrumb float-sm-right">
                <li class="breadcrumb-item"><a href="<?= base_url(); ?>/dashboard">Vehicle</a></li>
                <li class="breadcrumb-item active"><?php echo (isset($vehicledetails)) ? 'Add vehicle' : 'Add Vehicle' ?></li>
              </ol>
            </div><!-- /.col -->
          </div><!-- /.row -->
        </div><!-- /.container-fluid -->
      </div>
      <!-- Main content -->
      <section class="content">
        <div class="container-fluid">
          <div class="card-body">


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

              <div class="col-sm-6 col-md-4">
                <label class="form-label">Model</label>
                <div class="form-group">
                  <input type="text" name="v_model" id="model" class="form-control" placeholder="Model" value="<?php echo (isset($vehicledetails)) ? $vehicledetails[0]['model'] : '' ?>">
                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <label class="form-label">Year</label>
                <div class="form-group">
                  <input type="text" name="v_year" id="year" class="form-control" placeholder="Year" value="<?php echo (isset($vehicledetails)) ? $vehicledetails[0]['year'] : '' ?>">
                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Tag number</label>
                  <input type="text" name="v_tagNumber" value="<?php echo (isset($vehicledetails)) ? $vehicledetails[0]['tagNumber'] : '' ?>" class="form-control" placeholder="Tag number">
                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Number of doors</label>
                  <input type="text" name="v_noofDoors" value="<?php echo (isset($vehicledetails)) ? $vehicledetails[0]['noofDoors'] : '' ?>" class="form-control" placeholder="Number of doors">
                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Number of seatbelts</label>
                  <input type="text" name="v_noOfSeatBelts" value="<?php echo (isset($vehicledetails)) ? $vehicledetails[0]['noofSeatbelts'] : '' ?>" class="form-control" placeholder="Number of seatbelts">
                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Color</label>
                  <input type="text" name="v_color" value="<?php echo (isset($vehicledetails)) ? $vehicledetails[0]['color'] : '' ?>" class="form-control" placeholder="Color">
                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Car Type</label>
                  <select name="v_carType" class="form-control" placeholder="Color">
                    <option value="bike">Bike</option>
                    <option value="rickshaw">Rickshaw</option>
                    <option value="goMini">Go Mini (without AC)</option>
                    <option value="go">Go (with AC)</option>
                    <option value="goPlus">Go Plus (Sedan)</option>
                    <option value="sevenSeater">Seven Seater (without AC)</option>
                    <option value="sevenSeaterPlus">Seven Seater Plus (with AC)</option>
                    <option value="hiace">Hiace (Toyota)</option>
                  </select>
                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Photo of Drivers License Front</label>
                  <input type="file" name="v_licenseFrontUrl" class="form-control" placeholder="Proof of insurance">
                </div>
              </div>
            </div>
            <div class="row">
              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Photo of Drivers License Back</label>
                  <input type="file" name="v_licenseBackUrl" class="form-control" placeholder="Proof of insurance">
                </div>
              </div>

              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Front picture of car</label>
                  <input type="file" name="v_frontCarUrl" class="form-control" placeholder="Proof of insurance">
                </div>
              </div>


              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Cnic Front picture</label>
                  <input type="file" name="v_cnicFrontUrl" class="form-control" placeholder="Proof of insurance">
                </div>
              </div>

              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Cnic Back picture</label>
                  <input type="file" name="v_cnicBackUrl" class="form-control" placeholder="Proof of insurance">
                </div>
              </div>

            </div>
            <hr>
            <div class="row">



            </div>
          </div>
          <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 Vehicle' : 'Add Vehicle' ?></button>
          </div>
        </div>
      </section>
      <!-- /.content -->
    </form>