File: /var/www/html/taxicamera/applicationold/views/admin/driver/list_driver_master.php
<div class="main-content">
<div class="content-wrapper">
<div class="container-fluid">
<?php if ($this->session->flashdata('success_msg')) : ?>
<div class="alert alert-success">
<a href="#" class="close" data-dismiss="alert" aria-label="close" title="close">×</a>
<?php echo $this->session->flashdata('success_msg') ?>
</div>
<?php endif ?>
<?php if ($this->session->flashdata('error_msg')) : ?>
<div class="alert alert-danger">
<a href="#" class="close" data-dismiss="alert" aria-label="close" title="close">×</a>
<?php echo $this->session->flashdata('error_msg') ?>
</div>
<?php endif ?>
<!-- Basic form layout section start -->
<section id="basic-form-layouts">
<div class="row">
<div class="col-md-12">
<div class="card">
<div class="card-header">
<div class="page-title-wrap">
<h4 class="card-title">Driver Master List</h4>
</div>
</div>
<div class="card-body">
<div class="px-3">
<form class="form">
<div class="form-body">
<!--<h4 class="form-section">
<i class="icon-user"></i> Personal Details</h4>-->
<div class="row">
<div class="col-sm-12">
<div class="staff_tab_area">
<ul class="nav nav-tabs" role="tablist">
<li class="nav-item">
<a class="nav-link active" data-toggle="tab" href="#active_user">Active Driver</a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#inactive_user">Inactive Driver</a>
</li>
<!-- <li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#trash_user">Trash Driver</a>
</li> -->
</ul>
<div class="tab-content">
<div id="active_user" class="tab-pane active"><br>
<div class="table-responsive custom_table_area">
<table class="table table-striped table-bordered dom-jQuery-events c_table_style">
<thead>
<tr>
<th>SL No.</th>
<th style="min-width: 50px;">Action</th>
<th style="min-width: 50px;">Status</th>
<th>Name</th>
<th>Dc No.</th>
<th>Mobile No.</th>
<th>Password</th>
<th>DOB</th>
<th>ABN</th>
<th style="min-width: 200px;">Address</th>
<th>Landline No.</th>
<th>Email</th>
<th>Driver’s licence number</th>
<th>DL Exp. Date</th>
<th>Driver Type</th>
<th>Driver accreditation Exp. Date</th>
<th>Bank Name</th>
<th>BSB</th>
<th>Account No.</th>
</tr>
</thead>
<tbody>
<?php if (!empty($driver_list)) { ?>
<?php foreach ($driver_list as $key => $driver) {
if($driver['is_active'] == 1){ ?>
<tr>
<td><?= $key + 1 ?></td>
<td class="action_td text-center">
<a title="Edit" href="<?=base_url('admin/driver/'.$driver['user_id'])?>" class="edit_bttn btn_action edit_icon"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
<!--<a class="delete_bttn btn_action delete_icon" href="<?= base_url();?>admin/driver/delete_driver/<?= $driver['user_id'];?>"><i class="fa fa-trash" aria-hidden="true"></i></a>-->
<a title="Download Agreement" class="btn-warning btn-fab btn-sm btn_action" href="<?= base_url();?>admin/driver/downloadAgreement/<?= $driver['user_id'];?>"><i class="fa fa-download" aria-hidden="true"></i></a>
</td>
<td class="action_td text-center">
<a title="Active" class="btn_action edit_icon deactv_btn" href="<?= base_url();?>admin/driver/set_deactive_driver/<?= $driver['user_id'];?>"><i class="fa fa-check" aria-hidden="true"></i></a>
</td>
<td><?= $driver['full_name'] ?></td>
<td><?=$driver['dc_no']?></td>
<td><?= $driver['mobile'] ?></td>
<td><?= $driver['org_password'] ?></td>
<td><?= $driver['dob'] ?></td>
<td><?= $driver['abn'] ?></td>
<td><?= $driver['full_address'] ?></td>
<td><?= isset($driver['landline_no'])?$driver['landline_no']:''?></td>
<td><?= $driver['email'] ?></td>
<td><?= $driver['dr_licence_no'] ?></td>
<td><?= $driver['dr_licence_expiry'] ?></td>
<td><?= ($driver['dr_driver_type'] == 1)?'Sedan':'Maxi'?></td>
<td><?= $driver['dr_dc_expiry'] ?></td>
<td><?= $driver['bank_name'] ?></td>
<td><?= $driver['bsb'] ?></td>
<td><?= $driver['account_no'] ?></td>
</tr>
<?php }
} } ?>
</tbody>
</table>
</div>
</div>
<div id="inactive_user" class="tab-pane fade"><br>
<div class="table-responsive custom_table_area">
<table class="table table-striped table-bordered dom-jQuery-events c_table_style">
<thead>
<tr>
<th>SL No.</th>
<th style="min-width: 50px;">Action</th>
<th style="min-width: 50px;">Status</th>
<th>Name</th>
<th>Dc No.</th>
<th>Mobile No.</th>
<th>Password</th>
<th>DOB</th>
<th>ABN</th>
<th style="min-width: 200px;">Address</th>
<th>Landline No.</th>
<th>Email</th>
<th>Driver’s licence number</th>
<th>DL Exp. Date</th>
<th>Driver Type</th>
<th>Driver accreditation Exp. Date</th>
<th>Bank Name</th>
<th>BSB</th>
<th>Account No.</th>
</tr>
</thead>
<tbody>
<?php if (!empty($driver_list_inc)) { ?>
<?php foreach ($driver_list_inc as $key => $driver) {
if($driver['is_active'] == 0){ ?> <tr>
<td><?= $key + 1 ?></td>
<td class="action_td text-center">
<a title="Edit" href="<?=base_url('admin/driver/'.$driver['user_id'])?>" class="btn_action edit_icon"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
<!--<a class="btn_action delete_icon" href="<?= base_url();?>admin/driver/delete_driver/<?= $driver['user_id'];?>"><i class="fa fa-trash" aria-hidden="true"></i></a>-->
<a title="Download Agreement" class="btn-warning btn-fab btn-sm btn_action" href="<?= base_url();?>admin/driver/downloadAgreement/<?= $driver['user_id'];?>"><i class="fa fa-download" aria-hidden="true"></i></a>
</td>
<td class="action_td text-center">
<a title="Inactive" class="btn_action btn-warning active_btn" href="<?= base_url();?>admin/driver/set_active_driver/<?= $driver['user_id'];?>" ><i class="fa fa-times" aria-hidden="true"></i></a>
</td>
<td><?= $driver['full_name'] ?></td>
<td><?=$driver['dc_no']?></td>
<td><?= $driver['mobile'] ?></td>
<td><?= $driver['org_password'] ?></td>
<td><?= $driver['dob'] ?></td>
<td><?= $driver['abn'] ?></td>
<td><?= $driver['full_address'] ?></td>
<td><?= isset($driver['landline_no'])?$driver['landline_no']:''?></td>
<td><?= $driver['email'] ?></td>
<td><?= $driver['dr_licence_no'] ?></td>
<td><?= $driver['dr_licence_expiry'] ?></td>
<td><?= ($driver['dr_driver_type'] == 1)?'Sedan':'Maxi' ?></td>
<td><?= $driver['dr_dc_expiry'] ?></td>
<td><?= $driver['bank_name'] ?></td>
<td><?= $driver['bsb'] ?></td>
<td><?= $driver['account_no'] ?></td>
</tr>
<?php }
} }?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- // Basic form layout section end -->
</div>
</div>
</div>