<div class="content-header">
   <div class="container-fluid">
      <div class="row mb-2">
         <div class="col-sm-6">
            <h1 class="m-0 text-dark">Driver Info
            </h1>
         </div>
         <!-- /.col -->
         <div class="col-sm-6">
            <ol class="breadcrumb float-sm-right">
               <li class="breadcrumb-item"><a href="<?= base_url(); ?>/dashboard">Dashboard</a></li>
               <li class="breadcrumb-item active">Driver Info</li>
            </ol>
         </div>
         <!-- /.col -->
      </div>
      <!-- /.row -->
   </div>
   <!-- /.container-fluid -->
</div>
<!-- Main content -->
<section class="content">
   <div class="container-fluid">
      <div class="card">
         <div class="card-body p-0">
            <div class="table-responsive">
               <table id="driverslisttbl" class="table card-table table-vcenter text-nowrap">
                  <thead>
                     <tr>
                        <th class="w-1">S.No</th>
                        <th>Name</th>
                        <th>Mobile</th>
                        <th>Driver Riding Status</th>
                        <!-- <th>License Exp Date</th> -->
                        <th>Date of Joining</th>
                        <th>Is Active</th>
                        <?php if(userpermission('lr_drivers_list_edit')) { ?>
                        <th>Action</th>
                        <?php } ?>
                     </tr>
                  </thead>
                  <tbody>
                       <?php if(!empty($driverslist)){  $count=1;
                        foreach($driverslist as $driverslists){
                        ?>
                     <tr>
                        <td> <?php echo output($count); $count++; ?></td>
                        <td> <?php echo output($driverslists['d_name']); ?></td>
                        <td> <?php echo output($driverslists['d_mobile']); ?></td>
                        <td><?php echo output($driverslists['d_riding_status']); ?></td>
                        <!-- <td><?php echo output($driverslists['d_license_expdate']); ?></td> -->
                        <td><?php echo output($driverslists['d_doj']); ?></td>
                        <td>  <span class="badge <?php echo ($driverslists['d_is_active']=='1') ? 'badge-success' : 'badge-danger'; ?> "><?php echo ($driverslists['d_is_active']=='1') ? 'Active' : 'Inactive'; ?></span>  </td>
                       
						
						 <?php if(userpermission('lr_drivers_list_view') || userpermission('lr_drivers_list_edit')) { ?>
                        <td><?php if(userpermission('lr_drivers_list_edit')) { ?>
                           <!-- <a class="icon" href="<?php echo base_url(); ?>drivers/viewdriver/<?php echo output($driverslists['d_id']); ?>">
                           <i class="fa fa-eye"></i>
                           </a> | --> 
                           <?php } if(userpermission('lr_drivers_list_edit')) { ?>
                           <a class="icon" href="<?php echo base_url(); ?>drivers/editdriver/<?php echo output($driverslists['d_id']); ?>">
                           <i class="fa fa-edit"></i>
                           </a>
						     <?php } ?>
                        </td>
						 <?php } ?>
                        <?php }  } ?>
                     </tr>
                  </tbody>
               </table>
               <!-- <p><?php echo $links; ?></p> -->
            </div>
         </div>
         <!-- /.card-body -->
      </div>
   </div>
</section>
<!-- /.content -->

<script>
setInterval(displayHello,600000);

function displayHello() {
 location.reload();
}
</script>