<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)) ? 'Edit Rent Request Form' : 'Add Rent Request Form' ?>
            </h1>

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


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

              <div class="col-sm-6 col-md-3">
                <label class="form-label">Full Name<span class="form-required">*</span></label>
                <div class="form-group">
                  <p class="form-control" > <?php echo (isset($driverdetails)) ? $driverdetails['r_fullName'] : '' ?></p>
                </div>
              </div>
              <div class="col-sm-6 col-md-3">
                <div class="form-group">
                  <label class="form-label">Father Name<span class="form-required">*</span></label>
                  <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_fatherName'] : '' ?></p>
                             </div>
              </div>
              <div class="col-sm-6 col-md-3">
                <div class="form-group">
                  <label class="form-label">Id Card<span class="form-required">*</span></label>
                  <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_idcard'] : '' ?></p>
                 
                </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>
                  <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_phoneNumber'] : '' ?></p>
         
                </div>
              </div>
              <div class="col-sm-12 col-md-12">
                <div class="form-group">
                  <label class="form-label">Address<span class="form-required">*</span></label>
                  <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_address'] : '' ?></p>
           
                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Car No<span class="form-required">*</span></label>
                  <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_carno'] : '' ?></p>
            
                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Chassis No<span class="form-required">*</span></label>
                  <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_chassisno'] : '' ?></p>
      
                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Engine No<span class="form-required">*</span></label>
                  <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_engineno'] : '' ?></p>
        
                </div>
              </div>
              <div class="col-sm-6 col-md-3">
                <label class="form-label">Make</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_make'] : '' ?></p> 
               
                </div>
              </div>
              <div class="col-sm-6 col-md-3">
                <label class="form-label">Model</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_model'] : '' ?></p>

                </div>
              </div>
              <div class="col-sm-6 col-md-3">
                <label class="form-label">Color</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_color'] : '' ?></p>

                </div>
              </div>
              <div class="col-sm-6 col-md-3">
                <label class="form-label">Car Value</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_carvalue'] : '' ?></p>
        
                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <label class="form-label">Metar Out</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_metarout'] : '' ?></p>

                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <label class="form-label">Date Out</label>
                
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_dateout'] : '' ?></p>

                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <label class="form-label">Time Out</label>

                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_timeout'] : '' ?></p>

                </div>
              </div>
              <div class="col-sm-6 col-md-6">
                <label class="form-label">Date In</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_datein'] : '' ?></p>
      
                </div>
              </div>
              <div class="col-sm-6 col-md-6">
                <label class="form-label">Time In</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_timein'] : '' ?></p>
     
                </div>
              </div>
             <div class="col-sm-6 col-md-4">
                <label class="form-label">Metar IN</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_metarin'] : '' ?></p>
         
                </div>
              </div>
              <!-- <div class="col-sm-6 col-md-4">
                <label class="form-label">Date Out</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_dateout'] : '' ?></p>

                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <label class="form-label">Time Out</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_timeout'] : '' ?></p>

                </div>
              </div> -->
              
              <div class="col-sm-6 col-md-3">
                <label class="form-label">Rent P-Day</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_rentperday'] : '' ?></p>
                 </div>
              </div>
              <div class="col-sm-6 col-md-3">
                <label class="form-label">Rent P-Month</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_rentpermonth'] : '' ?></p>

                </div>
              </div>
              <div class="col-sm-6 col-md-3">
                <label class="form-label">Advance</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_advance'] : '' ?></p>
 
                </div>
              </div>
              <div class="col-sm-6 col-md-3">
                <label class="form-label">Balance</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_balance'] : '' ?></p>

                </div>
              </div>

              <div class="col-sm-6 col-md-4">
                <label class="form-label">Duration</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_duration'] : '' ?></p>
        
                </div>
              </div>
              <div class="col-sm-6 col-md-4">
                <label class="form-label">Type</label>
                <div class="form-group">
                <p class="form-control" ><?php echo $driverdetails['r_type']; ?></p>
                 
                </div>
              </div>

              <div class="col-sm-6 col-md-4">
                <div class="form-group">
                  <label class="form-label">Driver License <span class="form-required">*</span></label>
                  <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['d_driverlicense'] : '' ?></p>
 
                </div>
              </div>

            </div>

          </div>

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

      <!-- Main content -->
      <section class="content">
        <div class="container-fluid">
          <div class="card-body">

            <hr>
            <div class="row">
            <div class="col-sm-12 col-md-12" style="text-align: center;">
                    <h4> Guarantor</h4>
                </div>
            </div>
            <div class="row">
            <div class="col-sm-6 col-md-6">
                <label class="form-label">Guarantor Name</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_guarantorname'] : '' ?></p>
        
                </div>
              </div>
              <div class="col-sm-6 col-md-6">
                <label class="form-label">Father Name</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_gfathername'] : '' ?></p>

                </div>
              </div>
              <div class="col-sm-6 col-md-6">
                <label class="form-label">NIC Number</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_gnicnumber'] : '' ?></p>

                </div>
              </div>
              <div class="col-sm-6 col-md-6">
                <label class="form-label">Phone Number</label>
                <div class="form-group">
                <p class="form-control" ><?php echo (isset($driverdetails)) ? $driverdetails['r_gphonenumber'] : '' ?></p>
    
                </div>
              </div>
            </div>
          </div>
          
        </div>
      </section>
      <section class="content">
        <div class="container-fluid">
          <div class="card-body">

            <hr>
            <div class="row">
            <div class="col-sm-12 col-md-12" style="text-align: center;">
                    <h4> Authority Latter</h4>
                </div>
            </div>
          
                

            <div class="row">
        Hereby Authorize to (Hirer) Mr.$ Mrs:
        <input
          style="border: none; border-bottom: 2px solid black; width:70%"
          type="text"
          value="<?php echo (isset($driverdetails)) ? $driverdetails['r_fullName'] : '' ?>"
        />
      </div>


    <div class="row">
      S/o ,D/o,W/o:
      <input
        style="border: none; border-bottom: 2px solid black ; width:39%"
        type="text"
        value="<?php echo (isset($driverdetails)) ? $driverdetails['r_fatherName'] : '' ?>"
      />
      N.I.C NO
      <input
        style="border: none; border-bottom: 2px solid black ; width:40%"
        type="number"
        value="<?php echo (isset($driverdetails)) ? $driverdetails['r_idcard'] : '' ?>"
      />
    </div>

    <div class="row">
      Resident of
      <input
        style="border: none; border-bottom: 2px solid black ; width:85%"
        type="text"
        value="<?php echo (isset($driverdetails)) ? $driverdetails['r_address'] : '' ?>"
      />
    </div>
    <div>
      <p>to only drive a car (detail mention above)</p>
    </div>
    <div>

      The authurity Latter is Valid:
      <input
        style="border: none; border-bottom: 2px solid black ; width:26%"
        type="text"
        value="<?php echo (isset($driverdetails)) ? $driverdetails['r_dateout'] : '' ?>"
      />
      to
      <input
        style="border: none; border-bottom: 2px solid black ; width:26%"
        type="text"
        value="<?php echo (isset($driverdetails)) ? $driverdetails['r_datein'] : '' ?>"
      />
      after wich it becomes null & void
    </div>
    <div class="row">
      Owner signature
      <input
        style="border: none; border-bottom: 2px solid black"
        type="text"
        value=""
      />
    </div>
    <div class="row">
      <br>
      Client signature
      <input
        style="border: none; border-bottom: 2px solid black"
        type="text"
        value=""
      />
    </div>
    <div class="row">
      Guarantor signature
      <input
        style="border: none; border-bottom: 2px solid black"
        type="text"
        value=""
      />
    </div>    

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