-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex-pelanggan.php
64 lines (60 loc) · 2.28 KB
/
index-pelanggan.php
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
<?php
include "database.php";
$database = new database();
$data_transaksi = $database->Data_transaksi_sukses();
include "header-pelanggan.php";
?>
<main>
<div class="container-fluid px-4">
<h1 class="mt-4">Dashboard</h1>
<ol class="breadcrumb mb-4">
<li class="breadcrumb-item"><a href="index-admin.php">Dashboard</a></li>
<li class="breadcrumb-item active">Transaksi</li>
</ol>
<div class="card mb-4">
<div class="card-header">
<i class="fas fa-table me-1"></i>
DataTable transaksi
</div>
<div class="card-body">
<table class="table table-striped">
<thead>
<tr>
<th>No</th>
<th>Nama</th>
<th>No Telpon</th>
<th>Alamat</th>
<th>Perangkat</th>
<th>status</th>
<th>Tanggal Masuk</th>
<th>Total Biaya</th>
<th>tanggal transaksi</th>
</tr>
</thead>
<!-- kode php -->
<?php
$no = 1;
foreach($data_transaksi as $data){
?>
<tbody>
<tr>
<td><?= $no++?></td>
<td><?= $data['nama']?></td>
<td><?= $data['no_hp']?></td>
<td><?= $data['alamat']?></td>
<td><?= $data['nama_perangkat']?></td>
<td><?= $data['status_proses']?></td>
<td><?= $data['tanggal_masuk']?></td>
<td><?= $data['total_biaya']?></td>
<td><?= $data['tanggal_transaksi']?></td>
</tr>
</tbody>
<?php } ?>
</table>
</div>
</div>
</div>
</main>
<?php
include "footer-pelanggan.php";
?>