Subversion Repositories SmartDukaan

Rev

Rev 34513 | Rev 34525 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
34437 ranu 1
<!DOCTYPE html>
2
<html lang="en">
3
<head>
4
    <meta charset="UTF-8">
5
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
    <meta name="description" content="Smart Dukaan FOCO Dashboard">
7
    <meta name="author" content="smartdukaan">
8
 
9
    <meta name="referer" content="no-referer">
10
    <meta name="referrer" content="no-referrer">
11
 
12
    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
13
    <link rel="shortcut icon" href="assets/images/icons/favicon.png">
14
 
15
    <title>Smart Dukaan - FOCO Dashboard</title>
16
 
17
    <!-- Bootstrap CSS -->
18
    <!-- bootstrap theme -->
19
    <!--external css-->
20
    <!-- font icon -->
21
    <link href="resources/css/elegant-icons-style.css" rel="stylesheet"/>
22
    <link href="resources/css/font-awesome.min.css" rel="stylesheet"/>
23
    <!-- full calendar css-->
24
    <!-- owl carousel -->
25
    <link rel="stylesheet" href="resources/css/owl.carousel.css" type="text/css">
26
    <link href="resources/css/jquery-jvectormap-1.2.2.css" rel="stylesheet">
27
    <!-- Custom styles -->
28
    <link href="resources/css/widgets.css" rel="stylesheet">
29
    <link href="resources/css/style.css?v=${cssVersion}" rel="stylesheet">
30
    <link href="resources/css/card.css?v=${cssVersion}" rel="stylesheet">
31
    <link href="resources/css/brand-logo.css?v=${cssVersion}" rel="stylesheet">
32
    <link href="resources/css/style-responsive.css?v=${cssVersion}" rel="stylesheet"/>
33
    <link href="resources/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
34
    <link type="text/css" href="resources/css/bootstrap.css" rel="stylesheet">
35
    <!--<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/3/css/bootstrap.css" />-->
36
    <link href="resources/css/bootstrap-theme.min.css" rel="stylesheet">
37
    <link rel="stylesheet" type="text/css" href="resources/js/daterangepicker/daterangepicker.css"/>
38
 
39
    <link rel="stylesheet" type="text/css" href="resources/css/bootstrap-multiselect.css"/>
40
    <link rel="stylesheet" type="text/css" href="resources/css/datatables.bootstrap.min.css"/>
41
    <link rel='stylesheet' href='https://use.fontawesome.com/releases/v5.7.0/css/all.css'
42
          integrity='sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ' crossorigin='anonymous'>
43
    <link rel="stylesheet" type="text/css" href="resources/css/bootstrap-tagsinput.css">
44
    <!-- Include the Toastify CSS file -->
45
    <link rel="stylesheet" type="text/css" href="https://cdn.jsdelivr.net/npm/toastify-js/src/toastify.min.css">
46
    <style>
47
 
48
        <!--
49
        Small desktops-- >
50
 
51
        @media (max-width: 1920px) {
52
            body {
53
                zoom: 80% !important;
54
            }
55
        }
56
 
57
        @media (max-width: 1280px) {
58
            div.count {
59
                font-size: 18px;
60
            }
61
        }
62
 
63
 
64
        .current-margin {
65
            cursor: pointer;
66
        }
67
 
68
        .margin-calculator {
69
            cursor: pointer;
70
        }
71
 
72
        .Vivo:hover {
73
            border-radius: 40px;
74
            background: blue;
75
        }
76
 
77
 
78
        .Samsung:hover {
79
            border-radius: 4px;
80
            background: blue;
81
        }
82
 
83
        .Vivo:hover {
84
            border-radius: 4px;
85
            background: mediumblue;
86
        }
87
 
88
        .Oppo:hover {
89
            border-radius: 4px;
90
            background: green;
91
        }
92
 
93
        .Lava:hover {
94
            border-radius: 4px;
95
            background: salmon;
96
        }
97
 
98
        .Live:hover {
99
            border-radius: 4px;
100
            background: coral;
101
        }
102
 
103
        .Nokia:hover {
104
            border-radius: 4px;
105
            background: blue;
106
        }
107
 
108
        .Realme:hover {
109
            border-radius: 4px;
110
            background: yellow;
111
        }
112
 
113
        .Tecno:hover {
114
            border-radius: 4px;
115
            background: DarkTurquoise;
116
        }
117
 
