-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1194 lines (1136 loc) · 70 KB
/
index.html
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
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
<!doctype html>
<html lang="en" data-theme="sunset">
<head>
<meta charset="UTF-8"/>
<link rel="icon" type="image/svg+xml" href="/img/icon.png"/>
<meta name="viewport" content="width=device-width, initial-scale=1.0"/>
<link rel="stylesheet" href="style.css">
<title>Hello Shoes</title>
</head>
<body>
<!--navigation bar-->
<div class="navbar bg-base-100 shadow-lg">
<div class="flex-none">
<label class="btn btn-square btn-ghost" for="my-drawer-2">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
class="inline-block w-5 h-5 stroke-current">
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2"
d="M4 6h16M4 12h16M4 18h16"></path>
</svg>
</label>
</div>
<div class="flex-1">
<img src="img/logo.svg" alt="logo" class="w-48">
</div>
<div class="flex-none">
<div id="nav_img_container" class="dropdown dropdown-end hidden">
<div tabindex="0" role="button" class="btn btn-ghost btn-circle mx-2">
<div class="avatar">
<div class="w-12 rounded-full">
<img id="nav_img" src="https://daisyui.com/images/stock/photo-1534528741775-53994a69daeb.jpg"/>
</div>
</div>
</div>
<div tabindex="0" class="mt-3 z-[1] card card-compact dropdown-content w-52 bg-base-100 shadow">
<div class="card-body">
<span id="nav_username" class="font-bold text-lg">-</span>
<span id="nav_email" class="text-info">-</span>
<div class="card-actions">
<button id="logout_btn" class="btn btn-error btn-block">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="size-6">
<path stroke-linecap="round" stroke-linejoin="round"
d="M8.25 9V5.25A2.25 2.25 0 0 1 10.5 3h6a2.25 2.25 0 0 1 2.25 2.25v13.5A2.25 2.25 0 0 1 16.5 21h-6a2.25 2.25 0 0 1-2.25-2.25V15m-3 0-3-3m0 0 3-3m-3 3H15"/>
</svg>
Logout
</button>
</div>
</div>
</div>
</div>
<button class="btn btn-square btn-ghost">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round"
d="M14.857 17.082a23.848 23.848 0 0 0 5.454-1.31A8.967 8.967 0 0 1 18 9.75V9A6 6 0 0 0 6 9v.75a8.967 8.967 0 0 1-2.312 6.022c1.733.64 3.56 1.085 5.455 1.31m5.714 0a24.255 24.255 0 0 1-5.714 0m5.714 0a3 3 0 1 1-5.714 0"/>
</svg>
</button>
<button id="theme_changer" class="btn btn-square btn-ghost">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">
<g id="sun">
<path stroke-linecap="round" stroke-linejoin="round"
d="M12 3v2.25m6.364.386-1.591 1.591M21 12h-2.25m-.386 6.364-1.591-1.591M12 18.75V21m-4.773-4.227-1.591 1.591M5.25 12H3m4.227-4.773L5.636 5.636M15.75 12a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0Z"/>
</g>
<g id="moon" class="hidden">
<path stroke-linecap="round" stroke-linejoin="round"
d="M21.752 15.002A9.72 9.72 0 0 1 18 15.75c-5.385 0-9.75-4.365-9.75-9.75 0-1.33.266-2.597.748-3.752A9.753 9.753 0 0 0 3 11.25C3 16.635 7.365 21 12.75 21a9.753 9.753 0 0 0 9.002-5.998Z"/>
</g>
</svg>
</button>
</div>
</div>
<div class="drawer lg:drawer-open">
<input id="my-drawer-2" type="checkbox" class="drawer-toggle"/>
<div class="drawer-content">
<!-- Page content here -->
<main id="main-content" class="sm:px-20 px-8">
<section id="dashboard">
<h1 id="greet_header" class="text-4xl mt-8">Welcome Back Vinidu Minsara</h1>
<div class="flex justify-around flex-wrap mt-4">
<div class="card w-80 bg-base-100 shadow-xl mb-3">
<div class="card-body">
<div class="stat">
<div class="stat-figure text-primary">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" class="inline-block w-16 h-16">
<path stroke-linecap="round" stroke-linejoin="round"
d="M2.25 18.75a60.07 60.07 0 0 1 15.797 2.101c.727.198 1.453-.342 1.453-1.096V18.75M3.75 4.5v.75A.75.75 0 0 1 3 6h-.75m0 0v-.375c0-.621.504-1.125 1.125-1.125H20.25M2.25 6v9m18-10.5v.75c0 .414.336.75.75.75h.75m-1.5-1.5h.375c.621 0 1.125.504 1.125 1.125v9.75c0 .621-.504 1.125-1.125 1.125h-.375m1.5-1.5H21a.75.75 0 0 0-.75.75v.75m0 0H3.75m0 0h-.375a1.125 1.125 0 0 1-1.125-1.125V15m1.5 1.5v-.75A.75.75 0 0 0 3 15h-.75M15 10.5a3 3 0 1 1-6 0 3 3 0 0 1 6 0Zm3 0h.008v.008H18V10.5Zm-12 0h.008v.008H6V10.5Z"/>
</svg>
</div>
<div class="stat-title mb-2">Total Sales</div>
<div id="total_sales" class="stat-value text-primary">0</div>
<div class="stat-desc mt-2">21% more than last month</div>
</div>
</div>
</div>
<div class="card w-80 bg-base-100 shadow-xl mb-3">
<div class="card-body">
<div class="stat">
<div class="stat-figure text-secondary">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" class="inline-block w-16 h-16">
<path stroke-linecap="round" stroke-linejoin="round"
d="M2.25 18 9 11.25l4.306 4.306a11.95 11.95 0 0 1 5.814-5.518l2.74-1.22m0 0-5.94-2.281m5.94 2.28-2.28 5.941"/>
</svg>
</div>
<div class="stat-title mb-2">Total Profit</div>
<div id="total_profit" class="stat-value text-secondary">0</div>
<div class="stat-desc mt-2">21% more than last month</div>
</div>
</div>
</div>
<div class="card w-80 bg-base-100 shadow-xl mb-3">
<div class="card-body">
<div class="stat">
<div class="stat-figure text-accent">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" class="inline-block w-16 h-16">
<path stroke-linecap="round" stroke-linejoin="round"
d="M15.75 6a3.75 3.75 0 1 1-7.5 0 3.75 3.75 0 0 1 7.5 0ZM4.501 20.118a7.5 7.5 0 0 1 14.998 0A17.933 17.933 0 0 1 12 21.75c-2.676 0-5.216-.584-7.499-1.632Z"/>
</svg>
</div>
<div class="stat-title mb-2">Loyalty Customers</div>
<div id="total_customers" class="stat-value text-accent">0</div>
<div class="stat-desc mt-2">21% more than last month</div>
</div>
</div>
</div>
</div>
<div class="flex flex-col md:flex-row justify-around">
<div class="card shadow-xl">
<div class="card-body">
<h3 class="text-xl stat-title">Most sold Item</h3>
<div class="px-16">
<div class="avatar my-4">
<div class="w-48 rounded">
<img id="most_sold_item_pic"
src="https://ralfvanveen.com/wp-content/uploads/2021/06/Placeholder-_-Glossary.svg"
alt="image">
</div>
</div>
<h4 id="most_sold_item" class="text-info text-3xl font-extrabold"></h4>
</div>
</div>
</div>
<div class="card shadow-xl">
<div class="card-body">
<h3 class="text-xl stat-title">Products by Verities</h3>
<div class="card-body">
<div id="chart"></div>
</div>
</div>
</div>
</div>
</section>
<section id="products">
<div id="products_header" class="flex justify-between items-center my-8">
<h1 class="text-4xl font-bold">Products</h1>
<select id="sortBy" class="select select-bordered w-full max-w-xs">
<option disabled selected value="">Select Filter</option>
<option value="price-lowest">Price: Lowest First</option>
<option value="price-highest">Price: Highest First</option>
<option value="name-a">Name: A to Z</option>
<option value="name-z">Name: Z to A</option>
<option value="gender-male">Gender: Male</option>
<option value="gender-female">Gender: Female</option>
<option value="occasion-formal">Occasion: Formal</option>
<option value="occasion-casual">Occasion: Casual</option>
</select>
</div>
<div id="products-container" class="flex flex-wrap gap-5 justify-center"></div>
<div id="products_view" class="hidden">
<div class="flex justify-between items-center my-8">
<button id="products_back_btn" class="btn btn-ghost btn-outline btn-circle">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round"
d="M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"/>
</svg>
</button>
</div>
<div class="flex flex-col items-start gap-8 md:flex-row">
<div class="avatar">
<div class="w-96 rounded">
<img id="product_img" src="https://ralfvanveen.com/wp-content/uploads/2021/06/Placeholder-_-Glossary.svg" />
</div>
</div>
<div>
<h1 id="product_name" class="text-4xl font-extrabold mb-1">Nike Airforce</h1>
<h3 id="product_supplier" class="text-lg font-thin mb-4">Nike Internationals pvt limited</h3>
<h3 id="product_price" class="text-2xl font-semibold inline">
Rs. 3000
</h3>
<span id="product_profit" class="font-light text-lg text-success">+ 20.5%</span>
<h3 id="product_status" class="text-lg font-medium my-4">Available</h3>
<div id="product_occasion" class="badge badge-primary badge-outline badge-lg">FORMAL</div>
<div id="product_verity" class="badge badge-secondary badge-outline badge-lg">SHOES</div>
<div id="product_gender" class="badge badge-accent badge-outline badge-lg">MALE</div>
</div>
<div class="overflow-x-auto md:ml-48">
<table class="table">
<thead>
<tr>
<th>Size</th>
<th>Qty</th>
</tr>
</thead>
<tbody>
<tr>
<td>Size 5</td>
<td id="product_size_5">-</td>
</tr>
<tr>
<td>Size 6</td>
<td id="product_size_6">-</td>
</tr>
<tr>
<td>Size 7</td>
<td id="product_size_7">-</td>
</tr>
<tr>
<td>Size 8</td>
<td id="product_size_8">-</td>
</tr>
<tr>
<td>Size 9</td>
<td id="product_size_9">-</td>
</tr>
<tr>
<td>Size 10</td>
<td id="product_size_10">-</td>
</tr>
<tr>
<td>Size 11</td>
<td id="product_size_11">-</td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
</section>
<section id="order">
<h1 class="text-4xl font-bold my-8">Orders</h1>
<div role="tablist" class="tabs tabs-boxed my-6">
<input type="radio" name="my_tabs_2" role="tab" class="tab" aria-label="New Order" checked/>
<div role="tabpanel" class="tab-content bg-base-100 border-base-300 rounded-box p-6">
<div class="flex justify-between items-center my-3 px-4">
<h3 class="text-2xl font-bold">Cart</h3>
<button class="btn btn-primary" onclick="new_cart_item_form.showModal()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round"
d="M12 4.5v15m7.5-7.5h-15"/>
</svg>
Add Cart Item
</button>
</div>
<div class="overflow-x-auto mb-4">
<table id="cart_table" class="table">
<!-- head -->
<thead>
<tr>
<th>ID</th>
<th>Item</th>
<th>Size</th>
<th>Qty</th>
<th>Price</th>
<th></th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<dialog id="new_cart_item_form" class="modal">
<div class="modal-box">
<form method="dialog">
<button id="new_cart_item_form_close"
class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕
</button>
</form>
<h1 class="text-2xl font-bold mb-2">Add Cart Item</h1>
<div class="join mb-2">
<input class="input input-bordered join-item" id="order_item_search"
placeholder="Search"/>
<button class="btn join-item" id="order_item_search_btn">Search</button>
</div>
<div class="overflow-x-auto table-pin-rows h-48 mb-4">
<table id="add_cart_table" class="table">
<!-- head -->
<thead>
<tr>
<th>Name</th>
<th>Verity</th>
<th>Gender</th>
<th>Price</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<div class="flex w-100 justify-between">
<div>
<select id="order_item_size" class="select select-bordered max-w-xs">
<option disabled selected value="">Size</option>
<option value="5">Size 5</option>
<option value="6">Size 6</option>
<option value="7">Size 7</option>
<option value="8">Size 8</option>
<option value="9">Size 9</option>
<option value="10">Size 10</option>
<option value="11">Size 11</option>
</select>
<input type="number" id="order_item_qty" placeholder="Qty"
class="input input-bordered" min="0"/>
</div>
<button id="cart_add_btn" class="btn btn-primary">Add</button>
</div>
</div>
</dialog>
<div class="flex justify-between w-100 items-center">
<div>
<span class="text-lg font-bold">Total : </span>
<span id="total-amount" class="text-lg font-thin">Rs. 0.00</span>
</div>
<button id="checkout_btn_form" class="btn btn-secondary">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24"
stroke-width="1.5" stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round"
d="M2.25 3h1.386c.51 0 .955.343 1.087.835l.383 1.437M7.5 14.25a3 3 0 0 0-3 3h15.75m-12.75-3h11.218c1.121-2.3 2.1-4.684 2.924-7.138a60.114 60.114 0 0 0-16.536-1.84M7.5 14.25 5.106 5.272M6 20.25a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Zm12.75 0a.75.75 0 1 1-1.5 0 .75.75 0 0 1 1.5 0Z"/>
</svg>
Proceed to Checkout
</button>
</div>
<dialog id="checkout_form" class="modal">
<div class="modal-box">
<form method="dialog">
<button id="checkout_form_close"
class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕
</button>
</form>
<h1 class="text-2xl font-bold mb-2">Checkout</h1>
<h1 class="text-lg mb-2">Customer Details(Only Loyalty Customers)</h1>
<div class="flex justify-around items-center my-8">
<input type="text" id="order_customer" placeholder="Enter Customer Contact"
class="input input-bordered" min="0"/>
<p id="order_customer_name" class="text-lg">-</p>
</div>
<h1 class="text-lg mb-2">Payment Details</h1>
<div class="flex justify-around items-center my-8">
<h2 id="total" class="text-lg font-bold"></h2>
<div>
<select id="payment_method" class="select select-bordered max-w-xs">
<option disabled selected value="">Payment Method</option>
<option value="CASH">Cash</option>
<option value="CARD">Card</option>
</select>
<p class="text-error text-xs mt-2" id="payment_method_error"></p>
</div>
</div>
<div id="cash_method" class="hidden flex justify-around items-center my-8">
<input type="number" id="payment_amount" placeholder="Payment"
class="input input-bordered" min="0"/>
<input type="number" id="balance_amount" placeholder="Balance"
class="input input-bordered" min="0"/>
</div>
<div id="card_method" class="hidden flex justify-around items-center my-8">
<input type="text" placeholder="Bank Name" class="input input-bordered" min="0"/>
<input type="number" placeholder="Card Number" class="input input-bordered"
min="0"/>
</div>
<div class="flex justify-end">
<button id="checkout_btn" class="btn btn-primary">Checkout</button>
</div>
</div>
</dialog>
</div>
<input type="radio" name="my_tabs_2" role="tab" class="tab" aria-label="Order List"/>
<div role="tabpanel" class="tab-content bg-base-100 border-base-300 rounded-box p-6">
<h3 class="text-2xl font-bold mb-3">Orders List</h3>
<div class="overflow-x-auto">
<table id="order_table" class="table table-xs">
<thead>
<tr>
<th>ID</th>
<th>Date</th>
<th>Total</th>
<th>Payment</th>
</tr>
</thead>
<tbody></tbody>
<tfoot>
<tr>
<th>ID</th>
<th>Date</th>
<th>Total</th>
<th>Payment</th>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
</section>
<section id="customer">
<div class="flex justify-between items-center ">
<h1 class="text-4xl font-bold my-8">Customers</h1>
<button class="btn btn-primary" id="add_customer_btn">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15"/>
</svg>
Add Customer
</button>
<dialog id="new_customer_form" class="modal">
<div class="modal-box">
<form method="dialog">
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
</form>
<h1 class="text-2xl font-bold mb-2">Add Customer</h1>
<div class="my-4">
<input id="customer_name" type="text" placeholder="Name"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="customer_name_error"></p>
</div>
<div class="my-4">
<input id="customer_address" type="text" placeholder="Address"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="customer_address_error"></p>
</div>
<div class="my-4">
<input id="customer_contact" type="text" placeholder="Contact"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="customer_contact_error"></p>
</div>
<div class="my-4">
<input id="customer_email" type="text" placeholder="Email"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="customer_email_error"></p>
</div>
<div class="my-4">
<input id="customer_dob" type="date" placeholder="DOB"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="customer_dob_error"></p>
</div>
<div class="my-4">
<input id="customer_male" class="join-item btn" type="radio" name="customer_gender"
aria-label="Male"/>
<input id="customer_female" class="join-item btn" type="radio" name="customer_gender"
aria-label="Female"/>
<p class="text-error text-xs mt-2" id="customer_gender_error"></p>
</div>
<div class="flex justify-end">
<button id="customerSaveBtn" type="button" class="btn btn-primary">Save</button>
</div>
</div>
</dialog>
</div>
<div class="overflow-x-auto">
<table id="customer_table" class="table table-xs">
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Email</th>
<th>Contact</th>
<th>Points</th>
<th>Level</th>
<th>Last Purchase Date</th>
<th>Joined Date</th>
<th></th>
</tr>
</thead>
<tbody></tbody>
<tfoot>
<tr>
<th></th>
<th>Name</th>
<th>Email</th>
<th>Contact</th>
<th>Points</th>
<th>Level</th>
<th>Last Purchase Date</th>
<th>Joined Date</th>
<th></th>
</tr>
</tfoot>
</table>
</div>
</section>
<section id="inventory">
<div id="inventory-header" class="flex justify-between items-center">
<h1 class="text-4xl font-bold my-8">Inventory</h1>
<button class="btn btn-primary" id="add_inventory_btn">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15"/>
</svg>
Add Inventory
</button>
</div>
<div class="overflow-x-auto">
<table id="inventory_table" class="table">
<!-- head -->
<thead>
<tr>
<th>ID</th>
<th>Name</th>
<th>Category</th>
<th>Occasion</th>
<th>Price</th>
<th></th>
</tr>
</thead>
<tbody></tbody>
<!-- foot -->
<tfoot>
<tr>
<th>ID</th>
<th>Name</th>
<th>Category</th>
<th>Occasion</th>
<th>Price</th>
<th></th>
</tr>
</tfoot>
</table>
</div>
<div id="inventory_form_view" class="hidden">
<div class="flex justify-between items-center my-8">
<button id="inventory_back_btn" class="btn btn-ghost btn-outline btn-circle">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round"
d="M10.5 19.5 3 12m0 0 7.5-7.5M3 12h18"/>
</svg>
</button>
<button class="btn btn-success" type="submit" form="inventory_form">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round"
d="M17.593 3.322c1.1.128 1.907 1.077 1.907 2.185V21L12 17.25 4.5 21V5.507c0-1.108.806-2.057 1.907-2.185a48.507 48.507 0 0 1 11.186 0Z"/>
</svg>
<span id="inventory_btn">Save Item</span>
</button>
</div>
<form id="inventory_form" enctype="multipart/form-data">
<div class="my-4 flex flex-wrap gap-5 justify-center">
<div>
<input id="inventory_desc" type="text" placeholder="Description"
class="input input-bordered w-full max-w-xs" name="itemDesc"/>
<p class="text-error text-xs mt-2" id="inventory_desc_error"></p>
</div>
<div>
<input id="inventory_selling_price" type="text" placeholder="Selling Price"
class="input input-bordered w-full max-w-xs" name="sellingPrice"/>
<p class="text-error text-xs mt-2" id="inventory_selling_price_error"></p>
</div>
<div>
<input id="inventory_buying_price" type="text" placeholder="Buying Price"
class="input input-bordered w-full max-w-xs" name="buyingPrice"/>
<p class="text-error text-xs mt-2" id="inventory_buying_price_error"></p>
</div>
</div>
<div class="my-4 flex flex-wrap gap-5 justify-center">
<div>
<select id="inventory_gender" class="select select-bordered max-w-xs" name="gender">
<option disabled selected value="">Gender</option>
<option value="MALE">Male</option>
<option value="FEMALE">Female</option>
</select>
<p class="text-error text-xs mt-2" id="inventory_gender_error"></p>
</div>
<div>
<select id="inventory_occasion" class="select select-bordered max-w-xs"
name="occasionType">
<option disabled selected value="">Occasion Type</option>
<option value="FORMAL">Formal</option>
<option value="CASUAL">Casual</option>
<option value="INDUSTRIAL">Industrial</option>
<option value="SPORT">Sport</option>
</select>
<p class="text-error text-xs mt-2" id="inventory_occasion_error"></p>
</div>
<div>
<select id="inventory_verity" class="select select-bordered max-w-xs" name="verityType">
<option disabled selected value="">Verity</option>
<option value="HEEL">Heel</option>
<option value="FLATS">Flats</option>
<option value="WEDGES">Wedges</option>
<option value="FLIP_FLOPS">Flip Flops</option>
<option value="SANDALS">Sandals</option>
<option value="SHOES">Shoes</option>
<option value="SLIPPERS">Slippers</option>
<option value="SHOE_SHAMPOO">Shoe Shampoo</option>
<option value="POLISH">Polish</option>
</select>
<p class="text-error text-xs mt-2" id="inventory_verity_error"></p>
</div>
<div>
<select id="inventory_supplier" class="select select-bordered max-w-xs"
name="supplierId">
<option disabled selected value="">Supplier</option>
</select>
<p class="text-error text-xs mt-2" id="inventory_supplier_error"></p>
</div>
</div>
<div class="my-8 flex justify-around flex-col sm:flex-row">
<div class="overflow-x-auto">
<p class="text-error text-xs mt-2" id="inventory_size_error"></p>
<table class="table">
<thead>
<tr>
<th>Size</th>
<th>Qty</th>
</tr>
</thead>
<tbody id="qty-table">
<tr>
<td>Size 5</td>
<td><input type="number" id="qty-5" value="0" min="0"
class="input input-bordered input-sm">
</td>
</tr>
<tr>
<td>Size 6</td>
<td><input type="number" id="qty-6" value="0" min="0"
class="input input-bordered input-sm">
</td>
</tr>
<tr>
<td>Size 7</td>
<td><input type="number" id="qty-7" value="0" min="0"
class="input input-bordered input-sm">
</td>
</tr>
<tr>
<td>Size 8</td>
<td><input type="number" id="qty-8" value="0" min="0"
class="input input-bordered input-sm">
</td>
</tr>
<tr>
<td>Size 9</td>
<td><input type="number" id="qty-9" value="0" min="0"
class="input input-bordered input-sm">
</td>
</tr>
<tr>
<td>Size 10</td>
<td><input type="number" id="qty-10" value="0" min="0"
class="input input-bordered input-sm"></td>
</tr>
<tr>
<td>Size 11</td>
<td><input type="number" id="qty-11" value="0" min="0"
class="input input-bordered input-sm"></td>
</tr>
</tbody>
</table>
</div>
<div class="avatar flex flex-col items-center">
<div class="w-48 rounded">
<img id="item_image"
src="https://ralfvanveen.com/wp-content/uploads/2021/06/Placeholder-_-Glossary.svg"/>
</div>
<br>
<input id="inventory_itemPic" type="file" name="itemPicture"
class="file-input file-input-bordered w-full max-w-xs" accept="image/*"/>
<p class="text-error text-xs mt-2" id="inventory_itemPic_error"></p>
</div>
</div>
</form>
</div>
</section>
<section id="refund">
<div class="flex justify-between items-center">
<h1 class="text-4xl font-bold my-8">Refunds</h1>
<div class="join">
<input class="input input-bordered join-item" id="refund_orderId"
placeholder="Enter Order Id"/>
<button class="btn btn-primary join-item" id="refund_orderId_btn">Search</button>
</div>
</div>
<div class="overflow-x-auto">
<table id="refund_table" class="table">
<!-- head -->
<thead>
<tr>
<th></th>
<th>ID</th>
<th>Name</th>
<th>Size</th>
<th>Qty</th>
<th>Unit Price</th>
</tr>
</thead>
<tbody></tbody>
</table>
</div>
<div class="flex justify-end gap-3">
<input type="number" id="return_qty" placeholder="return qty"
class="input input-bordered" min="0"/>
<button id="refund_btn" class="btn btn-primary">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5" stroke="currentColor" class="size-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z" />
</svg>
Refund
</button>
</div>
</section>
<section id="supplier">
<div class="flex justify-between items-center ">
<h1 class="text-4xl font-bold my-8">Suppliers</h1>
<button class="btn btn-primary" id="add_supplier_btn">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15"/>
</svg>
Add Supplier
</button>
<dialog id="new_supplier_form" class="modal">
<div class="modal-box">
<form method="dialog">
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
</form>
<h1 class="text-2xl font-bold mb-2">Add Supplier</h1>
<div class="my-4">
<input id="supplier_name" type="text" placeholder="Name"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="supplier_name_error"></p>
</div>
<div class="my-4">
<input id="supplier_address" type="text" placeholder="Address"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="supplier_address_error"></p>
</div>
<div class="my-4">
<input id="supplier_contact1" type="text" placeholder="Contact 1"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="supplier_contact1_error"></p>
</div>
<div class="my-4">
<input id="supplier_contact2" type="text" placeholder="Contact 2"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="supplier_contact2_error"></p>
</div>
<div class="my-4">
<input id="supplier_email" type="text" placeholder="Email"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="supplier_email_error"></p>
</div>
<div>
<select id="supplier_category" class="select select-bordered w-full max-w-xs" required>
<option disabled selected value="">Category</option>
<option value="LOCAL">Local</option>
<option value="INTERNATIONAL">International</option>
</select>
<p class="text-error text-xs mt-2" id="supplier_category_error"></p>
</div>
<div class="flex justify-end">
<button id="supplierSaveBtn" type="button" class="btn btn-primary">Save</button>
</div>
</div>
</dialog>
</div>
<div class="overflow-x-auto">
<table id="supplier_table" class="table table-xs">
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Category</th>
<th>Email</th>
<th>Contacts</th>
<th>Address</th>
<th></th>
</tr>
</thead>
<tbody></tbody>
<tfoot>
<tr>
<th></th>
<th>Name</th>
<th>Category</th>
<th>Email</th>
<th>Contacts</th>
<th>Address</th>
<th></th>
</tr>
</tfoot>
</table>
</div>
</section>
<section id="employee">
<div class="flex justify-between items-center ">
<h1 class="text-4xl font-bold my-8">Employees</h1>
<button class="btn btn-primary" id="add_employee_btn" onclick="new_employee_form.showModal()">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">
<path stroke-linecap="round" stroke-linejoin="round" d="M12 4.5v15m7.5-7.5h-15"/>
</svg>
Add Employee
</button>
<dialog id="new_employee_form" class="modal">
<div class="modal-box" style="">
<form method="dialog">
<button class="btn btn-sm btn-circle btn-ghost absolute right-2 top-2">✕</button>
</form>
<form id="employeeForm" enctype="multipart/form-data">
<h1 class="text-2xl font-bold mb-2">Add Employee</h1>
<div class="my-4">
<input id="employee_name" type="text" name="name" placeholder="Name"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="employee_name_error"></p>
</div>
<div class="my-4">
<input id="employee_designation" type="text" name="designation"
placeholder="Designation"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="employee_designation_error"></p>
</div>
<div class="my-4">
<input id="employee_civilState" type="text" name="civilState"
placeholder="Civil State"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="employee_civilState_error"></p>
</div>
<div class="my-4">
<input id="employee_address" type="text" name="address" placeholder="Address"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="employee_address_error"></p>
</div>
<div class="my-4">
<input id="employee_contact" type="text" name="contact" placeholder="Contact"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="employee_contact_error"></p>
</div>
<div class="my-4">
<input id="employee_email" type="text" name="email" placeholder="Email"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="employee_email_error"></p>
</div>
<div class="my-4">
<input id="employee_guardian" type="text" name="guardian"
placeholder="Guardian Name"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="employee_guardian_error"></p>
</div>
<div class="my-4">
<input id="employee_emergencyContact" type="text" name="emergencyContact"
placeholder="Emergency Contact"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="employee_emergencyContact_error"></p>
</div>
<div class="my-4">
<select id="employee_accessRole" class="select select-bordered w-full max-w-xs"
name="accessRole">
<option disabled selected value="">Access Role</option>
<option value="ADMIN">Admin</option>
<option value="USER">User</option>
</select>
<p class="text-error text-xs mt-2" id="employee_accessRole_error"></p>
</div>
<div>
<select id="employee_branch" class="select select-bordered w-full max-w-xs"
name="branch">
<option disabled selected value="">Branch</option>
<option value="COLOMBO">Colombo</option>
<option value="KANDY">Kandy</option>
<option value="PANADURA">Panadura</option>
</select>
<p class="text-error text-xs mt-2" id="employee_branch_error"></p>
</div>
<div class="my-4">
<h3 class="my-3">Joined Date</h3>
<input id="employee_joinedDate" type="date" name="joinedDate"
placeholder="Joined Date"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="employee_joinedDate_error"></p>
</div>
<div class="my-4">
<h3 class="my-3">Date of Birth</h3>
<input id="employee_dob" type="date" name="dob" placeholder="DOB"
class="input input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="employee_dob_error"></p>
</div>
<div class="my-4">
<h3 class="my-3">Profile Pic</h3>
<input id="employee_profilePic" type="file" name="profilePicture"
placeholder="Profile Pic" accept="image/*"
class="file-input file-input-bordered w-full max-w-xs"/>
<p class="text-error text-xs mt-2" id="employee_profilePic_error"></p>
</div>
<div class="my-4">
<input id="employee_male" class="join-item btn" type="radio" name="gender"
aria-label="Male" value="MALE"/>
<input id="employee_female" class="join-item btn" type="radio"
name="gender" aria-label="Female" value="FEMALE"/>
<p class="text-error text-xs mt-2" id="employee_gender_error"></p>
</div>
<div class="flex justify-end">
<button id="employeeSaveBtn" type="submit" class="btn btn-primary">Save</button>
</div>
</form>
</div>
</dialog>
</div>
<div class="overflow-x-auto">
<table id="employee_table" class="table">
<!-- head -->
<thead>
<tr>
<th></th>
<th>Name</th>
<th>Email</th>
<th>Contact</th>
<th>Joined Date</th>
<th>Address</th>
<th></th>
</tr>
</thead>
<tbody></tbody>
<!-- foot -->
<tfoot>
<tr>
<th></th>
<th>Name</th>
<th>Email</th>
<th>Contact</th>
<th>Joined Date</th>
<th>Address</th>
<th></th>
</tr>
</tfoot>
</table>
</div>
</section>
</main>
</div>
<!-- navigation side bar-->
<div class="drawer-side">
<label for="my-drawer-2" aria-label="close sidebar" class="drawer-overlay"></label>
<ul class="menu p-4 w-60 min-h-full bg-base-200 text-base-content">
<!-- Sidebar content here -->
<li>
<a id="dashboard_nav" class="active-link">
<svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="1.5"
stroke="currentColor" class="w-6 h-6">