-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
1483 lines (1335 loc) · 108 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">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
<meta name="description" content="">
<meta name="author" content="damartripamungkas">
<title>dashboard</title>
<!-- Custom fonts for this page-->
<link href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/5.15.3/css/all.min.css" rel="stylesheet"
type="text/css">
<link
href="https://fonts.googleapis.com/css?family=Nunito:200,200i,300,300i,400,400i,600,600i,700,700i,800,800i,900,900i"
rel="stylesheet">
<!-- Custom styles for this page-->
<link href="./page.css" rel="stylesheet">
</head>
<body id="page-top">
<!-- Page Wrapper -->
<div id="wrapper">
<!-- Sidebar -->
<ul class="navbar-nav bg-gradient-dark sidebar sidebar-dark accordion sticky-top h-100" id="accordionSidebar">
<!-- Sidebar - Brand -->
<a class="sidebar-brand d-flex align-items-center justify-content-center" href="index.html">
<!-- <div class="sidebar-brand-icon rotate-n-15"> -->
<i class="fas fa-user-cog"></i>
<!-- </div> -->
<div class="sidebar-brand-text mx-3">DAMARPULSA</div>
</a>
<!-- Divider -->
<hr class="sidebar-divider my-0">
<!-- Nav Item - Dashboard -->
<li class="nav-item active">
<a class="nav-link" href="index.html">
<i class="fas fa-fw fa-tachometer-alt"></i>
<span>Dashboard</span></a>
</li>
<!-- Divider -->
<hr class="sidebar-divider">
<!-- Heading -->
<div class="sidebar-heading">Interface</div>
<!-- Task navbar -->
<li class="nav-item">
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseTask"
aria-expanded="true" aria-controls="collapseTask">
<i class="fas fa-fw fa-tasks"></i>
<span>Task</span>
</a>
<div id="collapseTask" class="collapse" aria-labelledby="headingTask" data-parent="#accordionSidebar">
<div class="bg-white py-2 collapse-inner rounded">
<h6 class="collapse-header">task client order</h6>
<a class="collapse-item" href="#" onclick="moveContentToTaskTask()">task</a>
</div>
</div>
</li>
<!-- Nav Item - Pages Collapse Menu -->
<li class="nav-item">
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseTwo"
aria-expanded="true" aria-controls="collapseTwo">
<i class="fas fa-fw fa-cog"></i>
<span>Admin</span>
</a>
<div id="collapseTwo" class="collapse" aria-labelledby="headingTwo" data-parent="#accordionSidebar">
<div class="bg-white py-2 collapse-inner rounded">
<h6 class="collapse-header">manage data admin</h6>
<a class="collapse-item" href="#" onclick="moveContentToAdminEarnings('annual')">Earnings
Annual</a>
<a class="collapse-item" href="#" onclick="moveContentToAdminEarnings('monthly')">Earnings
Monthly</a>
<a class="collapse-item" href="#" onclick="moveContentToAdminPriceProduct()">Price Product</a>
<!-- <a class="collapse-item" href="#" onclick="renderSweetAlertMaintenance()">Revenue</a> -->
<!-- <a class="collapse-item" href="#" onclick="renderSweetAlertMaintenance()">Projects</a> -->
</div>
</div>
</li>
<!-- Nav Item - Utilities Collapse Menu -->
<li class="nav-item">
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseUtilities"
aria-expanded="true" aria-controls="collapseUtilities">
<i class="fas fa-fw fa-wrench"></i>
<span>Website</span>
</a>
<div id="collapseUtilities" class="collapse" aria-labelledby="headingUtilities"
data-parent="#accordionSidebar">
<div class="bg-white py-2 collapse-inner rounded">
<h6 class="collapse-header">setting landingpage</h6>
<a class="collapse-item" href="#" onclick="moveContentToWebsitePage()">page</a>
</div>
</div>
</li>
<!-- Nav Item - Utilities Collapse Menu -->
<li class="nav-item">
<a class="nav-link collapsed" href="#" data-toggle="collapse" data-target="#collapseMessage"
aria-expanded="true" aria-controls="collapseMessage">
<i class="fas fa-fw fa-envelope"></i>
<span>Message</span>
</a>
<div id="collapseMessage" class="collapse" aria-labelledby="headingMessage"
data-parent="#accordionSidebar">
<div class="bg-white py-2 collapse-inner rounded">
<h6 class="collapse-header">manage message</h6>
<a class="collapse-item" href="#" onclick="moveContentToMessageChatEmail()">chat email</a>
</div>
</div>
</li>
<!-- Divider -->
<hr class="sidebar-divider d-none d-md-block">
<!-- Sidebar Toggler (Sidebar) -->
<div class="text-center d-none d-md-inline">
<button class="rounded-circle border-0" id="sidebarToggle"></button>
</div>
</ul>
<!-- End of Sidebar -->
<!-- Content Wrapper -->
<div id="content-wrapper" class="d-flex flex-column">
<!-- Main Content -->
<div id="content">
<!-- Topbar -->
<nav class="navbar navbar-expand navbar-light bg-white topbar static-top shadow">
<!-- Sidebar Toggle (Topbar) -->
<button id="sidebarToggleTop" class="btn btn-link d-md-none rounded-circle mr-3">
<i class="fa fa-bars"></i>
</button>
<!-- Topbar Search -->
<div class="d-none d-sm-inline-block form-inline mr-auto ml-md-3 my-2 my-md-0 mw-100 navbar-search">
<div class="input-group">
<input id="topbar-search" type="text" class="form-control bg-light border-0 small"
placeholder="2/1/2013 7:37:08 AM" aria-label="Search" aria-describedby="basic-addon2"
disabled>
<div class="input-group-append">
<a class="btn btn-dark disabled"><i class="fas fa-clock-o fa-sm"></i></a>
</div>
</div>
</div>
<!-- Topbar Navbar -->
<ul class="navbar-nav ml-auto">
<!-- Nav Item - Messages -->
<li class="nav-item dropdown no-arrow mx-1">
<a class="nav-link dropdown-toggle" href="#" id="messagesDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-envelope fa-fw"></i>
<!-- Counter - Messages -->
<span id="message-chat-notifications-new-count"
class="badge badge-danger badge-counter"></span>
</a>
<!-- Dropdown - Messages -->
<div class="dropdown-list dropdown-menu dropdown-menu-right shadow animated--grow-in"
aria-labelledby="messagesDropdown">
<h6 class="dropdown-header">
Message Chat
</h6>
<div id="message-chat-notifications"></div>
<!-- <a class="dropdown-item text-center small text-gray-500"
href="index.html#message-chat-table">Read More Messages</a> -->
</div>
</li>
<div class="topbar-divider d-none d-sm-block"></div>
<!-- Nav Item - User Information -->
<li class="nav-item dropdown no-arrow">
<a class="nav-link dropdown-toggle" href="#" id="userDropdown" role="button"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<div id="navbar-profile"></div>
</a>
<!-- Dropdown - User Information -->
<div class="dropdown-menu dropdown-menu-right shadow animated--grow-in"
aria-labelledby="userDropdown">
<a class="dropdown-item" onclick="moveContentToProfileProfile()">
<i class="fas fa-user fa-sm fa-fw mr-2 text-gray-400"></i>
Profile
</a>
<a class="dropdown-item" onclick="moveContentToProfileActivityLog()">
<i class="fas fa-list fa-sm fa-fw mr-2 text-gray-400"></i>
Activity Log
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#" data-toggle="modal" data-target="#logoutModal">
<i class="fas fa-sign-out-alt fa-sm fa-fw mr-2 text-gray-400"></i>
Logout
</a>
</div>
</li>
</ul>
</nav>
<!-- End of Topbar -->
<div class="bg-light" id="padding-begin-page-content" style="padding: 12px;"></div>
<!-- Begin Page Content -->
<div class="container-fluid" id="container-fluid">
<!-- Page Heading -->
<div class="d-sm-flex align-items-center justify-content-between mb-4">
<h1 class="h3 mb-0 text-gray-800">Dashboard</h1>
<div class="btn-toolbar" role="toolbar">
<div class="btn-group mr-2" role="group" aria-label="Second group">
<button type="button" class="btn btn-sm btn-dark shadow-sm" onclick="swithToDarkMode()">
Swith Dark Mode
</button>
</div>
<div class="btn-group" role="group" aria-label="Third group">
<button type="button" class="btn btn-sm btn-dark shadow-sm"
onclick="generatePdfChart(['myAreaChart', 'myPieChart'])">
Generate Report
</button>
</div>
</div>
<!-- <a href="#" class="d-none d-sm-inline-block btn btn-sm btn-dark shadow-sm"
onclick="generatePdfChart(['myAreaChart', 'myPieChart'])">
Generate Report
</a> -->
</div>
<!-- Content Row -->
<div class="row">
<!-- Earnings (Monthly) Card Example -->
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-dark shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-dark text-uppercase mb-1">
Earnings (Monthly)</div>
<div id="card-earning-monthly-1"
class="h5 mb-0 font-weight-bold text-gray-800">$40,000</div>
</div>
<div class="col-auto">
<i class="fas fa-calendar fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
<!-- Earnings (Monthly) Card Example -->
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-success shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-success text-uppercase mb-1">
Earnings (Annual)</div>
<div id="card-earning-monthly-2"
class="h5 mb-0 font-weight-bold text-gray-800">$215,000</div>
</div>
<div class="col-auto">
<i class="fas fa-dollar-sign fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
<!-- Earnings (Monthly) Card Example -->
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-info shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-info text-uppercase mb-1">Task
</div>
<div class="row no-gutters align-items-center">
<div class="col-auto">
<div id="card-earning-monthly-3"
class="h5 mb-0 mr-3 font-weight-bold text-gray-800">50%</div>
</div>
<div class="col">
<div id="card-earning-monthly-3_1"
class="progress progress-sm mr-2">
<div class="progress-bar bg-info" role="progressbar"
style="width: 50%" aria-valuenow="50" aria-valuemin="0"
aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
<div class="col-auto">
<i class="fas fa-clipboard-list fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
<!-- Pending Requests Card Example -->
<div class="col-xl-3 col-md-6 mb-4">
<div class="card border-left-warning shadow h-100 py-2">
<div class="card-body">
<div class="row no-gutters align-items-center">
<div class="col mr-2">
<div class="text-xs font-weight-bold text-warning text-uppercase mb-1">
Pending Message</div>
<div id="card-earning-monthly-4"
class="h5 mb-0 font-weight-bold text-gray-800">1</div>
</div>
<div class="col-auto">
<i class="fas fa-comments fa-2x text-gray-300"></i>
</div>
</div>
</div>
</div>
</div>
</div>
<!-- Content Row -->
<div class="row">
<!-- Area Chart -->
<div class="col-xl-8 col-lg-7">
<div class="card shadow mb-4">
<!-- Card Header - Dropdown -->
<div
class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-dark">Earnings Overview</h6>
<div class="dropdown no-arrow">
<a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
</a>
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in"
aria-labelledby="dropdownMenuLink">
<div class="dropdown-header">Dropdown Header:</div>
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div>
</div>
<!-- Card Body -->
<div class="card-body">
<div class="chart-area">
<canvas id="myAreaChart"></canvas>
</div>
</div>
</div>
</div>
<!-- Pie Chart -->
<div class="col-xl-4 col-lg-5">
<div class="card shadow mb-4">
<!-- Card Header - Dropdown -->
<div
class="card-header py-3 d-flex flex-row align-items-center justify-content-between">
<h6 class="m-0 font-weight-bold text-dark">Revenue Sources</h6>
<div class="dropdown no-arrow">
<a class="dropdown-toggle" href="#" role="button" id="dropdownMenuLink"
data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<i class="fas fa-ellipsis-v fa-sm fa-fw text-gray-400"></i>
</a>
<div class="dropdown-menu dropdown-menu-right shadow animated--fade-in"
aria-labelledby="dropdownMenuLink">
<div class="dropdown-header">Dropdown Header:</div>
<a class="dropdown-item" href="#">Action</a>
<a class="dropdown-item" href="#">Another action</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" href="#">Something else here</a>
</div>
</div>
</div>
<!-- Card Body -->
<div class="card-body">
<div class="chart-pie pt-4 pb-2">
<canvas id="myPieChart"></canvas>
</div>
<div class="mt-4 text-center small">
<span class="mr-2">
<i class="fas fa-circle text-dark"></i> Direct
</span>
<span class="mr-2">
<i class="fas fa-circle text-success"></i> Social
</span>
<span class="mr-2">
<i class="fas fa-circle text-info"></i> Referral
</span>
</div>
</div>
</div>
</div>
</div>
<!-- Content Row -->
<div class="row">
<!-- Content Column -->
<div class="col-lg-6 mb-4">
<!-- Project Card Example -->
<div class="card shadow mb-4 h-100">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-dark">Projects Management</h6>
</div>
<div id="project-process-percentace" class="card-body h-100">
<h4 class="small font-weight-bold">Server Memory Usage <span
class="float-right">40%</span></h4>
<div class="progress mb-4">
<div class="progress-bar bg-danger" role="progressbar" style="width: 40%"
aria-valuenow="40" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<h4 class="small font-weight-bold">Server Internet Speed <span
class="float-right">20MBps</span></h4>
<div class="progress mb-4">
<div class="progress-bar bg-warning" role="progressbar" style="width: 20%"
aria-valuenow="20" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<h4 class="small font-weight-bold">Server Storage Usage <span
class="float-right">70%</span></h4>
<div class="progress mb-4">
<div class="progress-bar" role="progressbar" style="width: 70%"
aria-valuenow="70" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<h4 class="small font-weight-bold">Payout Details <span
class="float-right">50%</span></h4>
<div class="progress mb-4">
<div class="progress-bar bg-info" role="progressbar" style="width: 50%"
aria-valuenow="50" aria-valuemin="0" aria-valuemax="100"></div>
</div>
<h4 class="small font-weight-bold">Account Setup <span
class="float-right">Complete!</span></h4>
<div class="progress">
<div class="progress-bar bg-success" role="progressbar" style="width: 100%"
aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div>
</div>
</div>
</div>
</div>
<div class="col-lg-6 mb-4">
<!-- Illustrations or preview website -->
<div class="card shadow mb-4 h-100">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-dark">Preview Website Landingpage</h6>
</div>
<div class="card-body">
<div class="embed-responsive embed-responsive-16by9 h-100">
<embed class="embed-responsive-item" src="https://jnbo29.csb.app/"
allowfullscreen>
</embed>
</div>
</div>
</div>
</div>
<div class="col-lg-12 mb-4">
<!-- Project Card Example -->
<!-- <div class="card shadow mb-4">
<div class="card-header py-3">
<h6 class="m-0 font-weight-bold text-dark">Message chat</h6>
</div>
<div class="card-body">
<div class="table-responsive">
<table class="table table-hover">
<thead>
<tr>
<th scope="col">#</th>
<th scope="col">Name</th>
<th scope="col">Email</th>
<th scope="col">Message</th>
<th scope="col">time</th>
<th scope="col">perform</th>
</tr>
</thead>
<tbody id="message-chat-table"></tbody>
</table> -->
<!-- Modal Message-Chat-Table -->
<!-- <div class="modal fade" id="modal-button-answer-from-message-chat-table"
tabindex="-1" role="dialog"
aria-labelledby="modal-button-answer-from-message-chat-table-label"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title"
id="modal-button-answer-from-message-chat-table-label">
Answer email message</h5>
<button type="button" class="close" data-dismiss="modal"
aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">
<div class="form-group">
<label for="recipient-name"
class="col-form-label">From</label>
<input type="text"
id="modal-button-answer-from-message-chat-table-modal-from"
class="form-control" disabled>
</div>
<div class="form-group">
<label for="message-value" class="col-form-label">Message
value</label>
<input type="text"
id="modal-button-answer-from-message-chat-table-modal-message-value"
class="form-control text-truncate" disabled>
</div>
<div class="form-group">
<label for="message-text" class="col-form-label"
id="modal-button-answer-from-message-chat-table-modal-yourmessage">Your
message</label>
<textarea class="form-control"
id="modal-button-answer-from-message-chat-table-modal-text-area-your-message"></textarea>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-danger"
data-dismiss="modal">Close</button>
<button id="send-answer-email" type="submit"
class="btn btn-success"
onclick="sendMessageEmail()">Send</button>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div> -->
</div>
</div>
</div>
<!-- /.container-fluid -->
</div>
<!-- End of Main Content -->
<!-- Footer -->
<footer class="sticky-footer bg-white">
<div class="container my-auto">
<div class="copyright text-center my-auto">
<span>Copyright © Dashboard 2022</span>
</div>
</div>
</footer>
<!-- End of Footer -->
</div>
<!-- End of Content Wrapper -->
</div>
<!-- End of Page Wrapper -->
<!-- Scroll to Top Button-->
<a class="scroll-to-top rounded" href="#page-top">
<i class="fas fa-angle-up"></i>
</a>
<!-- Logout Modal-->
<div class="modal fade" id="logoutModal" tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel"
aria-hidden="true">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<h5 class="modal-title" id="exampleModalLabel">Ready to Leave?</h5>
<button class="close" type="button" data-dismiss="modal" aria-label="Close">
<span aria-hidden="true">×</span>
</button>
</div>
<div class="modal-body">Select "Logout" below if you are ready to end your current session.</div>
<div class="modal-footer">
<button class="btn btn-secondary" type="button" data-dismiss="modal">Cancel</button>
<a class="btn btn-dark" data-dismiss="modal" onclick="resetAllContentToLoginPage()">Logout</a>
</div>
</div>
</div>
</div>
<!-- Bootstrap core JavaScript-->
<script src="https://code.jquery.com/jquery-3.6.0.min.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/umd/popper.min.js"
integrity="sha384-9/reFTGAW83EW2RDu2S0VKaIzap3H66lZH81PoYlFhbGU+6BZp6G7niu735Sk7lN"
crossorigin="anonymous"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/dist/js/bootstrap.min.js"
integrity="sha384-VHvPCCyXqtD5DqJeNxl2dtTyhF78xXNXdkwX1CZeRusQfRKp+tA7hAShOK/B/fQ2"
crossorigin="anonymous"></script>
<!-- Core plugin JavaScript-->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery-easing/1.4.1/jquery.easing.min.js"></script>
<!--JSPDF umd CDN-->
<script src="https://unpkg.com/[email protected]/dist/jspdf.umd.min.js"></script>
<!--JSPDF-autotable CDN-->
<script src="https://unpkg.com/[email protected]/dist/jspdf.plugin.autotable.js"></script>
<!-- Page level plugins -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.9.4/Chart.min.js"></script>
<!-- sweetalert 2 -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>
<!-- axios request -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/axios/0.26.1/axios.min.js"></script>
<!-- coingecko chart widget -->
<script src="https://widgets.coingecko.com/coingecko-coin-price-chart-widget.js"></script>
<!-- chart-demo.js -->
<script lang="text/javascript">
Chart.defaults.global.defaultFontFamily = 'Nunito', '-apple-system,system-ui,BlinkMacSystemFont,"Segoe UI",Roboto,"Helvetica Neue",Arial,sans-serif';
Chart.defaults.global.defaultFontColor = '#858796';
// chart area demo
// Area Chart Example
function number_format(n, e, r, t) { n = (n + "").replace(",", "").replace(" ", ""); var i = isFinite(+n) ? +n : 0, a = isFinite(+e) ? Math.abs(e) : 0, o = void 0 === t ? "," : t, h = void 0 === r ? "." : r, l = ""; return (l = (a ? function (n, e) { var r = Math.pow(10, e); return "" + Math.round(n * r) / r }(i, a) : "" + Math.round(i)).split("."))[0].length > 3 && (l[0] = l[0].replace(/\B(?=(?:\d{3})+(?!\d))/g, o)), (l[1] || "").length < a && (l[1] = l[1] || "", l[1] += new Array(a - l[1].length + 1).join("0")), l.join(h) }
var randomNumber = r => Math.random().toString().slice(2, 5) * r;
var runChartAreaExample = () => { var r = document.getElementById("myAreaChart"); new Chart(r, { type: "line", data: { labels: ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"], datasets: [{ label: "Earnings", lineTension: .3, backgroundColor: "rgba(78, 115, 223, 0.05)", borderColor: "rgba(78, 115, 223, 1)", pointRadius: 3, pointBackgroundColor: "rgba(78, 115, 223, 1)", pointBorderColor: "rgba(78, 115, 223, 1)", pointHoverRadius: 3, pointHoverBackgroundColor: "rgba(78, 115, 223, 1)", pointHoverBorderColor: "rgba(78, 115, 223, 1)", pointHitRadius: 10, pointBorderWidth: 2, data: [0, randomNumber(100), randomNumber(100), randomNumber(100), randomNumber(100), randomNumber(100), randomNumber(100), randomNumber(100), randomNumber(100), randomNumber(100), randomNumber(100), randomNumber(100)] }] }, options: { maintainAspectRatio: !1, layout: { padding: { left: 10, right: 25, top: 25, bottom: 0 } }, scales: { xAxes: [{ time: { unit: "date" }, gridLines: { display: !1, drawBorder: !1 }, ticks: { maxTicksLimit: 7 } }], yAxes: [{ ticks: { maxTicksLimit: 5, padding: 10, callback: function (r, o, e) { return "$" + number_format(r) } }, gridLines: { color: "rgb(234, 236, 244)", zeroLineColor: "rgb(234, 236, 244)", drawBorder: !1, borderDash: [2], zeroLineBorderDash: [2] } }] }, legend: { display: !1 }, tooltips: { backgroundColor: "rgb(255,255,255)", bodyFontColor: "#858796", titleMarginBottom: 10, titleFontColor: "#6e707e", titleFontSize: 14, borderColor: "#dddfeb", borderWidth: 1, xPadding: 15, yPadding: 15, displayColors: !1, intersect: !1, mode: "index", caretPadding: 10, callbacks: { label: function (r, o) { return (o.datasets[r.datasetIndex].label || "") + ": $" + number_format(r.yLabel) } } } } }); };
///////////////////////////////////////////////////////////////////
// Pie Chart Example
function shuffle(o) { let r, a = o.length; for (; 0 != a;)r = Math.floor(Math.random() * a), a--, [o[a], o[r]] = [o[r], o[a]]; return o } var runChartPieExample = () => { var o = document.getElementById("myPieChart"); new Chart(o, { type: "doughnut", data: { labels: shuffle(["Direct", "Referral", "Social"]), datasets: [{ data: shuffle([55, 30, 15]), backgroundColor: ["#4e73df", "#1cc88a", "#36b9cc"], hoverBackgroundColor: ["#2e59d9", "#17a673", "#2c9faf"], hoverBorderColor: "rgba(234, 236, 244, 1)" }] }, options: { maintainAspectRatio: !1, tooltips: { backgroundColor: "rgb(255,255,255)", bodyFontColor: "#858796", borderColor: "#dddfeb", borderWidth: 1, xPadding: 15, yPadding: 15, displayColors: !1, caretPadding: 10 }, legend: { display: !1 }, cutoutPercentage: 80 } }) };
</script>
<!-- page.min.js -->
<script lang="text/javascript">
!function (l) { "use strict"; l("#sidebarToggle, #sidebarToggleTop").on("click", function (e) { l("body").toggleClass("sidebar-toggled"), l(".sidebar").toggleClass("toggled"), l(".sidebar").hasClass("toggled") && l(".sidebar .collapse").collapse("hide") }), l(window).resize(function () { l(window).width() < 768 && l(".sidebar .collapse").collapse("hide"), l(window).width() < 480 && !l(".sidebar").hasClass("toggled") && (l("body").addClass("sidebar-toggled"), l(".sidebar").addClass("toggled"), l(".sidebar .collapse").collapse("hide")) }), l("body.fixed-nav .sidebar").on("mousewheel DOMMouseScroll wheel", function (e) { var o; 768 < l(window).width() && (o = (o = e.originalEvent).wheelDelta || -o.detail, this.scrollTop += 30 * (o < 0 ? 1 : -1), e.preventDefault()) }), l(document).on("scroll", function () { 100 < l(this).scrollTop() ? l(".scroll-to-top").fadeIn() : l(".scroll-to-top").fadeOut() }), l(document).on("click", "a.scroll-to-top", function (e) { var o = l(this); l("html, body").stop().animate({ scrollTop: l(o.attr("href")).offset().top }, 1e3, "easeInOutExpo"), e.preventDefault() }) }(jQuery);
</script>
<script lang="text/javascript">
const randomStringText = (length) => { var result = ''; var characters = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789'; var charactersLength = characters.length; for (var i = 0; i < length; i++) { result += characters.charAt(Math.floor(Math.random() * charactersLength)); } return result; };
// content admin/earnings
let dataContentAdminEarnings = {
annual: [
{
id: "1",
earning: 300000000,
datefrom: "01/01/2021",
dateto: "01/01/2022",
}
],
monthly: [
{
id: "1",
earning: 5000000,
datefrom: "01/01/2021",
dateto: "01/02/2021",
}
]
};
// content task/task
let dataContentTaskTask = [
{
process: "50%",
nama: "membuat online store",
membutuhkan: "backend, frontend",
pemesan: "joko",
harga: "5000000",
deadline: "01/06/2022",
},
{
process: "90%",
nama: "membuat landing page",
membutuhkan: "frontend",
pemesan: "anwar",
harga: "500000",
deadline: "01/04/2022",
},
{
process: "80%",
nama: "bot scrapper google",
membutuhkan: "backend",
pemesan: "riki",
harga: "10000000",
deadline: "14/05/2022",
}
];
let activityLogRecord = [
{
page: "message-chatemail",
execution: "answer email message to [email protected]",
date: "1/1/2022 15.00.00"
},
{
page: "message-chatemail",
execution: "answer email message to [email protected]",
date: "2/1/2022 15.00.00"
}
];
let listDataMessageChatTable = [
{
name: 'otto',
email: '[email protected]',
message: 'ini contoh isi email',
waktu: '01/02/2022'
},
];
let listDataMessageChatNotifications = [
{
name: 'otto',
email: '[email protected]',
message: 'baik terimakasih dana sudah masuk ke rekening',
waktu: '1',
imgSrc: 'https://bootstrapious.com/i/snippets/sn-chat/avatar.svg'
},
{
name: 'alex',
email: '[email protected]',
message: 'nanti saya akan cv di sini',
waktu: '1',
imgSrc: 'https://cdn-icons-png.flaticon.com/512/3011/3011270.png'
}
];
let dataContentProfileProfile = {
profileUrlOrBase64: "",
name: "",
phone: "",
email: "",
address: "",
dateofbirth: ""
};
const getDataFromBackend = async (path) => {
try {
const data = await axios.get(`https://ggu18j.sse.codesandbox.io/${path}`);
console.log(data.data[path]);
return data.data[path];
} catch (err) {
console.log(err);
}
};
const saveDataToBackend = async (path, json) => {
try {
const data = await axios.post(`https://ggu18j.sse.codesandbox.io/${path}`, json);
return data.data[path];
} catch (err) {
console.log(err);
}
};
// set profile images and navbar on navbar
const setDataProfileOnNavbar = (name, imgSrc, isLoad) => {
const getId = document.getElementById("navbar-profile");
if (isLoad === false) {
getId.className = "";
getId.innerHTML = `
<span class="mr-2 d-none d-lg-inline text-gray-600 small">${name}</span>
<img class="img-profile rounded-circle" src="${imgSrc}">
`;
} else if (isLoad === true) {
getId.innerHTML = "";
getId.className = "spinner-border";
}
};
// set data navbar first time
(async () => {
setDataProfileOnNavbar(undefined, undefined, true);
const getData1 = await getDataFromBackend("profile");
setDataProfileOnNavbar(getData1.name, getData1.profileUrlOrBase64, false);
})();
const hiddenModal = (id, funcMove, funcParams) => setTimeout(() => { $(`#${id}`).modal('hide'); funcMove(funcParams) }, 900);
// render sweetalert maintenance
const renderSweetAlertMaintenance = () => {
Swal.fire('Net Not!', 'Under Maintenance System!', 'error');
};
// render sweetalert failed
const renderSweetAlertFailed = () => {
Swal.fire('Oh no!', 'Failed Opened!', 'error');
};
// render sweetalert success
const renderSweetAlertSuccess = () => {
Swal.fire('Good job!', 'Success execution!', 'success');
};
// aswer message email from other people
const sendMessageEmail = () => {
Swal.fire('Good job!', 'Success send email!', 'success');
const testFunc = () => { };
hiddenModal("modal-button-answer-from-message-chat-table", testFunc);
};
// message chat table button answer and modal
const setValueFromModalButtonAnswerTableMessageChat = (_id) => {
const idModalInputFromFromButtonAnswer = document.getElementById('modal-button-answer-from-message-chat-table-modal-from');
const idModalInputMsgSenderFromButtonAnswer = document.getElementById('modal-button-answer-from-message-chat-table-modal-message-value');
const idModalInputTextAreaYourMessageButtonAnswer = document.getElementById('modal-button-answer-from-message-chat-table-modal-text-area-your-message');
const searchValueArrWithNumber = listDataMessageChatTable[_id];
idModalInputFromFromButtonAnswer.value = searchValueArrWithNumber.email;
idModalInputMsgSenderFromButtonAnswer.value = searchValueArrWithNumber.message;
idModalInputTextAreaYourMessageButtonAnswer.value = "";
};
// message chat table
const renderContentTableMessageChat = (_newData = {}) => {
_newData === null ? null : listDataMessageChatTable.push(_newData);
let temporaryText = "";
const lengthListData = listDataMessageChatTable.length;
const idTableMsgChat = document.getElementById('message-chat-table');
for (let index = 0; index < lengthListData; index++) {
const element = listDataMessageChatTable[index];
temporaryText = temporaryText.concat(` <tr> <th scope="row">${index + 1}</th> <td>${element.name}</td><td>${element.email}</td><td class="text-truncate">${element.message}</td><td>${element.waktu}</td><td class="btn btn-dark btn-sm" id="${index}" data-toggle="modal" data-target="#modal-button-answer-from-message-chat-table" onClick="setValueFromModalButtonAnswerTableMessageChat(this.id)">answer</td></tr>`);
if ((index + 1) == lengthListData) {
idTableMsgChat.innerHTML = temporaryText;
listDataMessageChatTable = lengthListData >= 10 ? [] : listDataMessageChatTable;
return true;
}
}
};
// message chat notifications
const renderContentNotificationsMessageChat = (_newData = {}) => {
_newData === null ? null : listDataMessageChatNotifications.push(_newData);
let temporaryText = "";
const lengthListData = listDataMessageChatNotifications.length;
const idNotifMsgChat = document.getElementById('message-chat-notifications');
const idNotifNewCount = document.getElementById('message-chat-notifications-new-count');
const idCardEarning4 = document.getElementById('card-earning-monthly-4');
for (let index = 0; index < lengthListData; index++) {
const element = listDataMessageChatNotifications[index];
temporaryText = temporaryText.concat(`<a class="dropdown-item d-flex align-items-center" href="#" onclick="moveContentToMessageChatEmail()"> <div class="dropdown-list-image mr-3"> <img class="rounded-circle" src="${element.imgSrc}" alt="..."> <div class="status-indicator bg-success"></div></div><div class="font-weight-bold"> <div class="text-truncate">${element.message}</div><div class="small text-gray-500">${element.email}· ${element.waktu}m</div></div></a>`);
idNotifNewCount.innerText = index + 1;
idCardEarning4.innerText = index + 1;
if ((index + 1) == lengthListData) {
idNotifMsgChat.innerHTML = temporaryText;
listDataMessageChatNotifications = lengthListData >= 6 ? [] : listDataMessageChatNotifications;
return true;
}
}
};
// setInterval(() => {
// const nameGenerate = randomStringText(5);
// const emailGenerate = `${randomStringText(5)}@website.com`;
// const messageGenerate = randomStringText(20);
// const waktuDateTableGenerate = `${Math.random().toString().slice(2, 4)}/${Math.random().toString().slice(2, 4)}/${Math.random().toString().slice(2, 6)}`;
// const waktuMenitNotifGenerate = '1';
// renderContentTableMessageChat({ name: nameGenerate, message: messageGenerate, email: emailGenerate, waktu: waktuDateTableGenerate });
// renderContentNotificationsMessageChat({ name: nameGenerate, message: messageGenerate, email: emailGenerate, waktu: waktuMenitNotifGenerate });
// }, 1000);
</script>
<script lang="text/javascript">
const getRandomNumberBetween = (min, max) => Math.floor(Math.random() * (max - min + 1) + min);
const setValueCardTextOnPage = () => {
const _annualEarningLast = dataContentAdminEarnings.annual;
const _monthlyEarningLast = dataContentAdminEarnings.monthly;
const annualEarningLast = parseInt(_annualEarningLast[_annualEarningLast.length - 1].earning);
const monthlyEarningLast = parseInt(_monthlyEarningLast[_monthlyEarningLast.length - 1].earning);
const valueFor_3 = dataContentTaskTask[dataContentTaskTask.length - 1].process; // getRandomNumberBetween(1, 100);
document.getElementById('card-earning-monthly-1').innerText = `Rp${monthlyEarningLast.toLocaleString("id", "ID")}`;
document.getElementById('card-earning-monthly-2').innerText = `Rp${annualEarningLast.toLocaleString("id", "ID")}`;
document.getElementById('card-earning-monthly-3').innerText = `${valueFor_3}`;
document.getElementById('card-earning-monthly-3_1').innerHTML = `<div class="progress-bar bg-info" role="progressbar" style="width: ${valueFor_3}" aria-valuenow="${valueFor_3.replace("%", "")}" aria-valuemin="0" aria-valuemax="100"></div>`;
};
const setValueProcessPercentaseProjectCard = () => {
const getId = document.getElementById('project-process-percentace');
const getNumber_1 = getRandomNumberBetween(1, 100);
const getNumber_2 = getRandomNumberBetween(1, 100);
const getNumber_3 = getRandomNumberBetween(1, 100);
const getNumber_4 = getRandomNumberBetween(1, 100);
getId.innerHTML = ` <h4 class="small font-weight-bold">Server Memory Usage <span class="float-right">${getNumber_1}%</span></h4> <div class="progress mb-4"> <div class="progress-bar bg-danger" role="progressbar" style="width: ${getNumber_1}%" aria-valuenow="${getNumber_1}" aria-valuemin="0" aria-valuemax="100"></div></div><h4 class="small font-weight-bold">Server Internet Speed <span class="float-right">${getNumber_2}MBps</span></h4> <div class="progress mb-4"> <div class="progress-bar bg-warning" role="progressbar" style="width: ${getNumber_2}%" aria-valuenow="${getNumber_2}" aria-valuemin="0" aria-valuemax="100"></div></div><h4 class="small font-weight-bold">Server Storage Usage <span class="float-right">${getNumber_3}%</span></h4> <div class="progress mb-4"> <div class="progress-bar" role="progressbar" style="width: ${getNumber_3}%" aria-valuenow="${getNumber_3}" aria-valuemin="0" aria-valuemax="100"></div></div><h4 class="small font-weight-bold">Payout Details <span class="float-right">${getNumber_4}%</span></h4> <div class="progress mb-4"> <div class="progress-bar bg-info" role="progressbar" style="width: ${getNumber_4}%" aria-valuenow="${getNumber_4}" aria-valuemin="0" aria-valuemax="100"></div></div><h4 class="small font-weight-bold">Account Setup <span class="float-right">Complete!</span></h4> <div class="progress"> <div class="progress-bar bg-success" role="progressbar" style="width: 100%" aria-valuenow="100" aria-valuemin="0" aria-valuemax="100"></div></div>`;
};
setValueCardTextOnPage();
</script>
<script lang="text/javascript">
// <!-- change content to another content on this page -->
const idContainerFluid = document.getElementById("container-fluid");
const idBodyPageTop = document.getElementById("page-top");
const structHeadTableTaskTask = ["#", "process", "nama", "membutuhkan", "pemesan", "harga", "deadline", "perform"];
const structHeadTableAdminEarnings = ["#", "earning", "date from", "date to", "perform"];
const monthNames = ["Januari", "Februari", "Maret", "April", "Mey", "Juni", "July", "Agustus", "September", "Oktober", "November", "Desember"];
let lastIndexDataContentTaskTaskEdit;
let lastIndexDataContentAdminEarningsEdit;
let disableTimeOnTopBarSearch = false;
const swithToDarkMode = () => {
let togle = false;
const navBar = document.querySelector("nav");
const searchButtonNavbar = document.querySelector(".input-group-append");
const myNameOnNavbar = document.querySelectorAll("span")[6];
const paddingBeginPageContent = document.getElementById("padding-begin-page-content");
const textTitle = document.querySelector("h1");
const buttonOnHead = document.querySelector(".btn-toolbar");
const footerAbove = document.querySelector("footer");
idContainerFluid.classList.forEach(async (it) => {
if (it == "bg-dark" && togle === false) {
searchButtonNavbar.innerHTML = `<a class="btn btn-dark disabled"></a>`;
myNameOnNavbar.classList.replace("text-white", "text-gray-600");
paddingBeginPageContent.className = "bg-light";
navBar.classList.replace("bg-dark", "bg-white");
textTitle.classList.replace("text-white", "text-gray-800");
buttonOnHead.children[0].children[0].textContent = "Swith Dark Mode";
buttonOnHead.children[0].children[0].classList.replace("btn-light", "btn-dark");
buttonOnHead.children[1].children[0].classList.replace("btn-light", "btn-dark");
idContainerFluid.classList.remove("bg-dark");
footerAbove.classList.replace("bg-dark", "bg-white");
footerAbove.children[0].children[0].innerHTML = `<span>Copyright © Dashboard 2022</span>`;
} else if (it != "bg-dark" && togle === false) {
searchButtonNavbar.innerHTML = `<a class="btn btn-light disabled"></a>`;
myNameOnNavbar.classList.replace("text-gray-600", "text-white");
paddingBeginPageContent.className = "bg-dark";
navBar.classList.replace("bg-white", "bg-dark");
textTitle.classList.replace("text-gray-800", "text-white");
buttonOnHead.children[0].children[0].textContent = "Swith Light Mode";
buttonOnHead.children[0].children[0].classList.replace("btn-dark", "btn-light");
buttonOnHead.children[1].children[0].classList.replace("btn-dark", "btn-light");
idContainerFluid.classList.add("bg-dark");
footerAbove.classList.replace("bg-white", "bg-dark");
footerAbove.children[0].children[0].innerHTML = `<span class="text-white">Copyright © Dashboard 2022</span>`;
}
})
};
const setValueFromModalButtonEditTableTaskTask = (index) => {
lastIndexDataContentTaskTaskEdit = index;
const getData = dataContentTaskTask[index];
document.getElementById("modal-button-edit-from-task-task-table-process").value = getData.process;
document.getElementById("modal-button-edit-from-task-task-table-nama").value = getData.nama;
document.getElementById("modal-button-edit-from-task-task-table-membutuhkan").value = getData.membutuhkan;
document.getElementById("modal-button-edit-from-task-task-table-pemesan").value = getData.pemesan;
document.getElementById("modal-button-edit-from-task-task-table-harga").value = parseInt(getData.harga);
document.getElementById("modal-button-edit-from-task-task-table-deadline").value = getData.deadline.split("/").reverse().toString().replace(/,/g, "/").replace(/\//g, "-");
};
const setValueFromModalButtonEditTableAdminEarnings = (content, index) => {
lastIndexDataContentAdminEarningsEdit = index;
const getData = (content == "annual" ? dataContentAdminEarnings.annual : dataContentAdminEarnings.monthly)[index];
document.getElementById("modal-button-edit-data-earning-table-earning").value = parseInt(getData.earning);
document.getElementById("modal-button-edit-data-earning-table-date from").value = getData.datefrom.split("/").reverse().toString().replace(/,/g, "/").replace(/\//g, "-");
document.getElementById("modal-button-edit-data-earning-table-date to").value = getData.dateto.split("/").reverse().toString().replace(/,/g, "/").replace(/\//g, "-");
};
const updateDataContentAdminEarnings = (content) => {
const earning = document.getElementById("modal-button-edit-data-earning-table-earning").value;
const datefrom = document.getElementById("modal-button-edit-data-earning-table-date from").value;
const dateto = document.getElementById("modal-button-edit-data-earning-table-date to").value;
if (earning.length == 0 || datefrom.length == 0 || dateto.length == 0) {
Swal.fire('All fields must be filled', '', 'error');
} else {
(content == "annual" ? dataContentAdminEarnings.annual : dataContentAdminEarnings.monthly)[lastIndexDataContentAdminEarningsEdit] = {
earning: parseInt(earning),
datefrom: datefrom.split("-").reverse().toString().replace(/,/g, "/"),
dateto: dateto.split("-").reverse().toString().replace(/,/g, "/"),
};
activityLogRecord.push({
page: `admin-earnings_${content}`,
execution: `edit data`,
date: new Date().toLocaleString()
});
Swal.fire('Edit data success', '', 'success');
hiddenModal("modal-button-edit-data-earning-table", moveContentToAdminEarnings, content);
}
};