Add Empty state messages in client portal instead of just showing an empty table with the table header

This commit is contained in:
johnnyq
2026-08-28 15:26:43 -04:00
parent c10d4eb736
commit 194841e7f8
13 changed files with 60 additions and 3 deletions

View File

@@ -41,6 +41,9 @@ $all_tickets = mysqli_query($mysqli, "SELECT ticket_id, ticket_prefix, ticket_nu
</form>
</div>
</div>
<?php if (mysqli_num_rows($all_tickets) == 0) { ?>
<?= portalEmptyState('There are no tickets for this account.') ?>
<?php } else { ?>
<table class="table">
<thead>
<tr>
@@ -71,6 +74,7 @@ $all_tickets = mysqli_query($mysqli, "SELECT ticket_id, ticket_prefix, ticket_nu
?>
</tbody>
</table>
<?php } ?>
</div>
<?php