Previews

No matching results.

x
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
<div class="h-screen overflow-hidden flex flex-col" data-controller="better-ui--drawer--layout" data-better-ui--drawer--layout-position-value="left" data-better-ui--drawer--layout-breakpoint-value="lg">
<header class="w-full h-16 bg-white border-b border-grayscale-200 text-grayscale-900 sticky top-0 flex items-center justify-between px-4 z-40" >
<div class="flex items-center shrink-0">
<div class="lg:hidden flex items-center mr-2">
<button class="p-2 text-grayscale-600 hover:text-grayscale-900 hover:bg-grayscale-100 rounded-md lg:hidden" data-action="click->better-ui--drawer--layout#toggle">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path></svg>
</button>
</div>
<div class="flex items-center">
<div class="w-8 h-8 bg-primary-600 rounded-lg flex items-center justify-center text-white font-bold">A</div>
<span class="ml-2 font-semibold text-lg hidden sm:block">Acme Dashboard</span>
</div>
</div>
<div class="hidden lg:flex flex-1 items-center justify-center px-4">
<nav class="flex gap-6">
<a href="#" class="text-primary-600 font-medium">Overview</a>
<a href="#" class="text-grayscale-600 hover:text-grayscale-900">Analytics</a>
<a href="#" class="text-grayscale-600 hover:text-grayscale-900">Reports</a>
</nav>
</div>
<div class="flex items-center gap-2">
<div class="flex items-center gap-4">
<button class="text-grayscale-600 hover:text-grayscale-900">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
</button>
<button class="text-grayscale-600 hover:text-grayscale-900 relative">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"></path></svg>
<span class="absolute -top-1 -right-1 w-2 h-2 bg-danger-500 rounded-full"></span>
</button>
<div class="flex items-center">
<div class="w-8 h-8 bg-primary-500 rounded-full"></div>
</div>
</div>
</div>
</header>
<div class="flex flex-1 overflow-hidden relative">
<div class="fixed inset-0 bg-black/50 z-40 hidden opacity-0 transition-opacity duration-300 lg:hidden"
data-better-ui--drawer--layout-target="overlay"
data-action="click->better-ui--drawer--layout#close">
</div>
<div class="hidden h-full lg:flex">
<aside class="flex flex-col h-full w-64 bg-white text-grayscale-900 border-r border-grayscale-200 shrink-0" data-position="left" data-collapsible="true">
<div class="flex-1 overflow-y-auto p-4 space-y-6">
<nav class="space-y-6">
<div>
<h3 class="px-4 text-xs font-semibold text-grayscale-500 uppercase tracking-wider">Main</h3>
<div class="mt-2 space-y-1">
<a href="#" class="flex items-center px-4 py-2 rounded-md bg-primary-50 text-primary-700">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg>
Dashboard
</a>
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"></path></svg>
Analytics
</a>
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
Revenue
</a>
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>
Customers
</a>
</div>
</div>
<div>
<h3 class="px-4 text-xs font-semibold text-grayscale-500 uppercase tracking-wider">Reports</h3>
<div class="mt-2 space-y-1">
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
Monthly
</a>
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg>
Annual
</a>
</div>
</div>
</nav>
</div>
<div class="shrink-0 p-4 border-t border-grayscale-200">
<div class="flex items-center">
<div class="w-10 h-10 bg-grayscale-300 rounded-full"></div>
<div class="ml-3">
<div class="text-sm font-medium">John Doe</div>
<div class="text-xs text-grayscale-500">Admin</div>
</div>
<button class="ml-auto p-2 text-grayscale-500 hover:text-grayscale-700">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"></path></svg>
</button>
</div>
</div>
</aside>
</div>
<div class="fixed inset-y-0 left-0 z-50 transform transition-transform duration-300 ease-in-out -translate-x-full lg:hidden"
data-better-ui--drawer--layout-target="sidebar">
<aside class="flex flex-col h-full w-64 bg-white text-grayscale-900 border-r border-grayscale-200 shrink-0" data-position="left" data-collapsible="true">
<div class="flex-1 overflow-y-auto p-4 space-y-6">
<nav class="space-y-6">
<div>
<h3 class="px-4 text-xs font-semibold text-grayscale-500 uppercase tracking-wider">Main</h3>
<div class="mt-2 space-y-1">
<a href="#" class="flex items-center px-4 py-2 rounded-md bg-primary-50 text-primary-700">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg>
Dashboard
</a>
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"></path></svg>
Analytics
</a>
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
Revenue
</a>
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>
Customers
</a>
</div>
</div>
<div>
<h3 class="px-4 text-xs font-semibold text-grayscale-500 uppercase tracking-wider">Reports</h3>
<div class="mt-2 space-y-1">
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
Monthly
</a>
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg>
Annual
</a>
</div>
</div>
</nav>
</div>
<div class="shrink-0 p-4 border-t border-grayscale-200">
<div class="flex items-center">
<div class="w-10 h-10 bg-grayscale-300 rounded-full"></div>
<div class="ml-3">
<div class="text-sm font-medium">John Doe</div>
<div class="text-xs text-grayscale-500">Admin</div>
</div>
<button class="ml-auto p-2 text-grayscale-500 hover:text-grayscale-700">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"></path></svg>
</button>
</div>
</div>
</aside>
</div>
<main class="flex-1 overflow-auto">
<div class="p-6 bg-grayscale-50 min-h-full">
<div class="mb-6">
<h1 class="text-2xl font-bold text-grayscale-900">Dashboard Overview</h1>
<p class="text-grayscale-600">Welcome back, John! Here's what's happening with your store today.</p>
</div>
<!-- Stats Grid -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
<div class="bg-white p-6 rounded-lg border border-grayscale-200">
<div class="flex items-center justify-between">
<div>
<div class="text-sm font-medium text-grayscale-500">Total Revenue</div>
<div class="text-2xl font-bold text-grayscale-900">$45,231</div>
</div>
<div class="w-12 h-12 bg-success-50 rounded-lg flex items-center justify-center">
<svg class="w-6 h-6 text-success-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
</div>
</div>
<div class="mt-2 text-sm text-success-600">+20.1% from last month</div>
</div>
<div class="bg-white p-6 rounded-lg border border-grayscale-200">
<div class="flex items-center justify-between">
<div>
<div class="text-sm font-medium text-grayscale-500">Orders</div>
<div class="text-2xl font-bold text-grayscale-900">+2,350</div>
</div>
<div class="w-12 h-12 bg-primary-50 rounded-lg flex items-center justify-center">
<svg class="w-6 h-6 text-primary-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"></path></svg>
</div>
</div>
<div class="mt-2 text-sm text-success-600">+180 from yesterday</div>
</div>
<div class="bg-white p-6 rounded-lg border border-grayscale-200">
<div class="flex items-center justify-between">
<div>
<div class="text-sm font-medium text-grayscale-500">Customers</div>
<div class="text-2xl font-bold text-grayscale-900">+12,234</div>
</div>
<div class="w-12 h-12 bg-accent-50 rounded-lg flex items-center justify-center">
<svg class="w-6 h-6 text-accent-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>
</div>
</div>
<div class="mt-2 text-sm text-success-600">+19% from last month</div>
</div>
<div class="bg-white p-6 rounded-lg border border-grayscale-200">
<div class="flex items-center justify-between">
<div>
<div class="text-sm font-medium text-grayscale-500">Active Now</div>
<div class="text-2xl font-bold text-grayscale-900">+573</div>
</div>
<div class="w-12 h-12 bg-info-50 rounded-lg flex items-center justify-center">
<svg class="w-6 h-6 text-info-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"></path></svg>
</div>
</div>
<div class="mt-2 text-sm text-success-600">+201 since last hour</div>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-white rounded-lg border border-grayscale-200">
<div class="p-4 border-b border-grayscale-200">
<h2 class="text-lg font-semibold">Recent Activity</h2>
</div>
<div class="p-4">
<div class="space-y-4">
<div class="flex items-center">
<div class="w-10 h-10 bg-success-100 rounded-full flex items-center justify-center">
<svg class="w-5 h-5 text-success-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
</div>
<div class="ml-4">
<div class="text-sm font-medium">Order #12345 completed</div>
<div class="text-xs text-grayscale-500">2 minutes ago</div>
</div>
</div>
<div class="flex items-center">
<div class="w-10 h-10 bg-primary-100 rounded-full flex items-center justify-center">
<svg class="w-5 h-5 text-primary-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
</div>
<div class="ml-4">
<div class="text-sm font-medium">New customer registered</div>
<div class="text-xs text-grayscale-500">15 minutes ago</div>
</div>
</div>
<div class="flex items-center">
<div class="w-10 h-10 bg-warning-100 rounded-full flex items-center justify-center">
<svg class="w-5 h-5 text-warning-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path></svg>
</div>
<div class="ml-4">
<div class="text-sm font-medium">Low stock alert: Product SKU-789</div>
<div class="text-xs text-grayscale-500">1 hour ago</div>
</div>
</div>
</div>
</div>
</div>
</div>
</main>
</div>
</div>
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
<%= render BetterUi::Drawer::LayoutComponent.new do |layout| %>
<% layout.with_header do |header| %>
<% header.with_mobile_menu_button do %>
<button class="p-2 text-grayscale-600 hover:text-grayscale-900 hover:bg-grayscale-100 rounded-md lg:hidden" data-action="click->better-ui--drawer--layout#toggle">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4 6h16M4 12h16M4 18h16"></path></svg>
</button>
<% end %>
<% header.with_logo do %>
<div class="flex items-center">
<div class="w-8 h-8 bg-primary-600 rounded-lg flex items-center justify-center text-white font-bold">A</div>
<span class="ml-2 font-semibold text-lg hidden sm:block">Acme Dashboard</span>
</div>
<% end %>
<% header.with_navigation do %>
<nav class="flex gap-6">
<a href="#" class="text-primary-600 font-medium">Overview</a>
<a href="#" class="text-grayscale-600 hover:text-grayscale-900">Analytics</a>
<a href="#" class="text-grayscale-600 hover:text-grayscale-900">Reports</a>
</nav>
<% end %>
<% header.with_actions do %>
<div class="flex items-center gap-4">
<button class="text-grayscale-600 hover:text-grayscale-900">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M21 21l-6-6m2-5a7 7 0 11-14 0 7 7 0 0114 0z"></path></svg>
</button>
<button class="text-grayscale-600 hover:text-grayscale-900 relative">
<svg class="w-6 h-6" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 17h5l-1.405-1.405A2.032 2.032 0 0118 14.158V11a6.002 6.002 0 00-4-5.659V5a2 2 0 10-4 0v.341C7.67 6.165 6 8.388 6 11v3.159c0 .538-.214 1.055-.595 1.436L4 17h5m6 0v1a3 3 0 11-6 0v-1m6 0H9"></path></svg>
<span class="absolute -top-1 -right-1 w-2 h-2 bg-danger-500 rounded-full"></span>
</button>
<div class="flex items-center">
<div class="w-8 h-8 bg-primary-500 rounded-full"></div>
</div>
</div>
<% end %>
<% end %>
<% layout.with_sidebar do |sidebar| %>
<% sidebar.with_navigation do %>
<nav class="space-y-6">
<div>
<h3 class="px-4 text-xs font-semibold text-grayscale-500 uppercase tracking-wider">Main</h3>
<div class="mt-2 space-y-1">
<a href="#" class="flex items-center px-4 py-2 rounded-md bg-primary-50 text-primary-700">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M3 12l2-2m0 0l7-7 7 7M5 10v10a1 1 0 001 1h3m10-11l2 2m-2-2v10a1 1 0 01-1 1h-3m-6 0a1 1 0 001-1v-4a1 1 0 011-1h2a1 1 0 011 1v4a1 1 0 001 1m-6 0h6"></path></svg>
Dashboard
</a>
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z"></path></svg>
Analytics
</a>
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
Revenue
</a>
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>
Customers
</a>
</div>
</div>
<div>
<h3 class="px-4 text-xs font-semibold text-grayscale-500 uppercase tracking-wider">Reports</h3>
<div class="mt-2 space-y-1">
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M9 17v-2m3 2v-4m3 4v-6m2 10H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"></path></svg>
Monthly
</a>
<a href="#" class="flex items-center px-4 py-2 rounded-md hover:bg-grayscale-100">
<svg class="w-5 h-5 mr-3" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M8 7V3m8 4V3m-9 8h10M5 21h14a2 2 0 002-2V7a2 2 0 00-2-2H5a2 2 0 00-2 2v12a2 2 0 002 2z"></path></svg>
Annual
</a>
</div>
</div>
</nav>
<% end %>
<% sidebar.with_footer do %>
<div class="flex items-center">
<div class="w-10 h-10 bg-grayscale-300 rounded-full"></div>
<div class="ml-3">
<div class="text-sm font-medium">John Doe</div>
<div class="text-xs text-grayscale-500">Admin</div>
</div>
<button class="ml-auto p-2 text-grayscale-500 hover:text-grayscale-700">
<svg class="w-5 h-5" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 16l4-4m0 0l-4-4m4 4H7m6 4v1a3 3 0 01-3 3H6a3 3 0 01-3-3V7a3 3 0 013-3h4a3 3 0 013 3v1"></path></svg>
</button>
</div>
<% end %>
<% end %>
<% layout.with_main do %>
<div class="p-6 bg-grayscale-50 min-h-full">
<div class="mb-6">
<h1 class="text-2xl font-bold text-grayscale-900">Dashboard Overview</h1>
<p class="text-grayscale-600">Welcome back, John! Here's what's happening with your store today.</p>
</div>
<!-- Stats Grid -->
<div class="grid grid-cols-1 md:grid-cols-2 lg:grid-cols-4 gap-4 mb-6">
<div class="bg-white p-6 rounded-lg border border-grayscale-200">
<div class="flex items-center justify-between">
<div>
<div class="text-sm font-medium text-grayscale-500">Total Revenue</div>
<div class="text-2xl font-bold text-grayscale-900">$45,231</div>
</div>
<div class="w-12 h-12 bg-success-50 rounded-lg flex items-center justify-center">
<svg class="w-6 h-6 text-success-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 8c-1.657 0-3 .895-3 2s1.343 2 3 2 3 .895 3 2-1.343 2-3 2m0-8c1.11 0 2.08.402 2.599 1M12 8V7m0 1v8m0 0v1m0-1c-1.11 0-2.08-.402-2.599-1M21 12a9 9 0 11-18 0 9 9 0 0118 0z"></path></svg>
</div>
</div>
<div class="mt-2 text-sm text-success-600">+20.1% from last month</div>
</div>
<div class="bg-white p-6 rounded-lg border border-grayscale-200">
<div class="flex items-center justify-between">
<div>
<div class="text-sm font-medium text-grayscale-500">Orders</div>
<div class="text-2xl font-bold text-grayscale-900">+2,350</div>
</div>
<div class="w-12 h-12 bg-primary-50 rounded-lg flex items-center justify-center">
<svg class="w-6 h-6 text-primary-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 11V7a4 4 0 00-8 0v4M5 9h14l1 12H4L5 9z"></path></svg>
</div>
</div>
<div class="mt-2 text-sm text-success-600">+180 from yesterday</div>
</div>
<div class="bg-white p-6 rounded-lg border border-grayscale-200">
<div class="flex items-center justify-between">
<div>
<div class="text-sm font-medium text-grayscale-500">Customers</div>
<div class="text-2xl font-bold text-grayscale-900">+12,234</div>
</div>
<div class="w-12 h-12 bg-accent-50 rounded-lg flex items-center justify-center">
<svg class="w-6 h-6 text-accent-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M17 20h5v-2a3 3 0 00-5.356-1.857M17 20H7m10 0v-2c0-.656-.126-1.283-.356-1.857M7 20H2v-2a3 3 0 015.356-1.857M7 20v-2c0-.656.126-1.283.356-1.857m0 0a5.002 5.002 0 019.288 0M15 7a3 3 0 11-6 0 3 3 0 016 0zm6 3a2 2 0 11-4 0 2 2 0 014 0zM7 10a2 2 0 11-4 0 2 2 0 014 0z"></path></svg>
</div>
</div>
<div class="mt-2 text-sm text-success-600">+19% from last month</div>
</div>
<div class="bg-white p-6 rounded-lg border border-grayscale-200">
<div class="flex items-center justify-between">
<div>
<div class="text-sm font-medium text-grayscale-500">Active Now</div>
<div class="text-2xl font-bold text-grayscale-900">+573</div>
</div>
<div class="w-12 h-12 bg-info-50 rounded-lg flex items-center justify-center">
<svg class="w-6 h-6 text-info-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M15 12a3 3 0 11-6 0 3 3 0 016 0z"></path><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M2.458 12C3.732 7.943 7.523 5 12 5c4.478 0 8.268 2.943 9.542 7-1.274 4.057-5.064 7-9.542 7-4.477 0-8.268-2.943-9.542-7z"></path></svg>
</div>
</div>
<div class="mt-2 text-sm text-success-600">+201 since last hour</div>
</div>
</div>
<!-- Recent Activity -->
<div class="bg-white rounded-lg border border-grayscale-200">
<div class="p-4 border-b border-grayscale-200">
<h2 class="text-lg font-semibold">Recent Activity</h2>
</div>
<div class="p-4">
<div class="space-y-4">
<div class="flex items-center">
<div class="w-10 h-10 bg-success-100 rounded-full flex items-center justify-center">
<svg class="w-5 h-5 text-success-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M5 13l4 4L19 7"></path></svg>
</div>
<div class="ml-4">
<div class="text-sm font-medium">Order #12345 completed</div>
<div class="text-xs text-grayscale-500">2 minutes ago</div>
</div>
</div>
<div class="flex items-center">
<div class="w-10 h-10 bg-primary-100 rounded-full flex items-center justify-center">
<svg class="w-5 h-5 text-primary-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M16 7a4 4 0 11-8 0 4 4 0 018 0zM12 14a7 7 0 00-7 7h14a7 7 0 00-7-7z"></path></svg>
</div>
<div class="ml-4">
<div class="text-sm font-medium">New customer registered</div>
<div class="text-xs text-grayscale-500">15 minutes ago</div>
</div>
</div>
<div class="flex items-center">
<div class="w-10 h-10 bg-warning-100 rounded-full flex items-center justify-center">
<svg class="w-5 h-5 text-warning-600" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 9v2m0 4h.01m-6.938 4h13.856c1.54 0 2.502-1.667 1.732-3L13.732 4c-.77-1.333-2.694-1.333-3.464 0L3.34 16c-.77 1.333.192 3 1.732 3z"></path></svg>
</div>
<div class="ml-4">
<div class="text-sm font-medium">Low stock alert: Product SKU-789</div>
<div class="text-xs text-grayscale-500">1 hour ago</div>
</div>
</div>
</div>
</div>
</div>
</div>
<% end %>
<% end %>