1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
<div class="content-wrapper" >
<!-- Content Header (Page header) -->
<section class="content-header">
<h1>
<?= $page_title ?>
<small><?= $page_desc ?></small>
</h1>
<ol class="breadcrumb">
<li><a href="<?= base_url() ?>"><i class="fa fa-star-o" aria-hidden="true"></i>Home</a></li>
<li><?= $menu ?></li>
<li class="active"><?= $sub_menu ?></li>
</ol>
</section>
<!-- Main content -->
<section class="content">
<div class="row">
<div class="col-md-12">
<?php if($this->session->flashdata('message')) {
$flashdata = $this->session->flashdata('message'); ?>
<div class="alert alert-<?= $flashdata['class'] ?>">
<button class="close" data-dismiss="alert" type="button">×</button>
<?= $flashdata['message'] ?>
</div>
<?php } ?>
</div>
<div class="col-xs-12">
<div class="box">
<div class="box-header">
<h3 class="box-title">View Broker Details</h3>
</div>
<div class="box-body">
<table id="" class="table table-bordered table-striped datatable ">
<thead>
<tr>
<th class="hidden">ID</th>
<th width="90px;">Broker Name</th>
<th width="90px;">Company</th>
<th width="200px;">Email ID</th>
<th width="80px;">Phone</th>
<th width="100px;">Address</th>
<th width="50px;">City</th>
<th width="50px;">State</th>
<th width="120px;">Action</th>
</tr>
</thead>
<tbody>
<?php
if(!empty($brokers_data)){
foreach($brokers_data as $broker) {
?>
<tr>
<th class="hidden"><?= $broker->broker_id ?></th>
<td class="center"><?= $broker->broker_name ?></th>
<td class="center"><?= $broker->company_name ?></th>
<td class="center"><?= $broker->broker_email ?></th>
<td class="center"><?= $broker->broker_phone ?></th>
<td class="center"><?= $broker->address ?></th>
<td class="center"><?= $broker->city ?></th>
<td class="center"><?= $broker->state ?></th>
<td class="center">
<div>
<a class="btn btn-sm btn-primary"
href="<?= base_url('Broker/edit/'.encode_param($broker->broker_id)) ?>">
<i class="fa fa-fw fa-trash"></i>Edit
</a>
<a class="btn btn-sm btn-danger"
href="<?= base_url("Broker/changeStatus/".encode_param($broker->broker_id))."/2" ?>"
onClick="return doconfirm()">
<i class="fa fa-fw fa-trash"></i>Delete
</a>
</div>
<div style="text-align: center; padding-top: 2px;">
<?php if($broker->status == 1){ ?>
<a class="btn btn-sm btn-success" style="background-color:#ac2925" href="<?= base_url("Broker/changeStatus/".encode_param($broker->broker_id))."/0" ?>">
<i class="fa fa-cog"></i> De-activate
</a>
<?php } else { ?>
<a class="btn btn-sm btn-success" href="<?= base_url("Broker/changeStatus/".encode_param($broker->broker_id))."/1" ?>">
<i class="fa fa-cog"></i> Activate
</a>
<?php } ?>
</div>
</td>
</tr>
<?php }
}?>
</tbody>
</table>
</div>
</div>
</section>
</div>