diff --git a/admin/tables.php b/admin/tables.php index 0c284a6..57351b3 100644 --- a/admin/tables.php +++ b/admin/tables.php @@ -71,7 +71,7 @@ $query = "SELECT t.*, a.name as area_name FROM tables t LEFT JOIN areas a ON t.area_id = a.id WHERE t.is_deleted = 0 - ORDER BY a.name ASC, t.table_number ASC"; + ORDER BY a.name ASC, table_number ASC"; $tables_pagination = paginate_query($pdo, $query); $tables = $tables_pagination['data']; @@ -98,219 +98,168 @@ $baseUrl = $protocol . $host . $project_root; = $message ?> -
| ID | -Table Number | +QR Code | +Table # | Area | Capacity | Status | -QR Code | Actions |
|---|---|---|---|---|---|---|---|---|
|
+
+
+
+ No tables found+Add your first table to get started. + |
+ ||||||||
| #= $table['id'] ?> | +
+
+
+
+
+
+
+ Download
+
+
+ |
= htmlspecialchars($table['table_number']) ?> | -= htmlspecialchars($table['area_name'] ?: 'None') ?> | -= $table['capacity'] ?> Persons | - - Available - - Occupied - - = ucfirst($table['status']) ?> - + + = htmlspecialchars($table['area_name'] ?? 'No Area') ?> + | - + + = htmlspecialchars((string)$table['capacity']) ?> + | ++ + + = ucfirst($table['status']) ?> + |
-
-
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+
|
| No tables found. | -||||||||