donation/app/Views/setting_list.php

67 lines
3.4 KiB
PHP

<div class="row">
<div class="col-12">
<div class="card">
<div class="card-body">
<div class="float-right">
<a href="<?= base_url()."sitesetting_page/0"; ?>" class="btn btn-primary"><i class="mdi mdi-playlist-plus"></i> Add Setting </a>
</div><!-- end col-->
<br>
<h4 class="header-title mb-3"><?= $page_name; ?></h4>
<?php if (session()->getFlashdata('success')): ?>
<div class="alert alert-success"><?= session()->getFlashdata('success') ?></div>
<?php endif; ?>
<div class="table-responsive">
<table id="scroll-horizontal-datatable" class="table w-100 nowrap">
<thead class="thead-light">
<tr>
<th>Site Name</th>
<th>Site Title</th>
<th>Admin email</th>
<th>Mobile Number</th>
<th>Copyright</th>
<th>Logo</th>
<th>Icon</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody>
<?php foreach ($details as $row):
if ($row['isactive']) {
$class = 'badge badge-soft-success';
$message = 'Active';
} else {
$class = 'badge badge-soft-danger';
$message = 'In-Active';
}
$edit_page_route = base_url()."sitesetting_page/".$row['setting_id'];
?>
<tr>
<td><?php echo $row['site_name'] ; ?></td>
<td><?php echo $row['site_title'] ; ?></td>
<td><?php echo $row['admin_email'] ; ?></td>
<td><?php echo $row['mobile'] ; ?></td>
<td><?php echo $row['copyright'] ; ?></td>
<td><?php echo $row['logo'] ; ?></td>
<td><?php echo $row['favicon'] ; ?></td>
<td>
<span class="<?php echo $class; ?>"><?php echo $message; ?></span>
</td>
<td>
<ul class="list-inline table-action m-0">
<li class="list-inline-item">
<a href="<?php echo $edit_page_route; ?>" class="action-icon px-1"> <i class="ri ri-edit-box-fill"></i></a>
</li>
</ul>
</td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</div>
</div> <!-- end card body-->
</div> <!-- end card -->
</div><!-- end col-->
</div>
<!-- end row-->