118
        .Samsung {
119
 
120
            -moz-border-radius: 4px;
121
            border-radius: 4px;
122
            border: solid 5px black;
123
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
124
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
125
            background-image: linear-gradient(#4682B4, #dae5f4);
126
            color: #FFF;
127
            padding: 8px 12px;
128
            text-decoration: none;
129
            cursor: pointer;
130
 
131
 
132
        }
133
 
134
        .Vivo {
135
            -moz-border-radius: 4px;
136
            border-radius: 4px;
137
            border: solid 5px black;
138
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
139
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
140
            background-image: linear-gradient(#4682B4, #dae5f4);
141
            color: #FFF;
142
            padding: 8px 12px;
143
            text-decoration: none;
144
            cursor: pointer;
145
 
146
        }
147
 
148
        .Oppo {
149
            -moz-border-radius: 4px;
150
            border-radius: 4px;
151
            border: solid 5px black;
152
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
153
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
154
            background-image: linear-gradient(#4682B4, #dae5f4);
155
            color: #FFF;
156
            padding: 8px 12px;
157
            text-decoration: none;
158
            cursor: pointer;
159
 
160
        }
161
 
162
        .Lava {
163
 
164
            -moz-border-radius: 4px;
165
            border-radius: 4px;
166
            border: solid 5px black;
167
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
168
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
169
            background-image: linear-gradient(#4682B4, #dae5f4);
170
            color: #FFF;
171
            padding: 8px 12px;
172
            text-decoration: none;
173
            cursor: pointer;
174
 
175
        }
176
 
177
        .Realme {
178
            -moz-border-radius: 4px;
179
            border-radius: 4px;
180
            border: solid 5px black;
181
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
182
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
183
            background-image: linear-gradient(#4682B4, #dae5f4);
184
            color: #FFF;
185
            padding: 8px 12px;
186
            text-decoration: none;
187
            cursor: pointer;
188
 
189
        }
190
 
191
        .Tecno {
192
            -moz-border-radius: 4px;
193
            border-radius: 4px;
194
            border: solid 5px black;
195
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
196
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
197
            background-image: linear-gradient(#4682B4, #dae5f4);
198
            color: #FFF;
199
            padding: 8px 12px;
200
            text-decoration: none;
201
            cursor: pointer;
202
 
203
        }
204
 
205
        .Nokia {
206
            -moz-border-radius: 4px;
207
            border-radius: 4px;
208
            border: solid 5px black;
209
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
210
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
211
            background-image: linear-gradient(#4682B4, #dae5f4);
212
            color: #FFF;
213
            padding: 8px 12px;
214
            text-decoration: none;
215
            cursor: pointer;
216
 
217
        }
218
 
219
        .Live {
220
 
221
            -moz-border-radius: 4px;
222
            border-radius: 4px;
223
            border: solid 5px black;
224
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
225
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
226
            background-image: linear-gradient(#4682B4, #dae5f4);
227
            color: #FFF;
228
            padding: 8px 12px;
229
            text-decoration: none;
230
            cursor: pointer;
231
        }
232
 
233
        #accesoriesStock:hover {
234
            cursor: pointer;
235
            border-radius: 4px;
236
            background: white;
237
        }
238
 
239
        #accesoriesStock {
240
 
241
            -moz-border-radius: 4px;
242
            border-radius: 4px;
243
            border: solid 5px black;
244
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
245
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
246
            background-image: linear-gradient(#4682B4, #dae5f4);
247
            color: #FFF;
248
            padding: 14px 3px 18px 3px;
249
            text-decoration: none;
250
            object-fit: cover;
251
            width: 100%;
252
            height: 90px;
253
 
254
        }
255
 
256
        .loading {
257
            display: none;
258
        }
259
 
260
        .breadcrumb {
261
            padding: 0 15px;
262
        }
263
 
264
        .purple-bg {
265
 
266
            background-image: linear-gradient(#800080, #DDA0DD);
267
            box-shadow: 6px 5px 6px purple;
268
        }
269
 
270
        .stars-outer {
271
            display: inline-block;
272
            position: relative;
273
            font-family: 'Mukta', FontAwesome;
274
        }
275
 
276
        .stars-outer::before {
277
            content: "\f006 \f006 \f006 \f006 \f006";
278
        }
279
 
280
        .stars-inner {
281
            position: absolute;
282
            top: 0;
283
            left: 0;
284
            white-space: nowrap;
285
            overflow: hidden;
286
            width: 0;
287
        }
288
 
289
        .stars-inner::before {
290
            content: "\f005 \f005 \f005 \f005 \f005";
291
            color: #f8ce0b;
292
        }
293
 
294
 
295
        .table-striped > tbody > tr:nth-child(odd) > td {
296
            background: white;
297
            background-color: #dae5f4;
298
        }
299
 
300
        .table-striped > tbody > tr:nth-child(even) > td {
301
            background: #f2f2f2;
302
            background-color: #b8d1f3;
303
        }
304
 
305
        .btn:hover {
306
            color: grey;
307
            text-decoration: none;
308
        }
309
 
310
        .btn-primary:hover {
311
            color: grey;
312
            text-decoration: none;
313
        }
314
 
315
        .sale-details {
316
            cursor: pointer;
317
        }
318
 
319
        .fa-2x {
320
            font-size: 1.4em;
321
        }
322
 
323
        .cover {
324
            object-fit: cover;
325
            width: 92%;
326
            height: 90px;
327
        }
328
 
329
        .info-box .notifications i {
330
            display: inline-block;
331
            margin-top: 0px;
332
            height: 25px;
333
            font-size: 16px;
334
            line-height: 25px;
335
            width: 25px;
336
            float: none;
337
            text-align: center;
338
            padding-right: 0px;
339
            color: #768399;
340
        }
341
 
342
        #preview {
343
            position: relative;
344
            color: #fff;
345
            float: left;
346
            width: 100%;
347
            -webkit-border-radius: 10px;
348
            -moz-border-radius: 10px;
349
            border-radius: 10px;
350
            clear: both;
351
        }
352
 
353
        #canvas-preview {
354
            width: 100%;
355
            position: relative;
356
            top: -15px;
357
        }
358
 
359
        #preview-textfield {
360
            position: absolute;
361
            top: -10px;
362
            left: 0;
363
            right: 0;
364
            text-align: center;
365
            font-size: 2em;
366
            font-weight: bold;
367
            color: white;
368
            font-family: 'Amaranth', sans-serif, Hind, 'Mukta';
369
        }
370
 
371
        #descriptionMenu {
372
            list-style: desc !important;
373
            list-style-type: square;
374
            text-align: left;
375
        }
376
 
377
        .messagebutton {
378
            margin-left: 1px;
379
 
380
        }
381
 
382
        .partnerTypeList a {
383
            color: #1f1d1d;
384
            border-bottom: none !important;
385
            background-color: #efecec;
386
            border: 1px solid #dad5d5 !important;
387
            padding: 10px 15px !important;
388
        }
389
 
390
        .Partnerdropdiv {
391
            background-color: #efecec !important;
392
            padding: 0 !important;
393
        }
394
 
395
        .partnerGold:hover {
396
            background-color: #D4AF37 !important;
397
            background-image: unset !important;
398
        }
399
 
400
        .partnerBronz:hover {
401
            background-color: #CD7F32 !important;
402
            background-image: unset !important;
403
        }
404
 
405
        .partnerPlatinum:hover {
406
            background-color: #799096 !important;
407
            background-image: unset !important;
408
        }
409
 
410
        .partnerSilver:hover {
411
            background-color: #BCC6CC !important;
412
            background-image: unset !important;
413
        }
414
 
415
        .partnerDiamond:hover {
416
            background-color: #B9F2FF !important;
417
            background-image: unset !important;
418
        }
419
 
420
        /*Custom Css by Vikas*/
421
        .info-box .row div, .info-box .row strong {
422
            font-size: 16px !important;
423
        }
424
 
425
        .info-box.light-salmon-bg div.title {
426
            font-size: 12px !important;
427
        }
428
 
429
        .info-box.orange-bg button div {
430
            font-size: 10px !important;
431
        }
432
 
433
    </style>
434
</head>
435
 
436
<body style="background-color:#f7f7f7">
437
<!--<div class="loading"><img src="resources/images/icons/loading.gif"></div>-->
438
<!-- container section start -->
439
<section id="container">
440
 
441
 
442
    <header class="header dark-bg indian-flag">
443
        <div class="toggle-nav">
444
            <div class="icon-reorder tooltips" data-original-title="Toggle Navigation" data-placement="bottom"><i
445
                    class="icon_menu"></i></div>
446
        </div>
34505 ranu 447
        <a href="${rc.contextPath}/analysisDashboard?fofoId=$fofoId" class="logo" style="margin-top: 7px"> <img
34437 ranu 448
                src="resources/images/SmartDukaan-135x45.jpg" alt="smartDukaan" width="140"
449
                height="45">$fofoStore.getCode()</a>
450
 
451
        <ul class="nav pull-left top-menu">
452
            <li class="dropdown">
453
                <a data-toggle="dropdown" class="dropdown-toggle" href="#">
454
                    <img src="${partnerTypeImage}" width="60px">
455
                    <span class="username" style="font-size:15px">  <span
456
                            style="color:red">$partnerType.getValue()</span></span>
457
                    <b class="caret"></b>
458
                </a>
459
                <ul class="dropdown-menu Partnerdropdiv">
460
                    <li class="eborder-top partnerTypeList">
461
                        <a href="javascript:void(0);" class="partnerGold">Rising Star - New</a>
462
                        <a href="javascript:void(0);" class="partnerBronze">Bronze+ - 0-2.99L</a>
463
                        <a href="javascript:void(0);" class="partnerSilver">Silver - 3L-7.99L</a>
464
                        <a href="javascript:void(0);" class="partnerGold">Gold - 8L-14.99L</a>
465
                        <a href="javascript:void(0);" class="partnerDiamond">Diamond - 15L-20.99L</a>
466
                        <a href="javascript:void(0);" class="partnerPlatinum">Platinum - 21L & ABOVE</a>
467
                    </li>
468
                </ul>
469
            </li>
470
        </ul>
471
    </header>
472
    <!--header end-->
473
 
474
    <!--sidebar start-->
475
    <aside>
476
        <div id="sidebar" class="nav-collapse ">
477
            <!-- sidebar menu start-->
478
            <ul class="sidebar-menu">
479
                <li class="active">
34505 ranu 480
                    <a href="${rc.contextPath}/analysisDashboard?fofoId=$fofoId">
34437 ranu 481
                        <i class="icon_house_alt"></i>
482
                        <span>#springMessage("dashboard.dashboard")</span>
483
                    </a>
484
                </li>
485
 
486
                <li class="sub-menu">
487
                    <a href="javascript:void(0);" class="">
488
                        <i class="icon_table"></i>
489
                        <span>#springMessage("menu.reports")</span>
490
                        <span class="menu-arrow arrow_carrot-right"></span>
491
                    </a>
492
                    <ul class="sub">
34509 ranu 493
                        <li><a class="analysis-partner-collection-summary" data-fofoid="$fofoId"
494
                               href="javascript:void(0);">#springMessage(
495
                                                    "submenu.reportsdailycollections")</a></li>
34505 ranu 496
                        <li><a class="analysis-franchise-sales" data-fofoid="$fofoId"
497
                               href="javascript:void(0);">#springMessage(
34437 ranu 498
                            "submenu.reportsmysales")</a></li>
34505 ranu 499
                        <li><a class="analysis-wallet_statement" data-fofoid="$fofoId"
500
                               href="javascript:void(0);">#springMessage(
34437 ranu 501
                            "submenu.reportswalletstatement")</a></li>
34505 ranu 502
                        <li><a class="analysis-loan-statement" data-fofoid="$fofoId" href="javascript:void(0);">Loan
503
                            Statement</a></li>
504
                        <li><a class="analysis-account-statement" data-fofoid="$fofoId" href="javascript:void(0);">Account
505
                            Statement</a></li>
34524 ranu 506
 
34507 ranu 507
                        <li><a class="analysis-scheme-payout-report" href="javascript:void(0);"
508
                               data-fofoid="$fofoId">#springMessage(
509
                                                    "submenu.reportsschemespayout")</a></li>
34437 ranu 510
 
34508 ranu 511
                        <li><a class="analysis-price-drop-report" href="javascript:void(0);"
512
                               data-fofoid="$fofoId">#springMessage(
513
                                                    "submenu.reportspricedrop")</a></li>
34509 ranu 514
 
515
                        <li><a class="analysis-credit-note" href="javascript:void(0);" data-fofoid="$fofoId">Credit
