-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathadmin.html
More file actions
111 lines (102 loc) · 4.19 KB
/
admin.html
File metadata and controls
111 lines (102 loc) · 4.19 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Admin Dashboard | The Laundry Lab</title>
<!-- Google Fonts -->
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link
href="https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Playfair+Display:ital,wght@0,600;0,700;1,600&display=swap"
rel="stylesheet">
<!-- Font Awesome -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
<link rel="stylesheet" href="style.css">
</head>
<body class="admin-body">
<!-- Login Overlay -->
<div id="login-overlay">
<div class="login-box">
<h2>Admin Login</h2>
<p>Enter PIN to access dashboard</p>
<input type="password" id="admin-pin" placeholder="Enter PIN (1234)" autofocus>
<button id="login-btn" class="btn btn-primary full-width">Access Dashboard</button>
</div>
</div>
<div class="dashboard-container">
<header class="admin-header">
<div class="logo">
<h1>Laundry<span class="highlight">Lab</span>. <span
style="font-size: 0.6em; color: #666; font-family: 'Outfit'">Admin</span></h1>
</div>
<div class="admin-actions">
<a href="index.html" class="btn btn-secondary" style="border-color: #ddd; color: #333">View Website</a>
<button id="logout-btn" class="btn btn-primary">Logout</button>
</div>
</header>
<!-- Stats -->
<div class="stats-grid">
<div class="stat-card">
<div class="stat-icon"><i class="fas fa-shopping-basket"></i></div>
<div class="stat-info">
<h3 id="stat-total">0</h3>
<p>Total Orders</p>
</div>
</div>
<div class="stat-card">
<div class="stat-icon" style="color: #856404; background: #fff3cd"><i class="fas fa-clock"></i></div>
<div class="stat-info">
<h3 id="stat-pending">0</h3>
<p>Pending</p>
</div>
</div>
<div class="stat-card">
<div class="stat-icon" style="color: #28a745; background: #d4edda"><i
class="fas fa-money-bill-wave"></i></div>
<div class="stat-info">
<h3 id="stat-revenue">₵0</h3>
<p>Est. Revenue</p>
</div>
</div>
</div>
<!-- Bookings Table -->
<div class="table-container">
<div class="dashboard-header">
<h2>Recent Bookings</h2>
<div class="filter-group">
<button class="btn btn-secondary filter-btn" onclick="renderTable('all')">All</button>
<button class="btn btn-secondary filter-btn" onclick="renderTable('pending')">Pending</button>
<button class="btn btn-secondary filter-btn" onclick="renderTable('progress')">In Progress</button>
</div>
</div>
<table class="bookings-table">
<thead>
<tr>
<th>Date</th>
<th>Customer</th>
<th>Location</th>
<th>Service</th>
<th>Notes</th>
<th>Status</th>
<th>Actions</th>
</tr>
</thead>
<tbody id="bookings-body">
<!-- JS will populate this -->
</tbody>
</table>
</div>
</div>
<!-- Order Details Modal -->
<div id="order-modal" class="modal">
<div class="modal-content">
<span class="close-modal">×</span>
<div id="modal-details">
<!-- Details injected here -->
</div>
</div>
</div>
<script src="dashboard.js"></script>
</body>
</html>