<div class="main-content">
<div class="content-wrapper">
<div class="container-fluid">
<!-- Basic form layout section start -->
<?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 ?>
<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">Company Master List</h4>
<a class="add_bttn title_btn t_btn_add" href="<?= base_url();?>admin/company/addcompany"><span><i class="fa fa-plus" aria-hidden="true"></i></span> Add Company</a>
</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 </a>
</li>
<li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#inactive_user">Inactive </a>
</li>
<!-- <li class="nav-item">
<a class="nav-link" data-toggle="tab" href="#trash_user">Trash </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>Company Name</th>
<th>ABN</th>
<th>ACN</th>
<th>Responsible person Name</th>
<th>Mobile No.</th>
<th>Email</th>
<th>Operator Accredtation No.</th>
<th style="min-width:200px;">Address</th>
</tr>
</thead>
<tbody>
<?php
if(!empty($companies))
{
$i = 1;
foreach ($companies as $company) {
if($company['company_status'] == 1){
?>
<tr>
<td><?= $i;?></td>
<td class="action_td text-center">
<a title="Edit" class="edit_bttn btn_action edit_icon" href="<?= base_url();?>admin/company/editcompany/<?= $company['company_id'];?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
<!-- <a class="btn_action delete_icon" href="<?= base_url();?>admin/company/delcompany/<?= $company['company_id'];?>"><i class="fa fa-trash" aria-hidden="true"></i></a> -->
<a title="Active" class="btn_action edit_icon deactv_btn" href="<?= base_url();?>admin/company/set_deactive_company/<?= $company['company_id'];?>"><i class="fa fa-check" aria-hidden="true"></i></a>
</td>
<td><?= $company['company_name'];?></td>
<td><?= $company['abn'];?></td>
<td><?= $company['acn'];?></td>
<?PHP if(!empty($company['responsible_person_middle_name'])): ?>
<?php $mid_name = ' '.$company['responsible_person_middle_name']; ?>
<?php else: ?>
<?php $mid_name = ''; ?>
<?php endif;?>
<td><?= $company['responsible_person_first_name'].$mid_name.' '.$company['responsible_person_last_name'];?></td>
<td><?= $company['mobile'];?></td>
<td><?= $company['email'];?></td>
<td><?= $company['operator_acc_no'];?></td>
<td><?= $company['full_address'];?></td>
</tr>
<?php
}
$i++;
}
} ?>
</tbody>
<!--<tfoot>
<tr>
<th>Name</th>
<th>Position</th>
<th>Office</th>
<th>Age</th>
<th>Start date</th>
<th>Salary</th>
</tr>
</tfoot>-->
</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>Buniness Name</th>
<th>ABN</th>
<th>Company Name</th>
<th>ACN</th>
<th>Telephone</th>
<th>Mobile No.</th>
<th>Email</th>
<th>Operator Accredtation No.</th>
<th style="min-width:200px;">Address</th>
</tr>
</thead>
<tbody>
<?php
if(!empty($companies_inc))
{
$i = 1;
foreach ($companies_inc as $company) {
if($company['company_status'] == 0){
?>
<tr>
<td><?= $i;?></td>
<td class="action_td text-center">
<a title="Edit" class="btn_action edit_icon" href="<?= base_url();?>admin/company/editcompany/<?= $company['company_id'];?>"><i class="fa fa-pencil-square-o" aria-hidden="true"></i></a>
<!-- <a class="btn_action delete_icon" href="<?= base_url();?>admin/company/delcompany/<?= $company['company_id'];?>"><i class="fa fa-trash" aria-hidden="true"></i></a> -->
<a title="Inactive" class="btn_action btn-warning active_btn" href="<?= base_url();?>admin/company/set_active_company/<?= $company['company_id'];?>" ><i class="fa fa-times" aria-hidden="true"></i></a>
</td>
<td><?= $company['business_name'];?></td>
<td><?= $company['abn'];?></td>
<td><?= $company['company_name'];?></td>
<td><?= $company['acn'];?></td>
<td><?= $company['landline_no'];?></td>
<td><?= $company['mobile'];?></td>
<td><?= $company['email'];?></td>
<td><?= $company['operator_acc_no'];?></td>
<td><?= $company['full_address'];?></td>
</tr>
<?php
}
$i++;
}
} ?>
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
</div>
</div>
</section>
<!-- // Basic form layout section end -->
</div>
</div>
</div>