516
                            Note</a></li>
34437 ranu 517
 
518
                    </ul>
519
                </li>
34513 ranu 520
                <li class="sub-menu">
521
                    <a href="javascript:;">
522
                        <i class="icon_document_alt"></i>
523
                        <span>#springMessage("menu.margins")</span>
524
                        <span class="menu-arrow arrow_carrot-right"></span>
525
                    </a>
526
                    <ul class="sub">
34524 ranu 527
                        <li><a class="analysis-schemes" data-fofoid="$fofoId" href="javascript:void(0);">#springMessage(
34513 ranu 528
                            "submenu.marginsmodelwisemargin")</a></li>
34524 ranu 529
                        <li><a class="analysis-partner-price-circular" data-fofoid="$fofoId"
530
                               href="javascript:void(0);">#springMessage(
34513 ranu 531
                            "submenu.marginsnlcpriccecircular")</a></li>
532
 
533
                    </ul>
534
                </li>
34437 ranu 535
            </ul>
536
            <!-- sidebar menu end-->
537
        </div>
538
    </aside>
539
    <!--sidebar end-->
540
 
541
    <!--main content start-->
542
    <section id="main-content">
543
        <section class="wrapper">
544
            <!--overview start-->
545
            <div class="row">
546
                <div class="col-lg-12">
34490 ranu 547
                    <h3 class="page-header" style="position:relative"><i class="fa fa-laptop"></i> Dashboard</h3>
34437 ranu 548
 
549
                    <ol class="breadcrumb">
34505 ranu 550
                        <li><i class="fa fa-home"></i><a
551
                                href="${rc.contextPath}/analysisDashboard?fofoId=$fofoId">Home</a></li>
34437 ranu 552
                        <li><i class="fa fa-laptop"></i>Dashboard</li>
553
                    </ol>
554
 
555
 
556
                </div>
557
            </div>
558
            <!-- overview end -->
559
            <div class="row">
560
                <div class="col-lg-6">
561
                    <div class="row">
562
                        <div class="col-lg-7">
563
                            <div class="info-box blue-bg">
564
                                <i class="fa fa-chart-line"></i>
565
                                <h4 style="margin-top:-2px;margin-bottom:12px"><strong>#springMessage(
566
                                    "dashboard.sale")</strong>
567
                                    <span>   <a href="#videoModal" class="btn btn-danger" data-toggle="modal"
568
                                                data-src="GQziSgeI3ZM"><span
569
                                            class="glyphicon glyphicon-play-circle"></span> Play Video</a> </span>
570
 
571
 
572
                                </h4>
573
                                <div class="row">
574
                                    <div class="col-lg-4 row">
575
                                        <div style="margin-top:0px" class="count currency">$nf.format($salesMap.get(
576
                                            "lmtdSale"))</div>
577
                                        <div class="title">LMTD</div>
578
                                    </div>
579
                                    <div class="col-lg-4 row">
580
                                        <div style="margin-top:0px" class="count currency">$nf.format($salesMap.get(
581
                                            "mtdSale"))</div>
582
                                        <div class="title">MTD</div>
583
                                    </div>
584
                                    <div class="col-lg-3 row">
585
                                        <div style="margin-top:0px" class="count currency">$nf.format($salesMap.get(
586
                                            "todaySale"))</div>
587
                                        <div class="title">Today&apos;s</div>
588
                                    </div>
589
 
590
                                    <div class="col-lg-1 row" style="margin-left: -20px;margin-top: 20px;">
591
                                        <i class="fk_more fa fa-angle-double-down" id="blue-dropdown"
592
                                           style="cursor:pointer;font-size: 27px;width: 27px;height: 27px;margin-top: 0px;color: rgba(255, 255, 255, 0.75);line-height: 27px;"></i>
593
                                    </div>
594
                                </div>
595
 
596
                                <div class="row monthsaleContainer" style="margin:5px">
597
                                </div>
598
                            </div>
599
                        </div>
600
 
601
                        <div class="col-lg-5 row">
602
                            <div class="info-box brown-bg">
603
 
604
                                <div class="row">
605
                                    <div class="col-lg-6">
606
                                        <h4 style="margin-top:-2px;margin-bottom:3px"><strong>Current Rate</strong></h4>
607
                                        <div style="margin-top:0px" class="count">
608
                                            <span class="currency">$nf.format($salesMap.get("currentRate"))</span>/day
609
                                        </div>
610
                                        <img src="${salesMap.get('currentTypeImage')}" width="60px"
611
                                             class="target-slide1">
612
                                    </div>
613
                                    <div class="col-lg-6">
614
                                        <h4 style="margin-top:-2px;margin-bottom:3px"><strong>Reqd Rate</strong></h4>
615
                                        <div style="margin-top:0px" class="count currency">
616
                                            <span class="currency">$nf.format($salesMap.get("requiredRate"))</span>/day
617
                                        </div>
618
                                        <img src="${salesMap.get('requiredTypeImage')}" width="60px"
619
                                             class="target-slide1">
620
                                    </div>
621
                                </div>
622
                            </div>
623
                        </div>
624
                        <div class="col-lg-7">
625
                            <div class="info-box purple-bg">
626
                                <div class="col-lg-12 row">
627
                                    <i class="fa fa-coins"></i>
628
                                    <h4 style="margin-top:-2px;margin-bottom:12px"><strong>#springMessage(
629
                                        "dashboard.investment")</strong></h4>
630
                                    <div class="row">
631
                                        <div class="col-lg-3">
632
                                            <div class="row">
633
                                                <div style="margin-top:0px" class="count currency">$investments.get(
634
                                                    "today")</div>
635
                                                <div class="title">#springMessage("dashboard.current")</div>
636
                                                <div class="col-lg-1" style="margin-left: -20px;margin-top: -6px;">
637
                                                    <i class="fk_more fa fa-angle-double-down flash"
638
                                                       id="purple-dropdown"
639
                                                       style="cursor:pointer;font-size: 27px;width: 145px;height: 27px;margin-top: 0px;color: rgba(255, 255, 255, 0.75);line-height: 4px; margin-left: 25px;"></i>
640
                                                </div>
641
                                            </div>
642
                                        </div>
643
 
644
                                        <div class="col-lg-3">
645
                                            <div style="margin-top:0px" class="count">$investments.get("minimum")</div>
646
                                            <div class="title">min</div>
647
                                        </div>
648
                                        <div class="col-lg-3 row"
649
                                            #if(!$isInvestmentOk)
650
                                             style="color:red; background: white;"
651
                                            #end
652
                                        >
653
                                            #if($investments.get("short")<=0)
654
                                                <div style="margin-top:0px" class="count">100%</div>
655
                                                <div class="title">OK</div>
656
                                            #else
657
                                                <div style="margin-top:0px" class="count">$investments.get("short")%
658
                                                </div>
659
                                                <div class="title">short</div>
660
                                            #end
661
                                        </div>
662
                                    </div>
663
                                    <div class="row investmentContainer" style="margin:5px">
664
                                    </div>
665
                                </div>
666
                            </div>
667
                        </div>
668
                        <div class="col-lg-5 row">
669
                            #if($staticScheme)
670
                                <div class="info-box white-bg" style="padding:0;height: 159px">
671
                                    <div class="col-lg-6"
672
                                         style="background-size: 135px !important;background:url('/resources/images/super-retailer.jpg') no-repeat;height: 161px;"
673
                                    >
674
                                        <div
675
                                                style="position: absolute;bottom: 4px;left: auto;width: 100%;left:-5px;
676
                                                text-align: center;color: #333333;margin-bottom: 4px;font-size: 18px; font-weight: bold">
677
                                            $schemeCategory</div>
678
                                    </div>
679
                                    <div class="col-lg-6 row">
680
                                        <div class="row" style="margin-top:6px">
681
                                            <div style="text-align: center;font-size: 13px;font-weight: bold;color: black;margin-top: 3px">
682
                                                Aug 1 - Nov 30
683
                                            </div>
684
                                            <p style="margin: 0 0 8px"></p>
685
                                            <div style="text-align: center;font-size: 13px;font-weight: bold;color: black">
686
                                                TOTAL TARGET
687
                                            </div>
688
                                            <div class="rcurrency"
689
                                                 style="text-align: center;font-size: 20px;font-weight: bold;color: red">
690
                                                $staticScheme.getTarget()
691
                                            </div>
692
                                        </div>
693
                                        <hr style="margin-top:6px;margin-bottom: 6px"/>
694
                                        <div class="row">
