-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsummary.php
More file actions
51 lines (45 loc) · 1.71 KB
/
Copy pathsummary.php
File metadata and controls
51 lines (45 loc) · 1.71 KB
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
<?php ob_start();?>
<?php include 'header.php'?>
<?php include 'loginCheck.php'?>
<?php include 'navbar.php'?>
<?php include 'core/Amount.php'?>
<!-- Custom CSS -->
<link rel="stylesheet" href="assets/css/pricing.css">
<?php
if(!isset($_SESSION))
{
session_start();
}
?>
<div class="container">
<h1 class="text-center">Payment Summary</h1>
<table class="table table-hover m-auto border border-2">
<thead>
<tr>
<th class="pe-3">Disease Name</th>
<th class="pe-3">Package</th>
<th class="pe-3">Amount</th>
<th class="pe-3">Quantities</th>
<th class="pe-3">Total</th>
</tr>
</thead>
<tbody>
<?php
if (isset($_SESSION['items_summary']) && isset($_SESSION['total']) != 0) {
foreach ($_SESSION['items_summary'] as $item) { ?>
<tr>
<td><?php echo htmlspecialchars($item['name']); ?></td>
<td><?php echo htmlspecialchars($item['package']); ?></td>
<td><?php echo number_format($item['amount'], 2); ?> BDT</td>
<td><?php echo htmlspecialchars($item['quantities']); ?></td>
<td><?php echo number_format($item['total'], 2); ?> BDT</td>
</tr>
<?php } ?>
<?php } else { ?>
<tr><td colspan="4">No items selected.</td></tr>
<?php } ?>
</tbody>
</table>
<h3 class="text-center my-4">Total Payment: <?php echo isset($_SESSION['total']) ? number_format($_SESSION['total'], 2) . ' BDT' : ' BDT'; ?></h3>
</div>
<?php include 'footer.php'?>