BBnepal-Accounts/application/views/student/student-fee-details.php
Sampanna Rimal 9cd05ef3cb commitall
2024-07-10 18:28:19 +05:45

114 lines
3.0 KiB
PHP

<style type="text/css">
table.dataTable thead th, table.dataTable thead td {
padding: 10px 18px;
border-bottom: 1px solid #111;
width: 110px !important;
}
</style>
<link rel="stylesheet" href="<?php echo base_url() ?>assets_admin/css/jquery.dataTables.min.css">
<main class="common_margin" id="main">
<!----admin template section---->
<div class="admin_tempblock form-group_full-width">
<div class="admin_tempsec">
<div class="admin_sec">
<form>
<div class="subsec_sec ">
<div class="subject_r subject_r_lng">
<a href="<?php echo base_url() ?>student/my-payments"> <button type="button" class="btn btn-success btn-sm btn-dark">Back</button>
</a>
<div class="subject_lsec my-4">
<div class="subject_lhead"><h3>Invoice Details</h3></div>
</div>
<table id="tbl" class="display table-responsive w-100" style="width: 100%;">
<thead>
<tr >
<th colspan="2">Sl.No</th>
<th>Payment</th>
<th>Amount</th>
<th>Transaction id</th>
<th>Date</th>
<th>Status</th>
<th class="textCenter" colspan="2">Actions</th>
</tr>
</thead>
<tbody>
<?php
foreach($result as $key => $value) {
$createdDate = date(MY_DATE_FORMAT, strtotime($value['payment_date']));
// $modifiedDate = date(MY_DATE_FORMAT, strtotime($value['modified']));
?>
<tr >
<td colspan="2"><?php echo $key+1; ?></td>
<td><?php echo $value['payment_for'];?></td>
<td><?php echo $value['payment_amt'];?></td>
<td><?php echo $value['txn_id'];?></td>
<td><?php echo $createdDate;?></td>
<td><?php echo $value['status'];?></td>
<td >
<div class="sub_tabbtnsec">
<div class="sub_editbtn text-center">
<a href="<?= base_url(); ?>Student/invoice/<?= urlsafe_b64encode($value['studentId']) ?>/<?= urlsafe_b64encode($value['txn_id']) ?> ">
<i class="fa fa-eye" aria-hidden="true" style="color: #032da1;">
</i>
</a>
</div>
</div>
</td>
</tr>
<?php } ?>
</tbody>
<tfoot>
<tr>
<td colspan="6"></td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</form>
</div>
</div>
</div>
<!----admin template section end---->
</main>
<!--End right-top side-->
<script>
$(document).ready(function(){
$('.user-drpdown').click(function(){
$('.drpdown-items').toggle();
});
//table js
$('#tbl').DataTable( {
"lengthMenu": [[5,10, 25, 50, -1], [5,10, 25, 50, "All"]],
"fixedColumns":true,
} );
//table js end
//multiple select js start
$('select').selectpicker();
//multiple select js end
});
</script>
<script src="<?php echo base_url() ?>assets_admin/js/jquery.dataTables.min.js"></script>