695
                                            <div style="text-align: center;font-size: 13px;font-weight: bold;color: black">
696
                                                TOTAL ACHIEVEMENT
697
                                            </div>
698
                                            <div class="rcurrency red"
699
                                                 style="text-align: center;font-size: 20px;font-weight: bold;color: red">
700
                                                $nf.format($schemeAchievement)
701
                                            </div>
702
                                        </div>
703
                                    </div>
704
                                </div>
705
                            #else
706
                                <div class="info-box orange-bg"
707
                                     style="background-image: linear-gradient(#ff7f50 ,orange); box-shadow: 6px 5px 6px #ff7f50;">
708
                                    <i class="fa fa-chart-line"></i>
709
                                    <h4 style="margin-top:-2px;margin-bottom:12px"><strong>#springMessage(
710
                                        "dashboard.onlinesale")</strong></h4>
711
                                    <div class="row">
712
                                        <div class="col-lg-3" style="margin:5px">
713
                                            <div style="margin-top:0px; margin-left:24px;"
714
                                                 class="count currency">$countOrder</div>
715
                                            <button class="btn-warning">
716
                                                <div class="title pending_order_dashboard"
717
                                                     style="cursor: pointer; color:black;">
718
                                                    #springMessage("dashboard.pendingorder")
719
                                                </div>
720
                                            </button>
721
                                        </div>
722
 
723
                                        <div class="col-lg-4 row" style="margin:5px">
724
                                            #if($onlineDeliveredOrderSum)
725
                                                <div style="margin-top:0px; margin-left:37px;"
726
                                                     class="count currency">$onlineDeliveredOrderSum</div>
727
                                            #else
728
                                                <div style="margin-top:0px; margin-left:20px;" class="count currency">
729
 
730
                                                </div>
731
                                            #end
732
                                            <button class="btn-warning">
733
                                                <div class="title total_sale_dashboard"
734
                                                     style="cursor: pointer; color:black;">Online Sales
735
                                                </div>
736
                                            </button>
737
                                        </div>
738
                                    </div>
739
                                </div>
740
                            #end
741
                        </div>
742
                    </div>
743
 
744
 
745
                    <div class="row">
746
                        <div class="col-lg-9">
747
                            <div class="info-box pink-bg" style="height: 160px;">
748
                                <h4 style="margin-top:-2px;margin-bottom:12px"><strong>Order Summary</strong></h4>
749
 
750
                                <div class="col-lg-3 row">
751
                                    <h4 style="margin-top:-2px;margin-bottom:12px;"><strong
752
                                            style="font-size: 16px; cursor:pointer; margin-left: 9px;"
753
                                            class="pndg-status">Pending</strong></h4>
754
                                    #if($submittedCount && $submittedValue)
755
                                        <div class="col-lg-3">
756
                                            <div style="margin-top:0px" class="count currency">$submittedCount</div>
757
                                            <div class="title">Qty</div>
758
                                        </div>
759
                                        <div class="col-lg-4">
760
                                            <div style="margin-top:0px" class="count currency">$submittedValue</div>
761
                                            <div class="title" style="margin-left:5px;">Value</div>
762
                                        </div>
763
                                    #else
764
                                        <div class="col-lg-3">
765
                                            <div style="margin-top:0px" class="count currency">0</div>
766
                                            <div class="title">Qty</div>
767
                                        </div>
768
                                        <div class="col-lg-4">
769
                                            <div style="margin-top:0px" class="count currency">0</div>
770
                                            <div class="title" style="margin-left:5px;">Value</div>
771
                                        </div>
772
 
773
                                    #end
774
 
775
 
776
                                </div>
777
 
778
                                <div class="col-lg-3">
779
                                    <h4 style="margin-top:-2px;margin-bottom:12px"><strong
780
                                            style="font-size: 19px; cursor:pointer; margin-left: 15px;"
781
                                            class="billed-status">#springMessage("dashboard.billed")</strong></h4>
782
 
783
                                    #if($billedCount && $billedValue)
784
                                        <div class="col-lg-3">
785
                                            <div style="margin-top:0px" class="count currency">$billedCount</div>
786
                                            <div class="title">Qty</div>
787
                                        </div>
788
                                        <div class="col-lg-4">
789
                                            <div style="margin-top:0px" class="count currency">$billedValue</div>
790
                                            <div class="title" style="margin-left:5px;">Value</div>
791
                                        </div>
792
                                    #else
793
                                        <div class="col-lg-3">
794
                                            <div style="margin-top:0px" class="count currency">0</div>
795
                                            <div class="title">Qty</div>
796
                                        </div>
797
                                        <div class="col-lg-4">
798
                                            <div style="margin-top:0px" class="count currency">0</div>
799
                                            <div class="title" style="margin-left:5px;">Value</div>
800
                                        </div>
801
 
802
                                    #end
803
                                </div>
804
 
805
                                <div class="col-lg-3">
806
                                    <h4 style="margin-top:-2px;margin-bottom:12px"><strong
807
                                            style="font-size: 19px;  cursor:pointer; margin-left: 15px;"
808
                                            class="shipped-status">#springMessage("dashboard.dispatched")</strong></h4>
809
 
810
                                    #if($shippedCount && $shippedValue)
811
                                        <div class="col-lg-3">
812
                                            <div style="margin-top:0px" class="count currency">$shippedCount</div>
813
                                            <div class="title">Qty</div>
814
                                        </div>
815
                                        <div class="col-lg-4">
816
                                            <div style="margin-top:0px" class="count currency">$shippedValue</div>
817
                                            <div class="title" style="margin-left:5px;">Value</div>
818
                                        </div>
819
                                    #else
820
                                        <div class="col-lg-3">
821
                                            <div style="margin-top:0px" class="count">0</div>
822
                                            <div class="title">Qty</div>
823
                                        </div>
824
                                        <div class="col-lg-4">
825
                                            <div style="margin-top:0px" class="count">0</div>
826
                                            <div class="title" style="margin-left:5px;">Value</div>
827
                                        </div>
828
 
829
                                    #end
830
                                </div>
831
 
832
                                <div class="col-lg-3">
833
                                    <h4 style="margin-top:-2px;margin-bottom:12px"><strong
834
                                            style="font-size: 19px;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;  cursor:pointer;"
835
                                            class="grn-status">#springMessage("dashboard.grnpending")</strong></h4>
836
 
837
                                    #if($grnPendingCount &&  $grnPendingValue )
838
                                        <div class="col-lg-3">
839
                                            <div style="margin-top:0px"
840
                                                 class="count currency">$grnPendingCount</div>
841
                                            <div class="title">Qty</div>
842
                                        </div>
843
                                        <div class="col-lg-4">
844
                                            <div style="margin-top:0px"
845
                                                 class="count currency">$grnPendingValue</div>
846
                                            <div class="title" style="margin-left:5px;">Value</div>
847
                                        </div>
848
                                    #else
849
                                        <div class="col-lg-3">
850
                                            <div style="margin-top:0px" class="count currency">0</div>
851
                                            <div class="title">Qty</div>
852
                                        </div>
853
                                        <div class="col-lg-4">
854
                                            <div style="margin-top:0px" class="count currency">0</div>
855
                                            <div class="title" style="margin-left:5px;">Value</div>
856
                                        </div>
857
 
858
                                    #end
859
                                </div>
860
                            </div>
861
                        </div>
862
                        <div class="col-lg-3 row" style="height: 190px;">
863
                            <div class="info-box green-bg" style="min-height: 160px;">
864
                                <i class="fa fa-cubes"></i>
865
                                <div class="count currency">$investments.get("inStock")</div>
866
                                <div class="title">#springMessage("dashboard.totalstock")</div>
867
                            </div>
868
                        </div>
869
                    </div>
870
                    <div class="row">
871
 
872
                        <div class="col-lg-8 partnerIncomeContainer"></div>
873
 
874
                        <div class="col-lg-4">
875
                            <div class="info-box green-bg" style="height: 145px;">
876
                                <h4 style="margin-top:-2px;margin-bottom:12px"><strong>#springMessage(
877
                                    "dashboard.monthlytarget")</strong></h4>
878
 
879
                                <div class="col-lg-6">
880
                                    <h4 style="margin-top:-2px;margin-bottom:12px;">
881
                                        <strong style="cursor:pointer; margin-left: 9px;">Sale</strong>
882
                                    </h4>
883
                                    <div class="col-lg-6">
884
                                        #if($monthlyTarget && $monthlyTarget.getSaleTarget() >0)
885
                                            <div style="margin-top:0px"
