mirror of
https://github.com/itflow-org/itflow
synced 2026-09-09 08:15:12 +00:00
Add Empty state messages in client portal instead of just showing an empty table with the table header
This commit is contained in:
@@ -20,6 +20,9 @@ $invoices_sql = mysqli_query($mysqli, "SELECT invoice_amount, invoice_date, invo
|
||||
|
||||
<div class="col-md-10">
|
||||
|
||||
<?php if (mysqli_num_rows($invoices_sql) == 0) { ?>
|
||||
<?= portalEmptyState('There are no invoices on this account yet.') ?>
|
||||
<?php } else { ?>
|
||||
<table class="table table-bordered border border-dark">
|
||||
<thead class="table-dark">
|
||||
<tr>
|
||||
@@ -89,6 +92,7 @@ $invoices_sql = mysqli_query($mysqli, "SELECT invoice_amount, invoice_date, invo
|
||||
|
||||
</tbody>
|
||||
</table>
|
||||
<?php } ?>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user