Update Comments dan API DASHBOARD

This commit is contained in:
mikael-zakaria 2025-11-12 10:14:35 +07:00
parent fcc89707e8
commit 86b0722df6
2 changed files with 10 additions and 6 deletions

View File

@ -17,7 +17,7 @@ class ApiDashboard extends ResourceController
$results = $query->getResultArray(); $results = $query->getResultArray();
$data['data'] = $results; $data['data'] = $results;
return $this->respond($data,200); return $this->respond($data, 200);
} }

View File

@ -189,7 +189,7 @@
<div class="card status-card text-center"> <div class="card status-card text-center">
<div class="card-body p-2"> <div class="card-body p-2">
<div class="status-count text-muted">2</div> <div class="status-count text-muted">2</div>
<div class="status-label text-muted">Printed Notcomplete</div> <div class="status-label text-muted">Printed<br>Not complete</div>
</div> </div>
</div> </div>
</div> </div>
@ -225,7 +225,7 @@
</div> </div>
</div> </div>
<!-- Tabel Semua --> <!-- Semua Tabel -->
<div class="col"> <div class="col">
<div class="table-responsive"> <div class="table-responsive">
<table id="datatables" class="table table-striped table-hover table-bordered align-middle"> <table id="datatables" class="table table-striped table-hover table-bordered align-middle">
@ -425,13 +425,11 @@
<tr class='text-center'> <tr class='text-center'>
<td colspan="2"> <td colspan="2">
<h6 class="p-0 m-0"> <h6 class="p-0 m-0">
<i class="bi bi-pencil-square" role="button" onclick=""></i> <i class="bi bi-pencil-square" role="button" onclick="commentValue()"></i>
</h6> </h6>
</td> </td>
</tr> </tr>
</tbody> </tbody>
</table> </table>
</div> </div>
@ -447,4 +445,10 @@
<?= $this->endSection() ?> <?= $this->endSection() ?>
<?= $this->section('script') ?> <?= $this->section('script') ?>
<script>
// Untuk Koment Value
function commentValue() {
const input = prompt("Masukkan Komentar :");
}
</script>
<?= $this->endSection() ?> <?= $this->endSection() ?>