886
                                                 class="count currency">$monthlyTarget.getSaleTarget()</div>
887
                                        #else
888
                                            <div style="margin-top:0px" class="count currency">-</div>
889
                                        #end
890
                                    </div>
891
                                </div>
892
 
893
                                <div class="col-lg-6">
894
                                    <h4 style="margin-top:-2px;margin-bottom:12px;"><strong
895
                                            style="font-size: 16px; cursor:pointer; margin-left: 9px;"
896
                                    >#springMessage("dashboard.purchase")</strong></h4>
897
                                    <div class="col-lg-6">
898
                                        #if($monthlyTarget && $monthlyTarget.getPurchaseTarget() > 0)
899
                                            <div style="margin-top:0px"
900
                                                 class="count currency">$monthlyTarget.getPurchaseTarget()</div>
901
 
902
                                        #else
903
                                            <div style="margin-top:0px" class="count currency"> -</div>
904
 
905
                                        #end
906
                                    </div>
907
                                </div>
908
                            </div>
909
 
910
                        </div>
911
                    </div>
912
 
913
                    <div class="row">
914
                        <div class="Mobile">
915
                            #foreach($brandStockPrice in $brandStockPrices)
916
 
917
                                <div class="col-lg-3">
918
                                    <div class="card card-default">
919
							<span class="card-body" style="padding-bottom:0px">
920
								<table>
921
									<thead>
922
										<tr><td colspan="2">Current Stock</td></tr>
923
									</thead>
924
									<tbody>
925
										<tr><th>Qty</th><td>$brandStockPrice.getTotalQty()pc</td></tr>
926
										<tr><th>Value</th><td><span
927
                                                class="currency">$brandStockPrice.getTotalValue()</span></td></tr>
928
									</tbody>
929
								</table>
930
                                #if($brandStockPrice.getAgedValue()>0)
931
                                    <p style="color:#d15a57;font-weight:700" title="Focus Stock">
932
									<span class="currency">$brandStockPrice.getAgedValue()</span> / $brandStockPrice.getAgedQty()
933
								</p>
934
                                #else
935
                                    <p>&nbsp;</p>
936
                                #end
937
							</span>
938
                                        <span class="card-img" style="text-align:center">
939
							<img src="${brandStockPrice.getBrandUrl()}" data-stockbrand="$brandStockPrice.getBrand()"
940
                                 class="cover $brandStockPrice.getBrand()" id="stockcatalog"
941
                                 class="$brandStockPrice.getBrand()">
942
							</span></span>
943
                                    </div>
944
                                </div>
945
                            #end
946
                        </div>
947
                        <div class="row">
948
 
949
                            <div class="col-lg-3">
950
                                <div class="card card-default">
951
							<span class="card-body" style="padding-bottom:38px;">
952
								<table>
953
									<thead>
954
										<tr><td colspan="2">Current Stock</td></tr>
955
									</thead>
956
									<tbody>
957
										<tr><th>Value</th><td><span class="currency">$accesoriesStock</span></td></tr>
958
									</tbody>
959
								</table>
960
							</span>
961
                                    <span class="card-img">
962
								<img src="resources/images/accessories.jpg" id="accesoriesStock"
963
                                     class="accesoriesClass">
964
							</span>
965
                                </div>
966
                            </div>
967
 
968
                        </div>
969
                    </div>
970
 
971
 
972
                </div>
973
 
974
                <div class="col-lg-6">
975
                    <div class="row">
976
 
977
                        <div class="form-group">
978
                            <label class="control-label col-lg-4" for="months">#springMessage(
979
                                "dashboard.offerforthemonth")</label>
980
                            <div class="col-lg-2">
981
                                <select class="form-control input-sm" id="mk_offer_brand_filter" name="offerBrandFilter"
982
                                        placeholder="brand" style="margin:auto;">
983
                                    <option value="" disabled selected>Select Brand</option>
984
                                    <option value="">All</option>
985
                                    #foreach($brand in $brands)
986
                                        <option value="$brand">$brand</option>
987
                                    #end
988
                                </select>
989
                            </div>
990
                            <div class="col-lg-4">
991
                                <select class="form-control input-sm" id="offer-months" name="months"
992
                                        placeholder="months" style="margin:auto;">
993
                                    <option value="" disabled selected>Month</option>
994
                                    #foreach($mVM in $monthValueMap.entrySet())
995
                                        #if($mVM.getKey()== $month )
996
                                            <option value="$mVM.getKey()" selected>$mVM.getValue()</option>
997
                                        #else
998
                                            <option value="$mVM.getKey()">$mVM.getValue()</option>
999
                                        #end
1000
                                    #end
1001
                                </select>
1002
                            </div>
1003
                            <div class="col-lg-2">
1004
                                <!--Training Video -->
1005
                                <a href="#videoModal" class="btn btn-danger" data-toggle="modal"
1006
                                   data-src="Nv7J2L_BPCU"><span
1007
                                        class="glyphicon glyphicon-play-circle"></span> Play Video</a>
1008
                            </div>
1009
                        </div>
1010
                    </div>
1011
                    <div id="offer-container">
1012
                        #parse("published-offers.vm")
1013
                    </div>
1014
                    <div class="offer-margin-container">
1015
                        <div class="modal  text-center" id="offerDescription">
1016
                            <div class="modal-dialog modal-lg modal-dialog-scrollable">
1017
                                <div class="modal-content">
1018
                                </div>
1019
                            </div>
1020
                        </div>
1021
                    </div>
1022
 
1023
                    <div class="row col-lg-12 info-box white-bg" id="performanceContainer">
1024
                        #parse("performance.vm")
1025
                    </div>
1026
                    <!--<div class="row col-lg-12 info-box white-bg" id="performanceContainer">
1027
                        ##parse("performance-weekly.vm")
1028
                    </div>-->
1029
                    #if($activatedImeis > 0)
1030
                        <div class="row col-lg-12 info-box white-bg">
1031
                            #parse("dashboard-activated-imeis.vm")
1032
                        </div>
1033
                    #end
1034
                    #if($imeiActivationPendingCount > 0)
1035
                        <div class="row col-lg-12 info-box white-bg">
1036
                            #parse("dashboard-grn-pending-activated-imeis.vm")
1037
                        </div>
1038
                    #end
1039
                    <div class="row col-lg-12">
1040
                        <ul class="nav nav-tabs">
1041
                            <li class="bar_chart"><a class="ba">Sale</a></li>
1042
                            <li class="lms_line_chart"><a class="la">#springMessage("dashboard.monthlysale")</a></li>
1043
                            <li class="purchase_line_chart"><a class="pa">#springMessage(
1044
                                "dashboard.monthlypurchase")</a></li>
1045
                            <li class="priceDrop_chart"><a class="pd">#springMessage("dashboard.pricedrop")</a></li>
1046
                            <li class="pending_activation_chart"><a class="pac">Pending Activation</a></li>
1047
                            <li class="pending_upgrade_offer"><a class="puo"> #springMessage(
1048
                                "dashboard.upgradeoffer")</a></li>
1049
 
1050
                        </ul>
1051
                        <div style="float:left;margin-top: 2% ; font-size: 20px ;margin-left: 5%" id="dateRangeDiv">
1052
                            From:
1053
                            <input type="date" name="from" id="chartForm" value="">
1054
                            To:
1055
                            <input type="date" name="to" id="chartTo" value="">
1056
 
1057
                            <select name="quantityType" id="quantity_type_id">
1058
                                <option value="false" selected>Value</option>
1059
                                <option value="true">Quantity</option>
1060
                            </select>
1061
                            <button id="viewSaleBarChart" class="btn-success">
1062
                                Veiw Chart
1063
                            </button>
1064
                        </div>
1065
                        <br>
1066
                        <div class="row ChartContainer" style="margin:5px;margin-top: 4%">
1067
 
1068
                        </div>
1069
 
1070
 
1071
                    </div>
1072
                    <div class="clearfix"></div>
1073
                    <div class="model_charbar_container">
1074
 
1075
                    </div>
1076
 
1077
 
1078
                </div>
1079
            </div>
1080
            </div>
1081
        </section>
1082
        <div class="text-center">
1083
            <div id="like_button_container"></div>
1084
            <div class="credits">
1085
                <p>All rights reserved.&copy;2017, Smart Dukaan</p>
1086
            </div>
1087
        </div>
1088
 
1089
    </section>
1090
 
1091
    <script type="text/javascript">
1092
        context = "${rc.contextPath}";
1093
        webApiScheme = "$webApiScheme";
