Initial baseline WACloud CI3 production
This commit is contained in:
@@ -0,0 +1,46 @@
|
||||
<div class="d-flex justify-content-between align-items-center mb-3">
|
||||
<h1 class="h3">Daftar Device</h1>
|
||||
<a href="<?php echo site_url('devices/add'); ?>" class="btn btn-primary">
|
||||
<i class="bi bi-plus-circle"></i> Tambah Device Baru
|
||||
</a>
|
||||
</div>
|
||||
|
||||
<?php if ($this->session->flashdata('success')): ?>
|
||||
<div class="alert alert-success alert-dismissible fade show" role="alert">
|
||||
<?php echo $this->session->flashdata('success'); ?>
|
||||
<button type="button" class="btn-close" data-bs-dismiss="alert" aria-label="Close"></button>
|
||||
</div>
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="card border-0 shadow-sm">
|
||||
<div class="card-body">
|
||||
<div class="table-responsive">
|
||||
<table class="table table-striped table-hover">
|
||||
<thead class="table-light">
|
||||
<tr>
|
||||
<th>ID</th>
|
||||
<th>Nama</th>
|
||||
<th>Nomor Telepon</th>
|
||||
<th>Phone Number ID</th>
|
||||
</tr>
|
||||
</thead>
|
||||
<tbody>
|
||||
<?php if (!empty($devices)): ?>
|
||||
<?php foreach ($devices as $device): ?>
|
||||
<tr>
|
||||
<td><?php echo $device->id; ?></td>
|
||||
<td><?php echo $device->number_name; ?></td>
|
||||
<td><?php echo $device->phone_number; ?></td>
|
||||
<td><?php echo $device->phone_number_id; ?></td>
|
||||
</tr>
|
||||
<?php endforeach; ?>
|
||||
<?php else: ?>
|
||||
<tr>
|
||||
<td colspan="4" class="text-center text-muted py-4">Belum ada data device.</td>
|
||||
</tr>
|
||||
<?php endif; ?>
|
||||
</tbody>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user