Repository navigation
Expand file tree
/
Copy pathindex.html
More file actions
2601 lines (2492 loc) · 119 KB
/
Copy pathindex.html
File metadata and controls
2601 lines (2492 loc) · 119 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
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">
<head>
<meta charset="UTF-8" />
<meta
http-equiv="Content-Security-Policy"
content="default-src 'self'; script-src 'self' 'wasm-unsafe-eval'; style-src 'self' 'unsafe-inline'; img-src 'self' data: https:; font-src 'self'; connect-src 'self'; worker-src 'self' blob:; object-src 'none'; base-uri 'self'; form-action 'self'"
/>
<link rel="icon" type="image/svg+xml" href="./public/favicon.svg" />
<link rel="apple-touch-icon" href="./pwa-icon.svg" />
<link rel="manifest" href="./manifest.webmanifest" />
<meta
name="viewport"
content="width=device-width, initial-scale=1.0, viewport-fit=cover"
/>
<meta name="theme-color" content="#0f766e" />
<meta
name="description"
content="PayNote — Simple Receipts. Organized Payments. Browser-based receipt and payment manager."
/>
<title>PayNote</title>
<link rel="stylesheet" href="./src/styles.css" />
</head>
<body>
<div class="global-error" data-global-error role="alert" hidden>
<svg class="icon icon-danger" aria-hidden="true"><use href="#icon-alert"></use></svg>
<p data-global-error-message>Something unexpected happened.</p>
<div class="global-error-actions">
<button class="button button-small button-secondary" type="button" data-global-error-reload>
Reload
</button>
<button class="button button-small button-secondary" type="button" data-global-error-dismiss>
Dismiss
</button>
</div>
</div>
<svg class="svg-sprite" aria-hidden="true">
<defs>
<symbol id="icon-receipt" viewBox="0 0 24 24">
<path d="M6 2h12a1 1 0 0 1 1 1v18l-3-2-3 2-3-2-3 2V3a1 1 0 0 1 1-1Z"></path>
<path d="M9 7h6M9 11h6M9 15h4"></path>
</symbol>
<symbol id="icon-dashboard" viewBox="0 0 24 24">
<rect x="3" y="3" width="7" height="7" rx="1"></rect>
<rect x="14" y="3" width="7" height="7" rx="1"></rect>
<rect x="3" y="14" width="7" height="7" rx="1"></rect>
<rect x="14" y="14" width="7" height="7" rx="1"></rect>
</symbol>
<symbol id="icon-plus" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="9"></circle>
<path d="M12 8v8M8 12h8"></path>
</symbol>
<symbol id="icon-history" viewBox="0 0 24 24">
<path d="M3 12a9 9 0 1 0 3-6.7L3 8"></path>
<path d="M3 3v5h5M12 7v5l3 2"></path>
</symbol>
<symbol id="icon-users" viewBox="0 0 24 24">
<path d="M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"></path>
<circle cx="9" cy="7" r="4"></circle>
<path d="M22 21v-2a4 4 0 0 0-3-3.87M16 3.13a4 4 0 0 1 0 7.75"></path>
</symbol>
<symbol id="icon-building" viewBox="0 0 24 24">
<rect x="4" y="3" width="16" height="18" rx="2"></rect>
<path d="M9 7h1M14 7h1M9 11h1M14 11h1M9 15h1M14 15h1M9 21v-2h6v2"></path>
</symbol>
<symbol id="icon-chart" viewBox="0 0 24 24">
<path d="M3 3v18h18"></path>
<path d="m7 15 4-4 3 3 5-6"></path>
</symbol>
<symbol id="icon-database" viewBox="0 0 24 24">
<ellipse cx="12" cy="5" rx="8" ry="3"></ellipse>
<path d="M4 5v6c0 1.7 3.6 3 8 3s8-1.3 8-3V5"></path>
<path d="M4 11v6c0 1.7 3.6 3 8 3s8-1.3 8-3v-6"></path>
</symbol>
<symbol id="icon-settings" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="3"></circle>
<path
d="M12 2v3M12 19v3M4.9 4.9 7 7M17 17l2.1 2.1M2 12h3M19 12h3M4.9 19.1 7 17M17 7l2.1-2.1"
></path>
</symbol>
<symbol id="icon-shield" viewBox="0 0 24 24">
<path d="M12 22s8-4 8-10V5l-8-3-8 3v7c0 6 8 10 8 10Z"></path>
<path d="m9 12 2 2 4-4"></path>
</symbol>
<symbol id="icon-monitor" viewBox="0 0 24 24">
<rect x="2" y="3" width="20" height="14" rx="2"></rect>
<path d="M8 21h8M12 17v4"></path>
</symbol>
<symbol id="icon-hard-drive" viewBox="0 0 24 24">
<path
d="M5.45 5.11 2 12v6a2 2 0 0 0 2 2h16a2 2 0 0 0 2-2v-6l-3.45-6.89A2 2 0 0 0 16.76 4H7.24a2 2 0 0 0-1.79 1.11Z"
></path>
<path d="M2 12h20M6 16h.01M10 16h.01"></path>
</symbol>
<symbol id="icon-layers" viewBox="0 0 24 24">
<path d="m12 2 9 5-9 5-9-5 9-5Z"></path>
<path d="m3 12 9 5 9-5M3 17l9 5 9-5"></path>
</symbol>
<symbol id="icon-alert" viewBox="0 0 24 24">
<path
d="M10.29 3.86 1.82 18a2 2 0 0 0 1.71 3h16.94a2 2 0 0 0 1.71-3L13.71 3.86a2 2 0 0 0-3.42 0Z"
></path>
<path d="M12 9v4M12 17h.01"></path>
</symbol>
<symbol id="icon-check" viewBox="0 0 24 24">
<circle cx="12" cy="12" r="9"></circle>
<path d="m8 12 3 3 5-6"></path>
</symbol>
<symbol id="icon-file-question" viewBox="0 0 24 24">
<path d="M14.5 2H6a2 2 0 0 0-2 2v16a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V7.5L14.5 2Z"></path>
<path d="M14 2v6h6M9.1 9a3 3 0 0 1 5.8 1c0 2-3 3-3 3M12 17h.01"></path>
</symbol>
</defs>
</svg>
<section
class="shared-receipt"
data-shared-receipt
aria-labelledby="shared-receipt-title"
hidden
>
<div class="shared-receipt-shell">
<header class="shared-receipt-header">
<div class="shared-receipt-brand">
<span class="brand-mark">
<svg class="icon" aria-hidden="true"><use href="#icon-receipt"></use></svg>
</span>
<span class="brand-copy">
<strong>PayNote</strong>
<small>Shared receipt</small>
</span>
</div>
<a class="button button-small button-secondary" href="./" data-shared-receipt-open>
Open PayNote
</a>
</header>
<h1 class="sr-only" id="shared-receipt-title">Shared receipt</h1>
<p class="shared-receipt-loading" data-shared-receipt-loading role="status">
Opening receipt…
</p>
<div class="card error-card" data-shared-receipt-error role="alert" hidden>
<svg class="card-icon icon-danger" aria-hidden="true"><use href="#icon-alert"></use></svg>
<div>
<h2 class="card-title">Receipt unavailable</h2>
<p class="card-description" data-shared-receipt-error-message>
This receipt link is invalid or has been altered.
</p>
</div>
</div>
<div class="shared-receipt-sheet" data-shared-receipt-sheet></div>
</div>
</section>
<section class="pin-screen" data-pin-screen aria-labelledby="pin-title">
<div class="pin-card">
<div class="pin-brand">
<span class="brand-mark">
<svg class="icon" aria-hidden="true"><use href="#icon-receipt"></use></svg>
</span>
<span class="brand-copy">
<strong>PayNote</strong>
<small>Receipts & Payments</small>
</span>
</div>
<div class="pin-panel" data-pin-panel>
<div class="pin-heading">
<h1 class="pin-title" id="pin-title" data-pin-title>Enter your PIN</h1>
<p class="pin-description" data-pin-description>
Unlock PayNote to reach the records stored on this device.
</p>
</div>
<p class="notice" data-pin-notice role="status" hidden></p>
<form class="form pin-form" data-pin-setup-form novalidate hidden>
<label class="field">
<span class="field-label">New PIN</span>
<input
class="input pin-input"
type="password"
inputmode="numeric"
pattern="[0-9]*"
maxlength="4"
autocomplete="new-password"
data-pinsetup-input="pin"
/>
<span class="field-error" data-pinsetup-field-error="pin" hidden></span>
</label>
<label class="field">
<span class="field-label">Confirm PIN</span>
<input
class="input pin-input"
type="password"
inputmode="numeric"
pattern="[0-9]*"
maxlength="4"
autocomplete="new-password"
data-pinsetup-input="confirmPin"
/>
<span
class="field-error"
data-pinsetup-field-error="confirmPin"
hidden
></span>
</label>
<p class="form-error" data-pinsetup-form-error role="alert" hidden></p>
<button
class="button button-primary pin-submit"
type="submit"
data-pin-setup-submit
>
Set PIN
</button>
<p class="pin-hint">
Keep this PIN somewhere safe. It protects the encryption key for your
records. If you forget it, the data cannot be recovered.
</p>
</form>
<form class="form pin-form" data-pin-unlock-form novalidate hidden>
<label class="field">
<span class="field-label">PIN</span>
<input
class="input pin-input"
type="password"
inputmode="numeric"
pattern="[0-9]*"
maxlength="4"
autocomplete="current-password"
data-pinunlock-input="pin"
/>
<span
class="field-error"
data-pinunlock-field-error="pin"
hidden
></span>
</label>
<p class="form-error" data-pinunlock-form-error role="alert" hidden></p>
<button
class="button button-primary pin-submit"
type="submit"
data-pin-unlock-submit
>
Unlock
</button>
<button
class="link-button pin-forgot"
type="button"
data-pin-forgot
>
Reset PIN
</button>
</form>
<form
class="form pin-form pin-reset"
data-pin-reset-panel
data-pin-reset-form
novalidate
hidden
>
<p class="pin-hint">
Enter your current PIN, then choose a new PIN. Your records stay on
this device.
</p>
<label class="field">
<span class="field-label">Current PIN</span>
<input
class="input pin-input"
type="password"
inputmode="numeric"
pattern="[0-9]*"
maxlength="4"
autocomplete="current-password"
data-pinreset-input="oldPin"
/>
<span
class="field-error"
data-pinreset-field-error="oldPin"
hidden
></span>
</label>
<label class="field">
<span class="field-label">New PIN</span>
<input
class="input pin-input"
type="password"
inputmode="numeric"
pattern="[0-9]*"
maxlength="4"
autocomplete="new-password"
data-pinreset-input="newPin"
/>
<span
class="field-error"
data-pinreset-field-error="newPin"
hidden
></span>
</label>
<label class="field">
<span class="field-label">Confirm new PIN</span>
<input
class="input pin-input"
type="password"
inputmode="numeric"
pattern="[0-9]*"
maxlength="4"
autocomplete="new-password"
data-pinreset-input="confirmPin"
/>
<span
class="field-error"
data-pinreset-field-error="confirmPin"
hidden
></span>
</label>
<p class="form-error" data-pinreset-form-error role="alert" hidden></p>
<div class="form-actions">
<button
class="button button-danger"
type="submit"
data-pin-reset-confirm
>
Reset PIN
</button>
<button
class="button button-secondary"
type="button"
data-pin-reset-cancel
>
Back
</button>
</div>
</form>
<p class="pin-footer">
Your records stay offline on this device and are encrypted with a key
protected by your PIN. If you forget the PIN, the data cannot be
recovered and must be erased.
</p>
</div>
</div>
</section>
<div class="app" data-app-shell hidden>
<aside class="sidebar">
<a class="brand" href="#/" aria-label="PayNote dashboard">
<span class="brand-mark">
<svg class="icon" aria-hidden="true"><use href="#icon-receipt"></use></svg>
</span>
<span class="brand-copy">
<strong>PayNote</strong>
<small>Receipts & Payments</small>
</span>
</a>
<nav class="nav" aria-label="Primary">
<a class="nav-link" href="#/" data-nav>
<svg class="icon" aria-hidden="true"><use href="#icon-dashboard"></use></svg>
<span>Dashboard</span>
</a>
<a class="nav-link" href="#/receipts/new" data-nav>
<svg class="icon" aria-hidden="true"><use href="#icon-plus"></use></svg>
<span>New Receipt</span>
</a>
<a class="nav-link" href="#/receipts" data-nav>
<svg class="icon" aria-hidden="true"><use href="#icon-history"></use></svg>
<span>Receipt History</span>
</a>
<a class="nav-link" href="#/customers" data-nav>
<svg class="icon" aria-hidden="true"><use href="#icon-users"></use></svg>
<span>Customers</span>
</a>
<a class="nav-link" href="#/properties" data-nav>
<svg class="icon" aria-hidden="true"><use href="#icon-building"></use></svg>
<span>Properties</span>
</a>
<a class="nav-link" href="#/reports" data-nav>
<svg class="icon" aria-hidden="true"><use href="#icon-chart"></use></svg>
<span>Reports</span>
</a>
<a class="nav-link" href="#/backup" data-nav>
<svg class="icon" aria-hidden="true"><use href="#icon-database"></use></svg>
<span>Backup & Restore</span>
</a>
<a class="nav-link" href="#/settings" data-nav>
<svg class="icon" aria-hidden="true"><use href="#icon-settings"></use></svg>
<span>Settings</span>
</a>
</nav>
<div class="sidebar-footer">
<svg class="icon" aria-hidden="true"><use href="#icon-shield"></use></svg>
<p>Offline-first. Your records stay on this computer and are never uploaded.</p>
</div>
</aside>
<div class="app-body">
<header class="topbar">
<div class="topbar-context">
<p class="topbar-eyebrow">PayNote</p>
<p class="topbar-section" data-section-title>Dashboard</p>
</div>
<div class="topbar-meta">
<button
class="button button-secondary button-small"
type="button"
data-pin-lock
hidden
>
Lock
</button>
<span
class="status status-loading"
data-storage-status
role="status"
aria-live="polite"
>
<span class="spinner" aria-hidden="true"></span>
Checking storage
</span>
<span class="badge badge-neutral" data-app-version>v0.1.0</span>
</div>
</header>
<main class="content" id="main-content">
<section
class="page"
id="page-dashboard"
data-route="/"
aria-labelledby="dashboard-title"
>
<div class="page-header">
<div>
<h1 class="page-title" id="dashboard-title">Dashboard</h1>
<p class="page-description">A browser-based overview of your PayNote workspace.</p>
</div>
</div>
<div class="card error-card" data-dashboard-error hidden>
<svg class="card-icon icon-danger" aria-hidden="true">
<use href="#icon-alert"></use>
</svg>
<div>
<h2 class="card-title">Workspace unavailable</h2>
<p class="card-description" data-error-message>
The workspace could not be loaded.
</p>
<button class="button button-secondary" type="button" data-retry>Try again</button>
</div>
</div>
<div data-dashboard>
<p class="list-status" data-dashboard-status aria-live="polite">
Loading dashboard…
</p>
<div class="page-actions dashboard-actions">
<button class="button button-primary" type="button" data-dashboard-new>
<svg class="icon" aria-hidden="true"><use href="#icon-plus"></use></svg>
New receipt
</button>
<a class="button button-secondary" href="#/receipts">View receipt history</a>
<a class="button button-secondary" href="#/reports">Open reports</a>
</div>
<div class="stat-grid stat-grid-wide">
<div class="stat">
<span class="stat-value" data-dashboard-today-total>₹0.00</span>
<span class="stat-label">Today</span>
<span class="stat-detail" data-dashboard-today-count>0 receipts</span>
</div>
<div class="stat">
<span class="stat-value" data-dashboard-month-total>₹0.00</span>
<span class="stat-label">This month</span>
<span class="stat-detail" data-dashboard-month-count>0 receipts</span>
</div>
<div class="stat">
<span class="stat-value" data-dashboard-year-total>₹0.00</span>
<span class="stat-label">This year</span>
<span class="stat-detail" data-dashboard-year-count>0 receipts</span>
</div>
<div class="stat">
<span class="stat-value" data-dashboard-all-total>₹0.00</span>
<span class="stat-label">All time</span>
<span class="stat-detail" data-dashboard-all-count>0 receipts</span>
</div>
<div class="stat">
<span class="stat-value" data-dashboard-average>₹0.00</span>
<span class="stat-label">Average receipt</span>
</div>
<div class="stat">
<span class="stat-value" data-dashboard-cancelled>0</span>
<span class="stat-label">Cancelled receipts</span>
</div>
</div>
<div class="card">
<div class="card-header">
<div>
<h2 class="card-title">Recent activity</h2>
<p class="card-description">The latest receipts saved in this browser.</p>
</div>
<svg class="card-icon" aria-hidden="true"><use href="#icon-history"></use></svg>
</div>
<div class="card-content">
<div class="table-scroll" data-dashboard-recent-table>
<table class="table">
<caption class="sr-only">Recent receipts</caption>
<thead>
<tr>
<th scope="col">Number</th>
<th scope="col">Date</th>
<th scope="col">Customer</th>
<th scope="col">Category</th>
<th scope="col">Amount</th>
<th scope="col">Status</th>
</tr>
</thead>
<tbody data-dashboard-recent></tbody>
</table>
</div>
<p class="list-status" data-dashboard-recent-empty hidden>
No receipts yet. Create your first receipt to see recent activity.
</p>
</div>
</div>
<div class="card error-card" data-dashboard-error-panel role="alert" hidden>
<svg class="card-icon icon-danger" aria-hidden="true"><use href="#icon-alert"></use></svg>
<div>
<h2 class="card-title">Could not load dashboard</h2>
<p class="card-description" data-dashboard-error-message></p>
<button class="button button-secondary" type="button" data-dashboard-retry>
Try again
</button>
</div>
</div>
</div>
<div class="grid">
<section class="card" aria-labelledby="application-title">
<div class="card-header">
<div>
<h2 class="card-title" id="application-title">Application</h2>
<p class="card-description">Web app and version information.</p>
</div>
<svg class="card-icon" aria-hidden="true"><use href="#icon-monitor"></use></svg>
</div>
<div class="card-content">
<dl class="info-list">
<div class="info-row">
<dt>Name</dt>
<dd data-field="app-name">—</dd>
</div>
<div class="info-row">
<dt>Version</dt>
<dd data-field="app-version">—</dd>
</div>
<div class="info-row">
<dt>Platform</dt>
<dd data-field="platform">—</dd>
</div>
<div class="info-row">
<dt>Storage</dt>
<dd data-field="storage-type">—</dd>
</div>
</dl>
</div>
</section>
<section class="card" aria-labelledby="storage-title">
<div class="card-header">
<div>
<h2 class="card-title" id="storage-title">Local storage</h2>
<p class="card-description">Browser storage health and usage.</p>
</div>
<svg class="card-icon" aria-hidden="true">
<use href="#icon-hard-drive"></use>
</svg>
</div>
<div class="card-content">
<p class="notice notice-warning" data-storage-warning role="alert" hidden></p>
<dl class="info-list">
<div class="info-row">
<dt>Status</dt>
<dd>
<span class="badge badge-neutral" data-storage-badge>Checking</span>
</dd>
</div>
<div class="info-row">
<dt>Records stored</dt>
<dd data-field="record-count">—</dd>
</div>
<div class="info-row">
<dt>Estimated usage</dt>
<dd data-field="usage-bytes">—</dd>
</div>
<div class="info-row">
<dt>Browser quota</dt>
<dd data-field="quota-bytes">—</dd>
</div>
<div class="info-row">
<dt>Schema</dt>
<dd>
<span class="badge badge-brand" data-schema-version>—</span>
</dd>
</div>
</dl>
</div>
</section>
<section class="card span-2" aria-labelledby="location-title">
<div class="card-header">
<div>
<h2 class="card-title" id="location-title">Storage location</h2>
<p class="card-description">
Data is kept in this browser profile. Clearing site data removes your records.
</p>
</div>
<svg class="card-icon" aria-hidden="true">
<use href="#icon-hard-drive"></use>
</svg>
</div>
<div class="card-content">
<dl class="info-list">
<div class="info-row">
<dt>Storage engine</dt>
<dd data-field="storage-engine">—</dd>
</div>
<div class="info-row">
<dt>Database</dt>
<dd class="mono" data-field="database-path">—</dd>
</div>
<div class="info-row">
<dt>Device</dt>
<dd data-field="device-platform">—</dd>
</div>
</dl>
</div>
</section>
<section class="card span-2" aria-labelledby="foundation-title">
<div class="card-header">
<div>
<h2 class="card-title" id="foundation-title">Foundation status</h2>
<p class="card-description">Phase 1 checks are complete when all items pass.</p>
</div>
<svg class="card-icon" aria-hidden="true"><use href="#icon-layers"></use></svg>
</div>
<div class="card-content">
<ul class="feature-list">
<li>
<svg class="icon icon-success" aria-hidden="true">
<use href="#icon-check"></use>
</svg>
Web app shell and navigation ready
</li>
<li>
<svg class="icon icon-success" aria-hidden="true">
<use href="#icon-check"></use>
</svg>
Browser storage available
</li>
<li>
<svg class="icon icon-success" aria-hidden="true">
<use href="#icon-check"></use>
</svg>
Typed local data service ready
</li>
<li>
<svg class="icon icon-success" aria-hidden="true">
<use href="#icon-check"></use>
</svg>
Production web build ready
</li>
</ul>
</div>
</section>
</div>
</section>
<section
class="page"
id="page-receipts"
data-route="/receipts"
data-route-alias="/receipts/new"
aria-labelledby="receipts-title"
hidden
>
<div class="page-header">
<div>
<h1 class="page-title" id="receipts-title">Receipts</h1>
<p class="page-description">
Create receipts, search your history, print, and update payment status.
</p>
</div>
<div class="page-actions">
<button class="button button-primary" type="button" data-receipt-add>
<svg class="icon" aria-hidden="true"><use href="#icon-plus"></use></svg>
New receipt
</button>
</div>
</div>
<p class="notice" data-receipt-notice role="status" aria-live="polite" hidden></p>
<div class="card form-card" data-receipt-form-panel hidden>
<div class="card-header">
<div>
<h2 class="card-title" data-receipt-form-title>New receipt</h2>
<p class="card-description">
The receipt number is assigned automatically when you save.
</p>
</div>
</div>
<p class="form-notice" data-receipt-form-notice role="status" hidden></p>
<form class="form" data-receipt-form novalidate>
<div class="form-grid">
<label class="field">
<span class="field-label">Category <span class="required">*</span></span>
<select class="input" name="receiptType" data-receipt-input="receiptType">
<option value="rent">Rent</option>
<option value="deposit">Deposit</option>
<option value="maintenance">Maintenance</option>
<option value="utilities">Utilities</option>
<option value="purchase">Purchase</option>
<option value="sale">Sale</option>
<option value="service">Service</option>
<option value="salary">Salary</option>
<option value="commission">Commission</option>
<option value="loan">Loan</option>
<option value="donation">Donation</option>
<option value="other">Other</option>
</select>
<span class="field-error" data-receipt-field-error="receiptType" hidden></span>
</label>
<label class="field">
<span class="field-label">Status</span>
<select class="input" name="status" data-receipt-input="status">
<option value="draft">Draft</option>
<option value="issued" selected>Issued</option>
<option value="paid">Paid</option>
<option value="cancelled">Cancelled</option>
</select>
<span class="field-error" data-receipt-field-error="status" hidden></span>
</label>
<div class="field">
<span class="field-label">Customer</span>
<div class="input-row">
<select class="input" name="customerId" data-receipt-input="customerId">
<option value="">No customer</option>
</select>
<button
class="button button-small button-secondary"
type="button"
data-receipt-customer-new
>
New
</button>
</div>
<span class="field-error" data-receipt-field-error="customerId" hidden></span>
</div>
<div class="field">
<span class="field-label">Property</span>
<div class="input-row">
<select class="input" name="propertyId" data-receipt-input="propertyId">
<option value="">No property</option>
</select>
<button
class="button button-small button-secondary"
type="button"
data-receipt-property-new
>
New
</button>
</div>
<span class="field-error" data-receipt-field-error="propertyId" hidden></span>
</div>
<div class="card inset-card span-2" data-receipt-customer-panel hidden>
<div class="form-grid">
<label class="field">
<span class="field-label">Customer name <span class="required">*</span></span>
<input class="input" type="text" maxlength="200" data-receipt-customer-name />
</label>
<label class="field">
<span class="field-label">Phone</span>
<input class="input" type="tel" maxlength="40" data-receipt-customer-phone />
</label>
</div>
<p class="form-error" data-receipt-customer-error role="alert" hidden></p>
<div class="form-actions">
<button class="button button-small button-primary" type="button" data-receipt-customer-save>
Add customer
</button>
<button class="button button-small button-secondary" type="button" data-receipt-customer-cancel>
Cancel
</button>
</div>
</div>
<div class="card inset-card span-2" data-receipt-property-panel hidden>
<div class="form-grid">
<label class="field">
<span class="field-label">Property name <span class="required">*</span></span>
<input class="input" type="text" maxlength="200" data-receipt-property-name />
</label>
<label class="field">
<span class="field-label">Property type</span>
<select class="input" data-receipt-property-type>
<option value="house">House</option>
<option value="godown">Godown</option>
<option value="shop">Shop</option>
<option value="other">Other</option>
</select>
</label>
</div>
<p class="form-error" data-receipt-property-error role="alert" hidden></p>
<div class="form-actions">
<button class="button button-small button-primary" type="button" data-receipt-property-save>
Add property
</button>
<button class="button button-small button-secondary" type="button" data-receipt-property-cancel>
Cancel
</button>
</div>
</div>
<label class="field">
<span class="field-label">Receipt date <span class="required">*</span></span>
<input class="input" type="date" name="receiptDate" data-receipt-input="receiptDate" />
<span class="field-error" data-receipt-field-error="receiptDate" hidden></span>
</label>
<label class="field">
<span class="field-label">Payment method <span class="required">*</span></span>
<select class="input" name="paymentMethod" data-receipt-input="paymentMethod">
<option value="cash">Cash</option>
<option value="upi">UPI</option>
<option value="bank-transfer">Bank transfer</option>
<option value="cheque">Cheque</option>
<option value="card">Card</option>
<option value="other">Other</option>
</select>
<span class="field-error" data-receipt-field-error="paymentMethod" hidden></span>
</label>
<label class="field">
<span class="field-label">Amount <span class="required">*</span></span>
<input
class="input"
type="number"
min="0"
step="0.01"
name="amount"
inputmode="decimal"
placeholder="0.00"
data-receipt-input="amount"
/>
<span class="field-error" data-receipt-field-error="amount" hidden></span>
</label>
<label class="field">
<span class="field-label" data-receipt-reference-label>Reference number</span>
<input
class="input"
type="text"
maxlength="100"
name="referenceNumber"
data-receipt-input="referenceNumber"
/>
<span class="field-error" data-receipt-field-error="referenceNumber" hidden></span>
</label>
<label class="field">
<span class="field-label">Payment period</span>
<input
class="input"
type="text"
maxlength="100"
placeholder="e.g. November 2026"
name="paymentPeriod"
data-receipt-input="paymentPeriod"
/>
<span class="field-error" data-receipt-field-error="paymentPeriod" hidden></span>
</label>
<label class="field span-2">
<span class="field-label">Description</span>
<input
class="input"
type="text"
maxlength="2000"
name="description"
data-receipt-input="description"
/>
<span class="field-error" data-receipt-field-error="description" hidden></span>
</label>
</div>
<div class="form-section">
<h3 class="section-heading">Category details</h3>
<div class="form-grid" data-receipt-details></div>
</div>
<div class="form-section">
<div class="section-heading-row">
<h3 class="section-heading">Line items</h3>
<button class="button button-small button-secondary" type="button" data-receipt-add-item>
Add item
</button>
</div>
<p class="field-hint">
Optional. When items are present, the receipt total is calculated from them and the amount field is locked.
</p>
<div class="line-items" data-receipt-items></div>
<dl class="totals-list">
<div class="info-row">
<dt>Subtotal</dt>
<dd data-receipt-subtotal>₹0.00</dd>
</div>
<div class="info-row">
<dt>Discount</dt>
<dd data-receipt-discount>₹0.00</dd>
</div>
<div class="info-row totals-row">
<dt>Total</dt>
<dd data-receipt-total>₹0.00</dd>
</div>
<div class="info-row">
<dt>In words</dt>
<dd data-receipt-words>Zero rupees only</dd>
</div>
</dl>
</div>
<label class="field">
<span class="field-label">Notes</span>
<textarea
class="input input-textarea"
rows="3"
maxlength="2000"
name="notes"
data-receipt-input="notes"
></textarea>
<span class="field-error" data-receipt-field-error="notes" hidden></span>
</label>
<p class="form-error" data-receipt-form-error role="alert" hidden></p>
<div class="form-actions">
<button class="button button-primary" type="submit" data-receipt-save>
Save receipt
</button>
<button class="button button-secondary" type="button" data-receipt-cancel>
Cancel
</button>
<span class="draft-status" data-receipt-draft-status hidden></span>
</div>
</form>
</div>
<div class="card" data-receipt-detail-panel hidden>
<div class="card-header">
<div>
<h2 class="card-title" data-receipt-detail-number tabindex="-1">Receipt</h2>
<p class="card-description" data-receipt-detail-meta></p>
</div>
<div class="page-actions">
<span class="badge badge-brand" data-receipt-detail-status>Issued</span>
<button class="button button-small button-secondary" type="button" data-receipt-detail-edit>Edit</button>
<button class="button button-small button-secondary" type="button" data-receipt-detail-duplicate>Duplicate</button>
<button class="button button-small button-secondary" type="button" data-receipt-detail-print>Print / PDF</button>
<button class="button button-small button-secondary" type="button" data-receipt-detail-delete>Delete</button>
<button class="button button-small button-secondary" type="button" data-receipt-detail-close>Back to list</button>
</div>
</div>
<div class="card-content stack">
<div class="receipt-summary">
<div>
<span class="stat-label">Customer</span>
<strong data-receipt-detail-customer>—</strong>
</div>
<div>
<span class="stat-label">Property</span>
<strong data-receipt-detail-property>—</strong>
</div>
<div>
<span class="stat-label">Category</span>
<strong data-receipt-detail-category>—</strong>
</div>
<div>
<span class="stat-label">Total</span>
<strong data-receipt-detail-amount>—</strong>
</div>
</div>
<p class="amount-words" data-receipt-detail-words></p>
<div class="status-actions" data-receipt-status-actions></div>
<dl class="info-list" data-receipt-detail-info></dl>