1094
        webApiRoot = "$webApiRoot";
1095
        webApiHost = "$webApiHost";
1096
        webApiPort = "$webApiPort";
1097
    </script>
1098
    #parse("include-scripts.vm")
1099
 
1100
    <script type="text/javascript">
1101
        $(document).ready(function () {
1102
            $("#offerDescription").modal({backdrop: "static", keyboard: true, focus: true, show: false});
1103
            var salesCloseFlag = true;
1104
            $("#blue-dropdown").click(function () {
1105
                // console.log("clicked");
1106
                if (salesCloseFlag) {
1107
                    var containerWidth = $(".blue-bg").width()
1108
                    doGetAjaxRequestHandler(context + "/getMonthSale", function (response) {
1109
                        $('.monthsaleContainer').html(response);
1110
 
1111
                        $(".blue-bg").css({"position": "absolute", "z-index": "10"}).width(containerWidth);
1112
                    });
1113
                } else {
1114
                    $(".blue-bg").removeAttr('style');
1115
                    $('.monthsaleContainer').html('');
1116
                }
1117
                salesCloseFlag = !salesCloseFlag;
1118
            });
1119
 
1120
            $(".bar_chart").click();
1121
 
1122
            var month = 0;
1123
            doGetAjaxRequestHandler(context + "/partnerTotalIncomeByMonth/" + month, function (response) {
1124
                console.log(response);
1125
                $(".partnerIncomeContainer").html(response);
1126
            });
1127
 
1128
            var investmentCloseFlag = true;
1129
            $("#purple-dropdown").click(function () {
1130
                console.log('hello');
1131
                $(".flash").stop();
1132
                // console.log("clicked");
1133
                if (investmentCloseFlag) {
1134
                    var containerWidth = $(".purple-bg").width()
1135
                    doGetAjaxRequestHandler(context + "/investmentDetails", function (response) {
1136
                        $('.investmentContainer').html(response);
1137
                        $(".purple-bg").css({"position": "absolute", "z-index": "10"}).width(containerWidth);
1138
                    });
1139
                } else {
1140
                    $(".purple-bg").removeAttr('style');
1141
                    $('.investmentContainer').html('');
1142
                }
1143
                investmentCloseFlag = !investmentCloseFlag;
1144
            });
1145
        });
1146
 
1147
        function sleep(delay) {
1148
            var start = new Date().getTime();
1149
            while (new Date().getTime() < start + delay) ;
1150
        }
1151
 
1152
        $(document).on("click", ".priceDrop_chart",
1153
                function () {
1154
                    $(".pd").css("color", "blue");
1155
                    $(".pd").css("background-color", "white");
1156
                    $(".ba").css("color", "white");
1157
                    $(".ba").css("background-color", "#C0C0C0");
1158
                    $(".pa").css("color", "white");
1159
                    $(".pa").css("background-color", "#C0C0C0");
1160
                    $(".la").css("color", "white");
1161
                    $(".la").css("background-color", "#C0C0C0");
1162
 
1163
                    $(".pac").css("color", "white");
1164
                    $(".pac").css("background-color", "#C0C0C0");
1165
 
1166
 
1167
                    $(".puo").css("color", "white");
1168
                    $(".puo").css("background-color", "#C0C0C0");
1169
 
1170
 
1171
                    sleep(500);
1172
                    doGetAjaxRequestHandler(context + "/getMonthlyPriceDrop", function (response) {
1173
 
1174
                        $('.ChartContainer').html(response);
1175
                    });
1176
                });
1177
 
1178
 
1179
        $(document).on("click", ".pending_activation_chart",
1180
                function () {
1181
                    $(".pac").css("color", "blue");
1182
                    $(".pac").css("background-color", "white");
1183
 
1184
                    $(".pd").css("color", "white");
1185
                    $(".pd").css("background-color", "#C0C0C0");
1186
                    $(".ba").css("color", "white");
1187
                    $(".ba").css("background-color", "#C0C0C0");
1188
                    $(".pa").css("color", "white");
1189
                    $(".pa").css("background-color", "#C0C0C0");
1190
                    $(".la").css("color", "white");
1191
                    $(".la").css("background-color", "#C0C0C0");
1192
 
1193
                    $(".puo").css("color", "white");
1194
                    $(".puo").css("background-color", "#C0C0C0");
1195
 
1196
                    sleep(500);
1197
                    doGetAjaxRequestHandler(context + "/getMonthlyActivation", function (response) {
1198
 
1199
                        $('.ChartContainer').html(response);
1200
                    });
1201
                });
1202
 
1203
        $(document).on("click", ".purchase_line_chart",
1204
                function () {
1205
                    $(".pa").css("color", "blue");
1206
                    $(".pa").css("background-color", "white");
1207
                    $(".ba").css("color", "white");
1208
                    $(".ba").css("background-color", "#C0C0C0");
1209
                    $(".pd").css("color", "white");
1210
                    $(".pd").css("background-color", "#C0C0C0");
1211
                    $(".la").css("color", "white");
1212
                    $(".la").css("background-color", "#C0C0C0");
1213
 
1214
                    $(".pac").css("color", "white");
1215
                    $(".pac").css("background-color", "#C0C0C0");
1216
 
1217
                    $(".puo").css("color", "white");
1218
                    $(".puo").css("background-color", "#C0C0C0");
1219
 
1220
                    doGetAjaxRequestHandler(context + "/getMonthlyPurchaseLineChart", function (response) {
1221
                        $('.ChartContainer').html(response);
1222
                    });
1223
                });
1224
 
1225
        $(document).on("click", ".lms_line_chart",
1226
                function () {
1227
 
1228
                    $(".ba").css("color", "white");
1229
                    $(".ba").css("background-color", "#C0C0C0");
1230
                    $(".pa").css("color", "white");
1231
                    $(".pa").css("background-color", "#C0C0C0");
1232
                    $(".la").css("color", "blue");
1233
                    $(".la").css("background-color", "white");
1234
                    $(".pd").css("color", "white");
1235
                    $(".pd").css("background-color", "#C0C0C0");
1236
 
1237
                    $(".pac").css("color", "white");
1238
                    $(".pac").css("background-color", "#C0C0C0");
1239
 
1240
                    $(".puo").css("color", "white");
1241
                    $(".puo").css("background-color", "#C0C0C0");
1242
 
1243
                    doGetAjaxRequestHandler(context + "/getlmsLineChart", function (response) {
1244
                        $('.ChartContainer').html(response);
1245
                    });
1246
                });
1247
 
1248
        $(document).on("click", ".bar_chart",
1249
                function () {
1250
                    $(".ba").css("color", "blue");
1251
                    $(".ba").css("background-color", "white");
1252
                    $(".la").css("color", "white");
1253
                    $(".la").css("background-color", "#C0C0C0");
1254
                    $(".pa").css("color", "white");
1255
                    $(".pa").css("background-color", "#C0C0C0");
1256
                    $(".pd").css("color", "white");
1257
                    $(".pd").css("background-color", "#C0C0C0");
1258
 
1259
                    $(".pac").css("color", "white");
1260
                    $(".pac").css("background-color", "#C0C0C0");
1261
 
1262
                    $(".puo").css("color", "white");
1263
                    $(".puo").css("background-color", "#C0C0C0");
1264
 
1265
 
1266
                    doGetAjaxRequestHandler(context + "/getBarChart", function (response) {
1267
                        $('.ChartContainer').html(response);
1268
                    });
1269
                });
1270
 
1271
 
1272
        $(document).on("click", ".pending_upgrade_offer",
1273
                function () {
1274
 
1275
                    $(".puo").css("color", "blue");
1276
                    $(".puo").css("background-color", "white");
1277
 
1278
                    $(".ba").css("color", "white");
1279
                    $(".ba").css("background-color", "#C0C0C0");
1280
                    $(".la").css("color", "white");
1281
                    $(".la").css("background-color", "#C0C0C0");
1282
                    $(".pa").css("color", "white");
1283
                    $(".pa").css("background-color", "#C0C0C0");
1284
                    $(".pd").css("color", "white");
1285
                    $(".pd").css("background-color", "#C0C0C0");
1286
 
1287
                    $(".pac").css("color", "white");
1288
                    $(".pac").css("background-color", "#C0C0C0");
1289
 
1290
                    doGetAjaxRequestHandler(context + "/getMonthlySamsungUpgradeOffer", function (response) {
1291
                        $('.ChartContainer').html(response);
1292
                    });
1293
                });
1294
 
1295
 
1296
        $(document).on("click", "p.description-offer",
1297
                function (e) {
1298
                    var offerid = $(this).data('offerid');
1299
                    console.log(offerid);
1300
                    doGetAjaxRequestHandler(context + "/getOfferMargins?offerId="
1301
                            + offerid, function (response) {
1302
                        $('.offer-margin-container .modal-content').html(response);
1303
                        $("#offerDescription").modal('handleUpdate');
1304
                        $("#offerDescription").modal('show');
1305
                    });
1306
                });
1307
 
1308
 
1309
        $(document).on("click", ".cancel-description",
1310
                function (e) {
1311
                    $("#descriptionMenu").empty();
1312
                });
1313
 
1314
 
1315
        $(document).on("click", "#cancel-model", function (e) {
1316
            $("#descriptionMenu").empty();
1317
        });
1318
 
1319
        $(document).on('change', "#month-wise-total-income", function () {
1320
 
1321
            var month = $(this).val();
1322
            console.log(month);
1323
 
1324
            doGetAjaxRequestHandler(context + "/partnerTotalIncomeByMonth/" + month, function (response) {
1325
                console.log(response);
1326
                $(".partnerIncomeContainer").html(response);
1327
            });
1328
        });
1329
 
1330
 
1331
        $(document).on('change', "#performance-months", function () {
1332
 
1333
            var month = $("#performance-months").val();
1334
            console.log(month);
1335
 
1336
            doGetAjaxRequestHandler(context + "/getMonthsInvestment?month=" + month, function (response) {
1337
                console.log(response);
1338
                $("#performanceContainer").html(response);
1339
 
1340
            });
1341
        });
1342
 
1343
 
1344
        $(document).on('change', "#offer-months,#mk_offer_brand_filter", function () {
1345
            var monthSearch = $('#offer-months').val();
1346
            var brandFilter = $('#mk_offer_brand_filter').val();
1347
            console.log("monthSearch - ", monthSearch)
1348
            console.log("brandFilter - ", brandFilter)
1349
            var url;
1350
            if (!brandFilter) {
1351
                url = `${context}/published-offers?yearMonth=${monthSearch}`;
1352
            } else {
1353
                url = `${context}/published-offers?yearMonth=${monthSearch}&brandFilter=${brandFilter}`;
1354
            }
1355
            console.log("url - ", url);
1356
            doGetAjaxRequestHandler(url, function (response) {
1357
                $("#offer-container").html(response);
1358
            });
1359
        });
1360
 
1361
 
1362
        $(document).on("click", ".pndg-status", function () {
1363
            console.log("Hello");
1364
            pendingOrderStatus("main-content");
1365
        });
1366
 
1367
        function pendingOrderStatus(domId) {
1368
            doGetAjaxRequestHandler(context + "/getPendingOrderStatus", function (response) {
1369
                console.log(response);
1370
                $('#' + domId).html(response);
1371
            });
1372
        }
1373
 
1374
        $(document).on("click", ".billed-status", function () {
1375
            console.log("Hello");
1376
            billedOrderStatus("main-content");
1377
        });
1378
 
1379
        function billedOrderStatus(domId) {
1380
            doGetAjaxRequestHandler(context + "/getBilledOrderStatus", function (response) {
1381
                console.log(response);
1382
                $('#' + domId).html(response);
1383
            });
1384
        }
1385
 
1386
        $(document).on("click", ".shipped-status", function () {
1387
            console.log("Hello");
1388
            shippedOrderStatus("main-content");
1389
        });
1390
 
1391
        function shippedOrderStatus(domId) {
1392
            doGetAjaxRequestHandler(context + "/getShippedOrderStatus", function (response) {
1393
                console.log(response);
1394
                $('#' + domId).html(response);
1395
            });
1396
        }
1397
 
1398
        $(document).on("click", ".grn-status", function () {
1399
            console.log("Hello");
1400
            grnOrderStatus("main-content");
1401
        });
1402
 
1403
        function grnOrderStatus(domId) {
1404
            doGetAjaxRequestHandler(context + "/getGrnPendingOrderStatus", function (response) {
1405
                console.log(response);
1406
                $('#' + domId).html(response);
1407
            });
1408
        }
1409
 
1410
        function lastMonthCreditIncome(domId) {
1411
            let monthVal = $("#month-wise-total-income").val();
1412
            doGetAjaxRequestHandler(`${context}/monthWisePartnerIncome/${monthVal}`, function (response) {
1413
                console.log(response);
1414
                $('#' + domId).html(response);
1415
            });
1416
        }
1417
 
1418
        $(document).on("click", ".pending-income", function () {
1419
            console.log("Hello");
1420
            lastMonthCreditIncome("main-content");
1421
        });
1422
 
1423
        $(document).on("click", ".total-income-calc", function () {
1424
            console.log("Hello");
1425
            lastMonthCreditIncome("main-content");
1426
        });
1427
 
1428
 
1429
    </script>
1430
    <script>
1431
 
1432
        //knob
1433
        $(function () {
1434
            /*$(".knob").knob({
1435
              'draw' : function () {
1436
                $(this.i).val(this.cv + '%')
1437
              }
1438
            });*/
1439
            $.fn.dataTable.moment('DD/MM/YYYY');
1440
            $.fn.dataTable.moment('DD/MM/YYYY hh:mm');
1441
            $('.currency').each(function (index, ele) {
1442
                if (!isNaN(parseInt($(ele).html()))) {
1443
                    $(ele).html(numberToComma($(ele).html()));
1444
                }
1445
            });
1446
        });
1447
 
1448
        $(function () {
1449
            var profile = localStorage.getItem('profile');
1450
            if (profile) {
1451
                $("#photo").attr("src", JSON.parse(profile).image_url);
1452
                $("#fofo_name").text(JSON.parse(profile).name);
1453
            } else {
1454
                $("#photo").attr("src", "");
1455
                $("#fofo_name").text("Welcome, User");
1456
            }
1457
        });
1458
 
1459
        $(function () {
1460
            var bag = localStorage.getItem('bag');
1461
            console.log(bag);
1462
            if (bag) {
1463
                console.log("yes");
1464
                //$("#cart_bar").find('span').text(10);
1465
                $("#cart_bar").find('span').text(Object.keys(JSON.parse(bag)).length);
1466
            } else {
1467
                $("#cart_bar").find('span').text(0);
1468
            }
1469
        });
1470
 
1471
        $("#logout").click(function () {
1472
            localStorage.profile = undefined;
1473
        });
1474
            #set($partnerInvestment = $investments.get("investment"))
1475
        saleAmount = numberToComma($partnerInvestment.getSalesAmount());
1476
        minimumInvestmentAmount = numberToComma($partnerInvestment.getMinInvestment());
1477
        totalInvestedAmount = numberToComma($partnerInvestment.getTotalInvestment());
1478
        shortPercentage = numberToComma($partnerInvestment.getShortPercentage());
1479
        grnPendingStockAmount = numberToComma($partnerInvestment.getGrnPendingAmount());
1480
        unbilledStockAmount = numberToComma($partnerInvestment.getUnbilledAmount());
1481
        inStockAmount = numberToComma($partnerInvestment.getInStockAmount());
1482
        walletAmount = numberToComma($partnerInvestment.getWalletAmount());
1483
        shortAmount = numberToComma($partnerInvestment.getShortInvestment());
1484
        minAmountToBeAdded = numberToComma($partnerInvestment.getMinAmountToBeAdded());
1485
        isInvestmentOk = $isInvestmentOk;
1486
        starTotal = 5;
1487
        /*ratings = {
1488
            current: $currentMonthRating,
1489
            last: $lastMonthRating,
1490
            tilldate: $ratingTillDate
1491
        };
1492
        for (const rating in ratings) {
1493
            // 2
1494
            const starPercentage = (ratings[rating] / starTotal) * 100;
1495
            // 3
1496
            const starPercentageRounded = `${starPercentage}%`;
1497
            // 4
1498
            document.querySelector(`.${rating} .stars-inner`).style.width = starPercentageRounded;
1499
        }*/
1500
 
1501
        hasGift =$hasGift;
1502
        giftItemId = $giftItemId;
1503
        monthDays =$monthDays;
1504
        dayOfMonth = $dayOfMonth;
1505
        $(function () {
1506
            $('#links_bar').popover({
1507
                container: ".notification-row",
1508
                template: `<div class="popover" style="min-width: 18%;">
1509
							<div class="arrow"></div>
1510
							<div class="popover-inner">
1511
								<h4 class="popover-title">
1512
								</h4>
1513
								<div class="popover-content"><p></p></div>
1514
							</div>
1515
						</div>`,
1516
                html: true,
1517
                content: `<div class="container-fluid">
1518
		    				<div class="row"><h5 class="page-header" style="color:#333;margin:6px 0 3px">Quick Links</h5></div>
1519
		    				<div class="row">
1520
							    <div class="col-lg-3">
1521
								    <a href="/spicemoney/getToken" target="_blank" href="">
1522
								    	<img title="Spice Money" src="/resources/images/icons/provider-logos/spicemoney.jpg" style="width:40px"></img>
1523
								    </a>
1524
								</div>
1525
							</div>
1526
		    			</div>`,
1527
                placement: "bottom",
1528
                trigger: "focus"
1529
            });
1530
        });
1531
 
1532
        function showAttendanceModal() {
1533
            var today = new Date().getTime();
1534
            if ($.cookie("punchIn") == undefined) {
1535
                document.cookie = "punchIn=" + today;
1536
            }
1537
            if (today >= parseInt($.cookie("punchIn"))) {
1538
                doGetAjaxRequestHandler(context + "/getPunchInOutForModel", function (response) {
1539
                    if (response == 'true') {
1540
                        $('#punchInOutModal').modal('hide');
1541
                        clearInterval(stopInterval);
1542
                    } else {
1543
                        $("#punch-in-out-model").html(response);
1544
                        $('#punchInOutModal').modal('show');
1545
                        var time = today + 30 * 60 * 1000
1546
                        document.cookie = "punchIn=" + time;
1547
                    }
1548
                });
1549
            }
1550
        }
1551
 
1552
        var stopInterval;
1553
        $(document).ready(function () {
1554
            stopInterval = setInterval(showAttendanceModal, 100000000);
1555
 
1556
            $('div.message-filter').on('click', 'button', function () {
1557
 
1558
                messageType = $(this).data("messagetype");
1559
                notifyTypeChange(messageType, $(this));
1560
 
1561
            });
1562
        });
1563
 
1564
 
1565
        $(function () {
1566
            if (navigator.geolocation) {
1567
                navigator.geolocation.getCurrentPosition(showPosition);
1568
            } else {
1569
                console.log("Geolocation is not supported by browser.");
1570
            }
1571
            loaderDialogObj = bootbox.dialog({
1572
                message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
1573
                show: false
1574
            });
1575
 
1576
            /* Assign empty url value to the iframe src attribute when
1577
                modal hide, which stop the video playing */
1578
            $("#videoModal").on('hide.bs.modal', function () {
1579
                $("#trainingVideo").attr('src', '');
1580
            });
1581
 
1582
            /* Assign the initially stored url back to the iframe src
1583
            attribute when modal is displayed again */
1584
            $("#videoModal").on('show.bs.modal', function (event) {
1585
                let button = $(event.relatedTarget);
1586
                let youtubeUrl = button.data("src");
1587
                $("#trainingVideo").attr('src', `//www.youtube.com/embed/${youtubeUrl}?autoplay=1`);
1588
            });
1589
 
1590
        });
1591
    </script>
1592
    <div id="punchInOutModal" class="modal" role="dialog">
1593
        <div class="modal-dialog">
1594
 
1595
            <!-- Modal content-->
1596
            <div class="modal-content">
1597
                <div class="modal-header">
1598
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
1599
                    <h4 class="modal-title">Punch In Out</h4>
1600
                </div>
1601
                <div class="modal-body">
1602
                    <div id="punch-in-out-model">
1603
 
1604
                    </div>
1605
                </div>
1606
            </div>
1607
        </div>
1608
    </div>
1609
</section>
1610
</body>
1611
 
1612
<!-- Modal HTML -->
1613
<div id="videoModal" class="modal fade">
1614
    <div class="modal-dialog">
1615
        <div class="modal-content">
1616
            <div class="modal-body">
1617
                <div class="embed-responsive embed-responsive-16by9">
1618
                    <iframe id="trainingVideo" class="embed-responsive-item" width="560" height="315"
1619
                            allowfullscreen allow="autoplay"></iframe>
1620
                </div>
1621
            </div>
1622
        </div>
1623
    </div>
1624
</div>
1625
</html>
1626
<style>
1627
 
1628
 
1629
    .popover2 {
1630
        min-width: 30em;
1631
        height: 410px;
1632
        overflow: auto;
1633
        padding: 8px 5px;
1634
        overflow-x: hidden;
1635
 
1636
    }
1637
 
1638
    .popover1 {
1639
        min-width: 30em;
1640
 
1641
 
1642
    }
1643
 
1644
    .mark {
1645
        font-size: 13px;
1646
        padding: 5px 6px;
1647
        border: solid 3px red;
1648
        margin-bottom: -14px;
1649
        color: red;
1650
 
1651
    }
1652
 
1653
    .mark.btn-pressed {
1654
        color: black;
1655
        background: white;
1656
        font-size: 17px;
1657
        border-radius: 3px;
1658
        border: solid 2px black;
1659
    }
1660
 
1661
    .price {
1662
        padding: 5px 6px;
1663
        font-size: 13px;
1664
        border: solid 1px black;
1665
        border: solid 3px red;
1666
        margin-bottom: -14px;
1667
        color: red;
1668
 
1669
    }
1670
 
1671
    .price.btn-pressed {
1672
        color: black;
1673
        background: white;
1674
        font-size: 17px;
1675
        border: solid 2px black;
1676
    }
1677
 
1678
    .schem {
1679
        color: red;
1680
        padding: 5px 6px;
1681
        font-size: 13px;
1682
        border: solid 3px red;
1683
        margin-bottom: -14px;
1684
 
1685
    }
1686
 
1687
    .schem.btn-pressed {
1688
        color: black;
1689
        background: white;
1690
        font-size: 17px;
1691
        border: solid 2px black;
1692
    }
1693
 
1694
    .notify-messages {
1695
        min-height: 65px;
1696
    }
1697
 
1698
    .notifi {
1699
        padding: 5px 6px;
1700
        font-size: 13px;
1701
        margin-bottom: -14px;
1702
 
1703
        color: red;
1704
        border: solid 3px red;
1705
    }
1706
 
1707
    .notifi.btn-pressed {
1708
        color: black;
1709
        font-size: 17px;
1710
        border: solid 2px black;
1711
        background: white;
1712
    }
1713
 
1714
    #offer-container {
1715
        overflow-y: auto;
1716
        max-height: 367px;
1717
    }
1718
 
1719
 
1720
    canvas {
1721
        -moz-user-select: none;
1722
        -webkit-user-select: none;
1723
        -ms-user-select: none;
1724
    }
1725
</style>
1726
</script>
1727
 
1728
 
1729
<script type="text/javascript">
1730
    window.onload = function () {
1731
        if (window.innerWidth < 1920) document.body.style.zoom = "80%";
1732
        var options = $chartMap;
1733
        var ctx = document.getElementById('barchart').getContext('2d');
1734
        window.bar = new Chart1(ctx, options);
1735
    };
1736
</script>
1737
 
1738
 
1739
<script>
1740
    function makeAjaxRequest() {
1741
        $.ajax({
1742
            url: 'https://partners.smartdukaan.com/psi/auth-endpoint',
1743
            method: 'GET',
1744
            dataType: 'xml', // Assuming the response is in XML format
1745
            success: function (responseXml) {
1746
                var responseUrl = $(responseXml).find('response').text();
1747
                if (responseUrl) {
1748
                    // Open a new tab with the response URL
1749
                    window.open(responseUrl, '_blank');
1750
                } else {
1751
                    console.error('Response URL not found in the XML');
1752
                }
1753
            },
1754
            error: function (jqXHR, textStatus, errorThrown) {
1755
                console.error('AJAX Request Failed:', textStatus, errorThrown);
1756
            }
1757
        });
1758
    }
1759
 
1760
 
1761
    $(document).on('click', '#viewSaleBarChart', function () {
1762
        let from = $('#chartForm').val();
1763
        let to = $('#chartTo').val();
1764
        let quantity_type = $('select[name="quantityType"]').val();
1765
        console.log("from - ", from);
1766
        console.log("to - ", to);
1767
        console.log("tquantity_typeo - ", quantity_type);
1768
 
1769
        doGetAjaxRequestHandler(`${context}/getBarChart?from=${from}&to=${to}&isQuantity=${quantity_type}`, function (response) {
1770
            console.log("res - ", response);
1771
            $('.model_charbar_container').html("");
1772
            $('.ChartContainer').html(response);
1773
        });
1774
    });
1775
</script>