Subversion Repositories SmartDukaan

Rev

Rev 34490 | Rev 34507 | 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">
34505 ranu 493
                        ##                        <li><a class="partner-collection-summary" href="javascript:void(0);">#springMessage(
494
                        ##                            "submenu.reportsdailycollections")</a></li>
495
                        <li><a class="analysis-franchise-sales" data-fofoid="$fofoId"
496
                               href="javascript:void(0);">#springMessage(
34437 ranu 497
                            "submenu.reportsmysales")</a></li>
34505 ranu 498
                        <li><a class="analysis-wallet_statement" data-fofoid="$fofoId"
499
                               href="javascript:void(0);">#springMessage(
34437 ranu 500
                            "submenu.reportswalletstatement")</a></li>
34505 ranu 501
                        <li><a class="analysis-loan-statement" data-fofoid="$fofoId" href="javascript:void(0);">Loan
502
                            Statement</a></li>
503
                        <li><a class="analysis-account-statement" data-fofoid="$fofoId" href="javascript:void(0);">Account
504
                            Statement</a></li>
505
                        ##                        <li><a class="pending-indent" href="javascript:void(0);">#springMessage(
506
                        ##                            "submenu.reportsorderstatus")</a></li>
507
                        ##                        <li><a class="scheme-payout-report" href="javascript:void(0);">#springMessage(
508
                        ##                            "submenu.reportsschemespayout")</a></li>
509
                        ##                        <li><a class="offer-payout-dump-report" href="javascript:void(0);">Offer Payout</a></li>
510
                        ##                        <li><a class="smartdukaan-billing-statement" href="javascript:void(0);">#springMessage(
511
                        ##                            "submenu.reportsbillingstatement")</a>
512
                        ##                        </li>
34437 ranu 513
 
34505 ranu 514
                        ##                        <li><a class="price-drop-report" href="javascript:void(0);">#springMessage(
515
                        ##                            "submenu.reportspricedrop")</a></li>
516
                        ##
517
                        ##                        <li><a class="credit-note" href="javascript:void(0);">Credit Note</a></li>
518
                        ##                        <li><a class="item_aging" href="javascript:void(0);">#springMessage("submenu.reportsageing")</a>
519
                        ##                        </li>
34437 ranu 520
 
521
                    </ul>
522
                </li>
523
            </ul>
524
            <!-- sidebar menu end-->
525
        </div>
526
    </aside>
527
    <!--sidebar end-->
528
 
529
    <!--main content start-->
530
    <section id="main-content">
531
        <section class="wrapper">
532
            <!--overview start-->
533
            <div class="row">
534
                <div class="col-lg-12">
34490 ranu 535
                    <h3 class="page-header" style="position:relative"><i class="fa fa-laptop"></i> Dashboard</h3>
34437 ranu 536
 
537
                    <ol class="breadcrumb">
34505 ranu 538
                        <li><i class="fa fa-home"></i><a
539
                                href="${rc.contextPath}/analysisDashboard?fofoId=$fofoId">Home</a></li>
34437 ranu 540
                        <li><i class="fa fa-laptop"></i>Dashboard</li>
541
                    </ol>
542
 
543
 
544
                </div>
545
            </div>
546
            <!-- overview end -->
547
            <div class="row">
548
                <div class="col-lg-6">
549
                    <div class="row">
550
                        <div class="col-lg-7">
551
                            <div class="info-box blue-bg">
552
                                <i class="fa fa-chart-line"></i>
553
                                <h4 style="margin-top:-2px;margin-bottom:12px"><strong>#springMessage(
554
                                    "dashboard.sale")</strong>
555
                                    <span>   <a href="#videoModal" class="btn btn-danger" data-toggle="modal"
556
                                                data-src="GQziSgeI3ZM"><span
557
                                            class="glyphicon glyphicon-play-circle"></span> Play Video</a> </span>
558
 
559
 
560
                                </h4>
561
                                <div class="row">
562
                                    <div class="col-lg-4 row">
563
                                        <div style="margin-top:0px" class="count currency">$nf.format($salesMap.get(
564
                                            "lmtdSale"))</div>
565
                                        <div class="title">LMTD</div>
566
                                    </div>
567
                                    <div class="col-lg-4 row">
568
                                        <div style="margin-top:0px" class="count currency">$nf.format($salesMap.get(
569
                                            "mtdSale"))</div>
570
                                        <div class="title">MTD</div>
571
                                    </div>
572
                                    <div class="col-lg-3 row">
573
                                        <div style="margin-top:0px" class="count currency">$nf.format($salesMap.get(
574
                                            "todaySale"))</div>
575
                                        <div class="title">Today&apos;s</div>
576
                                    </div>
577
 
578
                                    <div class="col-lg-1 row" style="margin-left: -20px;margin-top: 20px;">
579
                                        <i class="fk_more fa fa-angle-double-down" id="blue-dropdown"
580
                                           style="cursor:pointer;font-size: 27px;width: 27px;height: 27px;margin-top: 0px;color: rgba(255, 255, 255, 0.75);line-height: 27px;"></i>
581
                                    </div>
582
                                </div>
583
 
584
                                <div class="row monthsaleContainer" style="margin:5px">
585
                                </div>
586
                            </div>
587
                        </div>
588
 
589
                        <div class="col-lg-5 row">
590
                            <div class="info-box brown-bg">
591
 
592
                                <div class="row">
593
                                    <div class="col-lg-6">
594
                                        <h4 style="margin-top:-2px;margin-bottom:3px"><strong>Current Rate</strong></h4>
595
                                        <div style="margin-top:0px" class="count">
596
                                            <span class="currency">$nf.format($salesMap.get("currentRate"))</span>/day
597
                                        </div>
598
                                        <img src="${salesMap.get('currentTypeImage')}" width="60px"
599
                                             class="target-slide1">
600
                                    </div>
601
                                    <div class="col-lg-6">
602
                                        <h4 style="margin-top:-2px;margin-bottom:3px"><strong>Reqd Rate</strong></h4>
603
                                        <div style="margin-top:0px" class="count currency">
604
                                            <span class="currency">$nf.format($salesMap.get("requiredRate"))</span>/day
605
                                        </div>
606
                                        <img src="${salesMap.get('requiredTypeImage')}" width="60px"
607
                                             class="target-slide1">
608
                                    </div>
609
                                </div>
610
                            </div>
611
                        </div>
612
                        <div class="col-lg-7">
613
                            <div class="info-box purple-bg">
614
                                <div class="col-lg-12 row">
615
                                    <i class="fa fa-coins"></i>
616
                                    <h4 style="margin-top:-2px;margin-bottom:12px"><strong>#springMessage(
617
                                        "dashboard.investment")</strong></h4>
618
                                    <div class="row">
619
                                        <div class="col-lg-3">
620
                                            <div class="row">
621
                                                <div style="margin-top:0px" class="count currency">$investments.get(
622
                                                    "today")</div>
623
                                                <div class="title">#springMessage("dashboard.current")</div>
624
                                                <div class="col-lg-1" style="margin-left: -20px;margin-top: -6px;">
625
                                                    <i class="fk_more fa fa-angle-double-down flash"
626
                                                       id="purple-dropdown"
627
                                                       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>
628
                                                </div>
629
                                            </div>
630
                                        </div>
631
 
632
                                        <div class="col-lg-3">
633
                                            <div style="margin-top:0px" class="count">$investments.get("minimum")</div>
634
                                            <div class="title">min</div>
635
                                        </div>
636
                                        <div class="col-lg-3 row"
637
                                            #if(!$isInvestmentOk)
638
                                             style="color:red; background: white;"
639
                                            #end
640
                                        >
641
                                            #if($investments.get("short")<=0)
642
                                                <div style="margin-top:0px" class="count">100%</div>
643
                                                <div class="title">OK</div>
644
                                            #else
645
                                                <div style="margin-top:0px" class="count">$investments.get("short")%
646
                                                </div>
647
                                                <div class="title">short</div>
648
                                            #end
649
                                        </div>
650
                                    </div>
651
                                    <div class="row investmentContainer" style="margin:5px">
652
                                    </div>
653
                                </div>
654
                            </div>
655
                        </div>
656
                        <div class="col-lg-5 row">
657
                            #if($staticScheme)
658
                                <div class="info-box white-bg" style="padding:0;height: 159px">
659
                                    <div class="col-lg-6"
660
                                         style="background-size: 135px !important;background:url('/resources/images/super-retailer.jpg') no-repeat;height: 161px;"
661
                                    >
662
                                        <div
663
                                                style="position: absolute;bottom: 4px;left: auto;width: 100%;left:-5px;
664
                                                text-align: center;color: #333333;margin-bottom: 4px;font-size: 18px; font-weight: bold">
665
                                            $schemeCategory</div>
666
                                    </div>
667
                                    <div class="col-lg-6 row">
668
                                        <div class="row" style="margin-top:6px">
669
                                            <div style="text-align: center;font-size: 13px;font-weight: bold;color: black;margin-top: 3px">
670
                                                Aug 1 - Nov 30
671
                                            </div>
672
                                            <p style="margin: 0 0 8px"></p>
673
                                            <div style="text-align: center;font-size: 13px;font-weight: bold;color: black">
674
                                                TOTAL TARGET
675
                                            </div>
676
                                            <div class="rcurrency"
677
                                                 style="text-align: center;font-size: 20px;font-weight: bold;color: red">
678
                                                $staticScheme.getTarget()
679
                                            </div>
680
                                        </div>
681
                                        <hr style="margin-top:6px;margin-bottom: 6px"/>
682
                                        <div class="row">
683
                                            <div style="text-align: center;font-size: 13px;font-weight: bold;color: black">
684
                                                TOTAL ACHIEVEMENT
685
                                            </div>
686
                                            <div class="rcurrency red"
687
                                                 style="text-align: center;font-size: 20px;font-weight: bold;color: red">
688
                                                $nf.format($schemeAchievement)
689
                                            </div>
690
                                        </div>
691
                                    </div>
692
                                </div>
693
                            #else
694
                                <div class="info-box orange-bg"
695
                                     style="background-image: linear-gradient(#ff7f50 ,orange); box-shadow: 6px 5px 6px #ff7f50;">
696
                                    <i class="fa fa-chart-line"></i>
697
                                    <h4 style="margin-top:-2px;margin-bottom:12px"><strong>#springMessage(
698
                                        "dashboard.onlinesale")</strong></h4>
699
                                    <div class="row">
700
                                        <div class="col-lg-3" style="margin:5px">
701
                                            <div style="margin-top:0px; margin-left:24px;"
702
                                                 class="count currency">$countOrder</div>
703
                                            <button class="btn-warning">
704
                                                <div class="title pending_order_dashboard"
705
                                                     style="cursor: pointer; color:black;">
706
                                                    #springMessage("dashboard.pendingorder")
707
                                                </div>
708
                                            </button>
709
                                        </div>
710
 
711
                                        <div class="col-lg-4 row" style="margin:5px">
712
                                            #if($onlineDeliveredOrderSum)
713
                                                <div style="margin-top:0px; margin-left:37px;"
714
                                                     class="count currency">$onlineDeliveredOrderSum</div>
715
                                            #else
716
                                                <div style="margin-top:0px; margin-left:20px;" class="count currency">
717
 
718
                                                </div>
719
                                            #end
720
                                            <button class="btn-warning">
721
                                                <div class="title total_sale_dashboard"
722
                                                     style="cursor: pointer; color:black;">Online Sales
723
                                                </div>
724
                                            </button>
725
                                        </div>
726
                                    </div>
727
                                </div>
728
                            #end
729
                        </div>
730
                    </div>
731
 
732
 
733
                    <div class="row">
734
                        <div class="col-lg-9">
735
                            <div class="info-box pink-bg" style="height: 160px;">
736
                                <h4 style="margin-top:-2px;margin-bottom:12px"><strong>Order Summary</strong></h4>
737
 
738
                                <div class="col-lg-3 row">
739
                                    <h4 style="margin-top:-2px;margin-bottom:12px;"><strong
740
                                            style="font-size: 16px; cursor:pointer; margin-left: 9px;"
741
                                            class="pndg-status">Pending</strong></h4>
742
                                    #if($submittedCount && $submittedValue)
743
                                        <div class="col-lg-3">
744
                                            <div style="margin-top:0px" class="count currency">$submittedCount</div>
745
                                            <div class="title">Qty</div>
746
                                        </div>
747
                                        <div class="col-lg-4">
748
                                            <div style="margin-top:0px" class="count currency">$submittedValue</div>
749
                                            <div class="title" style="margin-left:5px;">Value</div>
750
                                        </div>
751
                                    #else
752
                                        <div class="col-lg-3">
753
                                            <div style="margin-top:0px" class="count currency">0</div>
754
                                            <div class="title">Qty</div>
755
                                        </div>
756
                                        <div class="col-lg-4">
757
                                            <div style="margin-top:0px" class="count currency">0</div>
758
                                            <div class="title" style="margin-left:5px;">Value</div>
759
                                        </div>
760
 
761
                                    #end
762
 
763
 
764
                                </div>
765
 
766
                                <div class="col-lg-3">
767
                                    <h4 style="margin-top:-2px;margin-bottom:12px"><strong
768
                                            style="font-size: 19px; cursor:pointer; margin-left: 15px;"
769
                                            class="billed-status">#springMessage("dashboard.billed")</strong></h4>
770
 
771
                                    #if($billedCount && $billedValue)
772
                                        <div class="col-lg-3">
773
                                            <div style="margin-top:0px" class="count currency">$billedCount</div>
774
                                            <div class="title">Qty</div>
775
                                        </div>
776
                                        <div class="col-lg-4">
777
                                            <div style="margin-top:0px" class="count currency">$billedValue</div>
778
                                            <div class="title" style="margin-left:5px;">Value</div>
779
                                        </div>
780
                                    #else
781
                                        <div class="col-lg-3">
782
                                            <div style="margin-top:0px" class="count currency">0</div>
783
                                            <div class="title">Qty</div>
784
                                        </div>
785
                                        <div class="col-lg-4">
786
                                            <div style="margin-top:0px" class="count currency">0</div>
787
                                            <div class="title" style="margin-left:5px;">Value</div>
788
                                        </div>
789
 
790
                                    #end
791
                                </div>
792
 
793
                                <div class="col-lg-3">
794
                                    <h4 style="margin-top:-2px;margin-bottom:12px"><strong
795
                                            style="font-size: 19px;  cursor:pointer; margin-left: 15px;"
796
                                            class="shipped-status">#springMessage("dashboard.dispatched")</strong></h4>
797
 
798
                                    #if($shippedCount && $shippedValue)
799
                                        <div class="col-lg-3">
800
                                            <div style="margin-top:0px" class="count currency">$shippedCount</div>
801
                                            <div class="title">Qty</div>
802
                                        </div>
803
                                        <div class="col-lg-4">
804
                                            <div style="margin-top:0px" class="count currency">$shippedValue</div>
805
                                            <div class="title" style="margin-left:5px;">Value</div>
806
                                        </div>
807
                                    #else
808
                                        <div class="col-lg-3">
809
                                            <div style="margin-top:0px" class="count">0</div>
810
                                            <div class="title">Qty</div>
811
                                        </div>
812
                                        <div class="col-lg-4">
813
                                            <div style="margin-top:0px" class="count">0</div>
814
                                            <div class="title" style="margin-left:5px;">Value</div>
815
                                        </div>
816
 
817
                                    #end
818
                                </div>
819
 
820
                                <div class="col-lg-3">
821
                                    <h4 style="margin-top:-2px;margin-bottom:12px"><strong
822
                                            style="font-size: 19px;overflow: hidden;text-overflow:ellipsis;white-space: nowrap;  cursor:pointer;"
823
                                            class="grn-status">#springMessage("dashboard.grnpending")</strong></h4>
824
 
825
                                    #if($grnPendingCount &&  $grnPendingValue )
826
                                        <div class="col-lg-3">
827
                                            <div style="margin-top:0px"
828
                                                 class="count currency">$grnPendingCount</div>
829
                                            <div class="title">Qty</div>
830
                                        </div>
831
                                        <div class="col-lg-4">
832
                                            <div style="margin-top:0px"
833
                                                 class="count currency">$grnPendingValue</div>
834
                                            <div class="title" style="margin-left:5px;">Value</div>
835
                                        </div>
836
                                    #else
837
                                        <div class="col-lg-3">
838
                                            <div style="margin-top:0px" class="count currency">0</div>
839
                                            <div class="title">Qty</div>
840
                                        </div>
841
                                        <div class="col-lg-4">
842
                                            <div style="margin-top:0px" class="count currency">0</div>
843
                                            <div class="title" style="margin-left:5px;">Value</div>
844
                                        </div>
845
 
846
                                    #end
847
                                </div>
848
                            </div>
849
                        </div>
850
                        <div class="col-lg-3 row" style="height: 190px;">
851
                            <div class="info-box green-bg" style="min-height: 160px;">
852
                                <i class="fa fa-cubes"></i>
853
                                <div class="count currency">$investments.get("inStock")</div>
854
                                <div class="title">#springMessage("dashboard.totalstock")</div>
855
                            </div>
856
                        </div>
857
                    </div>
858
                    <div class="row">
859
 
860
                        <div class="col-lg-8 partnerIncomeContainer"></div>
861
 
862
                        <div class="col-lg-4">
863
                            <div class="info-box green-bg" style="height: 145px;">
864
                                <h4 style="margin-top:-2px;margin-bottom:12px"><strong>#springMessage(
865
                                    "dashboard.monthlytarget")</strong></h4>
866
 
867
                                <div class="col-lg-6">
868
                                    <h4 style="margin-top:-2px;margin-bottom:12px;">
869
                                        <strong style="cursor:pointer; margin-left: 9px;">Sale</strong>
870
                                    </h4>
871
                                    <div class="col-lg-6">
872
                                        #if($monthlyTarget && $monthlyTarget.getSaleTarget() >0)
873
                                            <div style="margin-top:0px"
874
                                                 class="count currency">$monthlyTarget.getSaleTarget()</div>
875
                                        #else
876
                                            <div style="margin-top:0px" class="count currency">-</div>
877
                                        #end
878
                                    </div>
879
                                </div>
880
 
881
                                <div class="col-lg-6">
882
                                    <h4 style="margin-top:-2px;margin-bottom:12px;"><strong
883
                                            style="font-size: 16px; cursor:pointer; margin-left: 9px;"
884
                                    >#springMessage("dashboard.purchase")</strong></h4>
885
                                    <div class="col-lg-6">
886
                                        #if($monthlyTarget && $monthlyTarget.getPurchaseTarget() > 0)
887
                                            <div style="margin-top:0px"
888
                                                 class="count currency">$monthlyTarget.getPurchaseTarget()</div>
889
 
890
                                        #else
891
                                            <div style="margin-top:0px" class="count currency"> -</div>
892
 
893
                                        #end
894
                                    </div>
895
                                </div>
896
                            </div>
897
 
898
                        </div>
899
                    </div>
900
 
901
                    <div class="row">
902
                        <div class="Mobile">
903
                            #foreach($brandStockPrice in $brandStockPrices)
904
 
905
                                <div class="col-lg-3">
906
                                    <div class="card card-default">
907
							<span class="card-body" style="padding-bottom:0px">
908
								<table>
909
									<thead>
910
										<tr><td colspan="2">Current Stock</td></tr>
911
									</thead>
912
									<tbody>
913
										<tr><th>Qty</th><td>$brandStockPrice.getTotalQty()pc</td></tr>
914
										<tr><th>Value</th><td><span
915
                                                class="currency">$brandStockPrice.getTotalValue()</span></td></tr>
916
									</tbody>
917
								</table>
918
                                #if($brandStockPrice.getAgedValue()>0)
919
                                    <p style="color:#d15a57;font-weight:700" title="Focus Stock">
920
									<span class="currency">$brandStockPrice.getAgedValue()</span> / $brandStockPrice.getAgedQty()
921
								</p>
922
                                #else
923
                                    <p>&nbsp;</p>
924
                                #end
925
							</span>
926
                                        <span class="card-img" style="text-align:center">
927
							<img src="${brandStockPrice.getBrandUrl()}" data-stockbrand="$brandStockPrice.getBrand()"
928
                                 class="cover $brandStockPrice.getBrand()" id="stockcatalog"
929
                                 class="$brandStockPrice.getBrand()">
930
							</span></span>
931
                                    </div>
932
                                </div>
933
                            #end
934
                        </div>
935
                        <div class="row">
936
 
937
                            <div class="col-lg-3">
938
                                <div class="card card-default">
939
							<span class="card-body" style="padding-bottom:38px;">
940
								<table>
941
									<thead>
942
										<tr><td colspan="2">Current Stock</td></tr>
943
									</thead>
944
									<tbody>
945
										<tr><th>Value</th><td><span class="currency">$accesoriesStock</span></td></tr>
946
									</tbody>
947
								</table>
948
							</span>
949
                                    <span class="card-img">
950
								<img src="resources/images/accessories.jpg" id="accesoriesStock"
951
                                     class="accesoriesClass">
952
							</span>
953
                                </div>
954
                            </div>
955
 
956
                        </div>
957
                    </div>
958
 
959
 
960
                </div>
961
 
962
                <div class="col-lg-6">
963
                    <div class="row">
964
 
965
                        <div class="form-group">
966
                            <label class="control-label col-lg-4" for="months">#springMessage(
967
                                "dashboard.offerforthemonth")</label>
968
                            <div class="col-lg-2">
969
                                <select class="form-control input-sm" id="mk_offer_brand_filter" name="offerBrandFilter"
970
                                        placeholder="brand" style="margin:auto;">
971
                                    <option value="" disabled selected>Select Brand</option>
972
                                    <option value="">All</option>
973
                                    #foreach($brand in $brands)
974
                                        <option value="$brand">$brand</option>
975
                                    #end
976
                                </select>
977
                            </div>
978
                            <div class="col-lg-4">
979
                                <select class="form-control input-sm" id="offer-months" name="months"
980
                                        placeholder="months" style="margin:auto;">
981
                                    <option value="" disabled selected>Month</option>
982
                                    #foreach($mVM in $monthValueMap.entrySet())
983
                                        #if($mVM.getKey()== $month )
984
                                            <option value="$mVM.getKey()" selected>$mVM.getValue()</option>
985
                                        #else
986
                                            <option value="$mVM.getKey()">$mVM.getValue()</option>
987
                                        #end
988
                                    #end
989
                                </select>
990
                            </div>
991
                            <div class="col-lg-2">
992
                                <!--Training Video -->
993
                                <a href="#videoModal" class="btn btn-danger" data-toggle="modal"
994
                                   data-src="Nv7J2L_BPCU"><span
995
                                        class="glyphicon glyphicon-play-circle"></span> Play Video</a>
996
                            </div>
997
                        </div>
998
                    </div>
999
                    <div id="offer-container">
1000
                        #parse("published-offers.vm")
1001
                    </div>
1002
                    <div class="offer-margin-container">
1003
                        <div class="modal  text-center" id="offerDescription">
1004
                            <div class="modal-dialog modal-lg modal-dialog-scrollable">
1005
                                <div class="modal-content">
1006
                                </div>
1007
                            </div>
1008
                        </div>
1009
                    </div>
1010
 
1011
                    <div class="row col-lg-12 info-box white-bg" id="performanceContainer">
1012
                        #parse("performance.vm")
1013
                    </div>
1014
                    <!--<div class="row col-lg-12 info-box white-bg" id="performanceContainer">
1015
                        ##parse("performance-weekly.vm")
1016
                    </div>-->
1017
                    #if($activatedImeis > 0)
1018
                        <div class="row col-lg-12 info-box white-bg">
1019
                            #parse("dashboard-activated-imeis.vm")
1020
                        </div>
1021
                    #end
1022
                    #if($imeiActivationPendingCount > 0)
1023
                        <div class="row col-lg-12 info-box white-bg">
1024
                            #parse("dashboard-grn-pending-activated-imeis.vm")
1025
                        </div>
1026
                    #end
1027
                    <div class="row col-lg-12">
1028
                        <ul class="nav nav-tabs">
1029
                            <li class="bar_chart"><a class="ba">Sale</a></li>
1030
                            <li class="lms_line_chart"><a class="la">#springMessage("dashboard.monthlysale")</a></li>
1031
                            <li class="purchase_line_chart"><a class="pa">#springMessage(
1032
                                "dashboard.monthlypurchase")</a></li>
1033
                            <li class="priceDrop_chart"><a class="pd">#springMessage("dashboard.pricedrop")</a></li>
1034
                            <li class="pending_activation_chart"><a class="pac">Pending Activation</a></li>
1035
                            <li class="pending_upgrade_offer"><a class="puo"> #springMessage(
1036
                                "dashboard.upgradeoffer")</a></li>
1037
 
1038
                        </ul>
1039
                        <div style="float:left;margin-top: 2% ; font-size: 20px ;margin-left: 5%" id="dateRangeDiv">
1040
                            From:
1041
                            <input type="date" name="from" id="chartForm" value="">
1042
                            To:
1043
                            <input type="date" name="to" id="chartTo" value="">
1044
 
1045
                            <select name="quantityType" id="quantity_type_id">
1046
                                <option value="false" selected>Value</option>
1047
                                <option value="true">Quantity</option>
1048
                            </select>
1049
                            <button id="viewSaleBarChart" class="btn-success">
1050
                                Veiw Chart
1051
                            </button>
1052
                        </div>
1053
                        <br>
1054
                        <div class="row ChartContainer" style="margin:5px;margin-top: 4%">
1055
 
1056
                        </div>
1057
 
1058
 
1059
                    </div>
1060
                    <div class="clearfix"></div>
1061
                    <div class="model_charbar_container">
1062
 
1063
                    </div>
1064
 
1065
 
1066
                </div>
1067
            </div>
1068
            </div>
1069
        </section>
1070
        <div class="text-center">
1071
            <div id="like_button_container"></div>
1072
            <div class="credits">
1073
                <p>All rights reserved.&copy;2017, Smart Dukaan</p>
1074
            </div>
1075
        </div>
1076
 
1077
    </section>
1078
 
1079
    <script type="text/javascript">
1080
        context = "${rc.contextPath}";
1081
        webApiScheme = "$webApiScheme";
1082
        webApiRoot = "$webApiRoot";
1083
        webApiHost = "$webApiHost";
1084
        webApiPort = "$webApiPort";
1085
    </script>
1086
    #parse("include-scripts.vm")
1087
 
1088
    <script type="text/javascript">
1089
        $(document).ready(function () {
1090
            $("#offerDescription").modal({backdrop: "static", keyboard: true, focus: true, show: false});
1091
            var salesCloseFlag = true;
1092
            $("#blue-dropdown").click(function () {
1093
                // console.log("clicked");
1094
                if (salesCloseFlag) {
1095
                    var containerWidth = $(".blue-bg").width()
1096
                    doGetAjaxRequestHandler(context + "/getMonthSale", function (response) {
1097
                        $('.monthsaleContainer').html(response);
1098
 
1099
                        $(".blue-bg").css({"position": "absolute", "z-index": "10"}).width(containerWidth);
1100
                    });
1101
                } else {
1102
                    $(".blue-bg").removeAttr('style');
1103
                    $('.monthsaleContainer').html('');
1104
                }
1105
                salesCloseFlag = !salesCloseFlag;
1106
            });
1107
 
1108
            $(".bar_chart").click();
1109
 
1110
            var month = 0;
1111
            doGetAjaxRequestHandler(context + "/partnerTotalIncomeByMonth/" + month, function (response) {
1112
                console.log(response);
1113
                $(".partnerIncomeContainer").html(response);
1114
            });
1115
 
1116
            var investmentCloseFlag = true;
1117
            $("#purple-dropdown").click(function () {
1118
                console.log('hello');
1119
                $(".flash").stop();
1120
                // console.log("clicked");
1121
                if (investmentCloseFlag) {
1122
                    var containerWidth = $(".purple-bg").width()
1123
                    doGetAjaxRequestHandler(context + "/investmentDetails", function (response) {
1124
                        $('.investmentContainer').html(response);
1125
                        $(".purple-bg").css({"position": "absolute", "z-index": "10"}).width(containerWidth);
1126
                    });
1127
                } else {
1128
                    $(".purple-bg").removeAttr('style');
1129
                    $('.investmentContainer').html('');
1130
                }
1131
                investmentCloseFlag = !investmentCloseFlag;
1132
            });
1133
        });
1134
 
1135
        function sleep(delay) {
1136
            var start = new Date().getTime();
1137
            while (new Date().getTime() < start + delay) ;
1138
        }
1139
 
1140
        $(document).on("click", ".priceDrop_chart",
1141
                function () {
1142
                    $(".pd").css("color", "blue");
1143
                    $(".pd").css("background-color", "white");
1144
                    $(".ba").css("color", "white");
1145
                    $(".ba").css("background-color", "#C0C0C0");
1146
                    $(".pa").css("color", "white");
1147
                    $(".pa").css("background-color", "#C0C0C0");
1148
                    $(".la").css("color", "white");
1149
                    $(".la").css("background-color", "#C0C0C0");
1150
 
1151
                    $(".pac").css("color", "white");
1152
                    $(".pac").css("background-color", "#C0C0C0");
1153
 
1154
 
1155
                    $(".puo").css("color", "white");
1156
                    $(".puo").css("background-color", "#C0C0C0");
1157
 
1158
 
1159
                    sleep(500);
1160
                    doGetAjaxRequestHandler(context + "/getMonthlyPriceDrop", function (response) {
1161
 
1162
                        $('.ChartContainer').html(response);
1163
                    });
1164
                });
1165
 
1166
 
1167
        $(document).on("click", ".pending_activation_chart",
1168
                function () {
1169
                    $(".pac").css("color", "blue");
1170
                    $(".pac").css("background-color", "white");
1171
 
1172
                    $(".pd").css("color", "white");
1173
                    $(".pd").css("background-color", "#C0C0C0");
1174
                    $(".ba").css("color", "white");
1175
                    $(".ba").css("background-color", "#C0C0C0");
1176
                    $(".pa").css("color", "white");
1177
                    $(".pa").css("background-color", "#C0C0C0");
1178
                    $(".la").css("color", "white");
1179
                    $(".la").css("background-color", "#C0C0C0");
1180
 
1181
                    $(".puo").css("color", "white");
1182
                    $(".puo").css("background-color", "#C0C0C0");
1183
 
1184
                    sleep(500);
1185
                    doGetAjaxRequestHandler(context + "/getMonthlyActivation", function (response) {
1186
 
1187
                        $('.ChartContainer').html(response);
1188
                    });
1189
                });
1190
 
1191
        $(document).on("click", ".purchase_line_chart",
1192
                function () {
1193
                    $(".pa").css("color", "blue");
1194
                    $(".pa").css("background-color", "white");
1195
                    $(".ba").css("color", "white");
1196
                    $(".ba").css("background-color", "#C0C0C0");
1197
                    $(".pd").css("color", "white");
1198
                    $(".pd").css("background-color", "#C0C0C0");
1199
                    $(".la").css("color", "white");
1200
                    $(".la").css("background-color", "#C0C0C0");
1201
 
1202
                    $(".pac").css("color", "white");
1203
                    $(".pac").css("background-color", "#C0C0C0");
1204
 
1205
                    $(".puo").css("color", "white");
1206
                    $(".puo").css("background-color", "#C0C0C0");
1207
 
1208
                    doGetAjaxRequestHandler(context + "/getMonthlyPurchaseLineChart", function (response) {
1209
                        $('.ChartContainer').html(response);
1210
                    });
1211
                });
1212
 
1213
        $(document).on("click", ".lms_line_chart",
1214
                function () {
1215
 
1216
                    $(".ba").css("color", "white");
1217
                    $(".ba").css("background-color", "#C0C0C0");
1218
                    $(".pa").css("color", "white");
1219
                    $(".pa").css("background-color", "#C0C0C0");
1220
                    $(".la").css("color", "blue");
1221
                    $(".la").css("background-color", "white");
1222
                    $(".pd").css("color", "white");
1223
                    $(".pd").css("background-color", "#C0C0C0");
1224
 
1225
                    $(".pac").css("color", "white");
1226
                    $(".pac").css("background-color", "#C0C0C0");
1227
 
1228
                    $(".puo").css("color", "white");
1229
                    $(".puo").css("background-color", "#C0C0C0");
1230
 
1231
                    doGetAjaxRequestHandler(context + "/getlmsLineChart", function (response) {
1232
                        $('.ChartContainer').html(response);
1233
                    });
1234
                });
1235
 
1236
        $(document).on("click", ".bar_chart",
1237
                function () {
1238
                    $(".ba").css("color", "blue");
1239
                    $(".ba").css("background-color", "white");
1240
                    $(".la").css("color", "white");
1241
                    $(".la").css("background-color", "#C0C0C0");
1242
                    $(".pa").css("color", "white");
1243
                    $(".pa").css("background-color", "#C0C0C0");
1244
                    $(".pd").css("color", "white");
1245
                    $(".pd").css("background-color", "#C0C0C0");
1246
 
1247
                    $(".pac").css("color", "white");
1248
                    $(".pac").css("background-color", "#C0C0C0");
1249
 
1250
                    $(".puo").css("color", "white");
1251
                    $(".puo").css("background-color", "#C0C0C0");
1252
 
1253
 
1254
                    doGetAjaxRequestHandler(context + "/getBarChart", function (response) {
1255
                        $('.ChartContainer').html(response);
1256
                    });
1257
                });
1258
 
1259
 
1260
        $(document).on("click", ".pending_upgrade_offer",
1261
                function () {
1262
 
1263
                    $(".puo").css("color", "blue");
1264
                    $(".puo").css("background-color", "white");
1265
 
1266
                    $(".ba").css("color", "white");
1267
                    $(".ba").css("background-color", "#C0C0C0");
1268
                    $(".la").css("color", "white");
1269
                    $(".la").css("background-color", "#C0C0C0");
1270
                    $(".pa").css("color", "white");
1271
                    $(".pa").css("background-color", "#C0C0C0");
1272
                    $(".pd").css("color", "white");
1273
                    $(".pd").css("background-color", "#C0C0C0");
1274
 
1275
                    $(".pac").css("color", "white");
1276
                    $(".pac").css("background-color", "#C0C0C0");
1277
 
1278
                    doGetAjaxRequestHandler(context + "/getMonthlySamsungUpgradeOffer", function (response) {
1279
                        $('.ChartContainer').html(response);
1280
                    });
1281
                });
1282
 
1283
 
1284
        $(document).on("click", "p.description-offer",
1285
                function (e) {
1286
                    var offerid = $(this).data('offerid');
1287
                    console.log(offerid);
1288
                    doGetAjaxRequestHandler(context + "/getOfferMargins?offerId="
1289
                            + offerid, function (response) {
1290
                        $('.offer-margin-container .modal-content').html(response);
1291
                        $("#offerDescription").modal('handleUpdate');
1292
                        $("#offerDescription").modal('show');
1293
                    });
1294
                });
1295
 
1296
 
1297
        $(document).on("click", ".cancel-description",
1298
                function (e) {
1299
                    $("#descriptionMenu").empty();
1300
                });
1301
 
1302
 
1303
        $(document).on("click", "#cancel-model", function (e) {
1304
            $("#descriptionMenu").empty();
1305
        });
1306
 
1307
        $(document).on('change', "#month-wise-total-income", function () {
1308
 
1309
            var month = $(this).val();
1310
            console.log(month);
1311
 
1312
            doGetAjaxRequestHandler(context + "/partnerTotalIncomeByMonth/" + month, function (response) {
1313
                console.log(response);
1314
                $(".partnerIncomeContainer").html(response);
1315
            });
1316
        });
1317
 
1318
 
1319
        $(document).on('change', "#performance-months", function () {
1320
 
1321
            var month = $("#performance-months").val();
1322
            console.log(month);
1323
 
1324
            doGetAjaxRequestHandler(context + "/getMonthsInvestment?month=" + month, function (response) {
1325
                console.log(response);
1326
                $("#performanceContainer").html(response);
1327
 
1328
            });
1329
        });
1330
 
1331
 
1332
        $(document).on('change', "#offer-months,#mk_offer_brand_filter", function () {
1333
            var monthSearch = $('#offer-months').val();
1334
            var brandFilter = $('#mk_offer_brand_filter').val();
1335
            console.log("monthSearch - ", monthSearch)
1336
            console.log("brandFilter - ", brandFilter)
1337
            var url;
1338
            if (!brandFilter) {
1339
                url = `${context}/published-offers?yearMonth=${monthSearch}`;
1340
            } else {
1341
                url = `${context}/published-offers?yearMonth=${monthSearch}&brandFilter=${brandFilter}`;
1342
            }
1343
            console.log("url - ", url);
1344
            doGetAjaxRequestHandler(url, function (response) {
1345
                $("#offer-container").html(response);
1346
            });
1347
        });
1348
 
1349
 
1350
        $(document).on("click", ".pndg-status", function () {
1351
            console.log("Hello");
1352
            pendingOrderStatus("main-content");
1353
        });
1354
 
1355
        function pendingOrderStatus(domId) {
1356
            doGetAjaxRequestHandler(context + "/getPendingOrderStatus", function (response) {
1357
                console.log(response);
1358
                $('#' + domId).html(response);
1359
            });
1360
        }
1361
 
1362
        $(document).on("click", ".billed-status", function () {
1363
            console.log("Hello");
1364
            billedOrderStatus("main-content");
1365
        });
1366
 
1367
        function billedOrderStatus(domId) {
1368
            doGetAjaxRequestHandler(context + "/getBilledOrderStatus", function (response) {
1369
                console.log(response);
1370
                $('#' + domId).html(response);
1371
            });
1372
        }
1373
 
1374
        $(document).on("click", ".shipped-status", function () {
1375
            console.log("Hello");
1376
            shippedOrderStatus("main-content");
1377
        });
1378
 
1379
        function shippedOrderStatus(domId) {
1380
            doGetAjaxRequestHandler(context + "/getShippedOrderStatus", function (response) {
1381
                console.log(response);
1382
                $('#' + domId).html(response);
1383
            });
1384
        }
1385
 
1386
        $(document).on("click", ".grn-status", function () {
1387
            console.log("Hello");
1388
            grnOrderStatus("main-content");
1389
        });
1390
 
1391
        function grnOrderStatus(domId) {
1392
            doGetAjaxRequestHandler(context + "/getGrnPendingOrderStatus", function (response) {
1393
                console.log(response);
1394
                $('#' + domId).html(response);
1395
            });
1396
        }
1397
 
1398
        function lastMonthCreditIncome(domId) {
1399
            let monthVal = $("#month-wise-total-income").val();
1400
            doGetAjaxRequestHandler(`${context}/monthWisePartnerIncome/${monthVal}`, function (response) {
1401
                console.log(response);
1402
                $('#' + domId).html(response);
1403
            });
1404
        }
1405
 
1406
        $(document).on("click", ".pending-income", function () {
1407
            console.log("Hello");
1408
            lastMonthCreditIncome("main-content");
1409
        });
1410
 
1411
        $(document).on("click", ".total-income-calc", function () {
1412
            console.log("Hello");
1413
            lastMonthCreditIncome("main-content");
1414
        });
1415
 
1416
 
1417
    </script>
1418
    <script>
1419
 
1420
        //knob
1421
        $(function () {
1422
            /*$(".knob").knob({
1423
              'draw' : function () {
1424
                $(this.i).val(this.cv + '%')
1425
              }
1426
            });*/
1427
            $.fn.dataTable.moment('DD/MM/YYYY');
1428
            $.fn.dataTable.moment('DD/MM/YYYY hh:mm');
1429
            $('.currency').each(function (index, ele) {
1430
                if (!isNaN(parseInt($(ele).html()))) {
1431
                    $(ele).html(numberToComma($(ele).html()));
1432
                }
1433
            });
1434
        });
1435
 
1436
        $(function () {
1437
            var profile = localStorage.getItem('profile');
1438
            if (profile) {
1439
                $("#photo").attr("src", JSON.parse(profile).image_url);
1440
                $("#fofo_name").text(JSON.parse(profile).name);
1441
            } else {
1442
                $("#photo").attr("src", "");
1443
                $("#fofo_name").text("Welcome, User");
1444
            }
1445
        });
1446
 
1447
        $(function () {
1448
            var bag = localStorage.getItem('bag');
1449
            console.log(bag);
1450
            if (bag) {
1451
                console.log("yes");
1452
                //$("#cart_bar").find('span').text(10);
1453
                $("#cart_bar").find('span').text(Object.keys(JSON.parse(bag)).length);
1454
            } else {
1455
                $("#cart_bar").find('span').text(0);
1456
            }
1457
        });
1458
 
1459
        $("#logout").click(function () {
1460
            localStorage.profile = undefined;
1461
        });
1462
            #set($partnerInvestment = $investments.get("investment"))
1463
        saleAmount = numberToComma($partnerInvestment.getSalesAmount());
1464
        minimumInvestmentAmount = numberToComma($partnerInvestment.getMinInvestment());
1465
        totalInvestedAmount = numberToComma($partnerInvestment.getTotalInvestment());
1466
        shortPercentage = numberToComma($partnerInvestment.getShortPercentage());
1467
        grnPendingStockAmount = numberToComma($partnerInvestment.getGrnPendingAmount());
1468
        unbilledStockAmount = numberToComma($partnerInvestment.getUnbilledAmount());
1469
        inStockAmount = numberToComma($partnerInvestment.getInStockAmount());
1470
        walletAmount = numberToComma($partnerInvestment.getWalletAmount());
1471
        shortAmount = numberToComma($partnerInvestment.getShortInvestment());
1472
        minAmountToBeAdded = numberToComma($partnerInvestment.getMinAmountToBeAdded());
1473
        isInvestmentOk = $isInvestmentOk;
1474
        starTotal = 5;
1475
        /*ratings = {
1476
            current: $currentMonthRating,
1477
            last: $lastMonthRating,
1478
            tilldate: $ratingTillDate
1479
        };
1480
        for (const rating in ratings) {
1481
            // 2
1482
            const starPercentage = (ratings[rating] / starTotal) * 100;
1483
            // 3
1484
            const starPercentageRounded = `${starPercentage}%`;
1485
            // 4
1486
            document.querySelector(`.${rating} .stars-inner`).style.width = starPercentageRounded;
1487
        }*/
1488
 
1489
        hasGift =$hasGift;
1490
        giftItemId = $giftItemId;
1491
        monthDays =$monthDays;
1492
        dayOfMonth = $dayOfMonth;
1493
        $(function () {
1494
            $('#links_bar').popover({
1495
                container: ".notification-row",
1496
                template: `<div class="popover" style="min-width: 18%;">
1497
							<div class="arrow"></div>
1498
							<div class="popover-inner">
1499
								<h4 class="popover-title">
1500
								</h4>
1501
								<div class="popover-content"><p></p></div>
1502
							</div>
1503
						</div>`,
1504
                html: true,
1505
                content: `<div class="container-fluid">
1506
		    				<div class="row"><h5 class="page-header" style="color:#333;margin:6px 0 3px">Quick Links</h5></div>
1507
		    				<div class="row">
1508
							    <div class="col-lg-3">
1509
								    <a href="/spicemoney/getToken" target="_blank" href="">
1510
								    	<img title="Spice Money" src="/resources/images/icons/provider-logos/spicemoney.jpg" style="width:40px"></img>
1511
								    </a>
1512
								</div>
1513
							</div>
1514
		    			</div>`,
1515
                placement: "bottom",
1516
                trigger: "focus"
1517
            });
1518
        });
1519
 
1520
        function showAttendanceModal() {
1521
            var today = new Date().getTime();
1522
            if ($.cookie("punchIn") == undefined) {
1523
                document.cookie = "punchIn=" + today;
1524
            }
1525
            if (today >= parseInt($.cookie("punchIn"))) {
1526
                doGetAjaxRequestHandler(context + "/getPunchInOutForModel", function (response) {
1527
                    if (response == 'true') {
1528
                        $('#punchInOutModal').modal('hide');
1529
                        clearInterval(stopInterval);
1530
                    } else {
1531
                        $("#punch-in-out-model").html(response);
1532
                        $('#punchInOutModal').modal('show');
1533
                        var time = today + 30 * 60 * 1000
1534
                        document.cookie = "punchIn=" + time;
1535
                    }
1536
                });
1537
            }
1538
        }
1539
 
1540
        var stopInterval;
1541
        $(document).ready(function () {
1542
            stopInterval = setInterval(showAttendanceModal, 100000000);
1543
 
1544
            $('div.message-filter').on('click', 'button', function () {
1545
 
1546
                messageType = $(this).data("messagetype");
1547
                notifyTypeChange(messageType, $(this));
1548
 
1549
            });
1550
        });
1551
 
1552
 
1553
        $(function () {
1554
            if (navigator.geolocation) {
1555
                navigator.geolocation.getCurrentPosition(showPosition);
1556
            } else {
1557
                console.log("Geolocation is not supported by browser.");
1558
            }
1559
            loaderDialogObj = bootbox.dialog({
1560
                message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
1561
                show: false
1562
            });
1563
 
1564
            /* Assign empty url value to the iframe src attribute when
1565
                modal hide, which stop the video playing */
1566
            $("#videoModal").on('hide.bs.modal', function () {
1567
                $("#trainingVideo").attr('src', '');
1568
            });
1569
 
1570
            /* Assign the initially stored url back to the iframe src
1571
            attribute when modal is displayed again */
1572
            $("#videoModal").on('show.bs.modal', function (event) {
1573
                let button = $(event.relatedTarget);
1574
                let youtubeUrl = button.data("src");
1575
                $("#trainingVideo").attr('src', `//www.youtube.com/embed/${youtubeUrl}?autoplay=1`);
1576
            });
1577
 
1578
        });
1579
    </script>
1580
    <div id="punchInOutModal" class="modal" role="dialog">
1581
        <div class="modal-dialog">
1582
 
1583
            <!-- Modal content-->
1584
            <div class="modal-content">
1585
                <div class="modal-header">
1586
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
1587
                    <h4 class="modal-title">Punch In Out</h4>
1588
                </div>
1589
                <div class="modal-body">
1590
                    <div id="punch-in-out-model">
1591
 
1592
                    </div>
1593
                </div>
1594
            </div>
1595
        </div>
1596
    </div>
1597
</section>
1598
</body>
1599
 
1600
<!-- Modal HTML -->
1601
<div id="videoModal" class="modal fade">
1602
    <div class="modal-dialog">
1603
        <div class="modal-content">
1604
            <div class="modal-body">
1605
                <div class="embed-responsive embed-responsive-16by9">
1606
                    <iframe id="trainingVideo" class="embed-responsive-item" width="560" height="315"
1607
                            allowfullscreen allow="autoplay"></iframe>
1608
                </div>
1609
            </div>
1610
        </div>
1611
    </div>
1612
</div>
1613
</html>
1614
<style>
1615
 
1616
 
1617
    .popover2 {
1618
        min-width: 30em;
1619
        height: 410px;
1620
        overflow: auto;
1621
        padding: 8px 5px;
1622
        overflow-x: hidden;
1623
 
1624
    }
1625
 
1626
    .popover1 {
1627
        min-width: 30em;
1628
 
1629
 
1630
    }
1631
 
1632
    .mark {
1633
        font-size: 13px;
1634
        padding: 5px 6px;
1635
        border: solid 3px red;
1636
        margin-bottom: -14px;
1637
        color: red;
1638
 
1639
    }
1640
 
1641
    .mark.btn-pressed {
1642
        color: black;
1643
        background: white;
1644
        font-size: 17px;
1645
        border-radius: 3px;
1646
        border: solid 2px black;
1647
    }
1648
 
1649
    .price {
1650
        padding: 5px 6px;
1651
        font-size: 13px;
1652
        border: solid 1px black;
1653
        border: solid 3px red;
1654
        margin-bottom: -14px;
1655
        color: red;
1656
 
1657
    }
1658
 
1659
    .price.btn-pressed {
1660
        color: black;
1661
        background: white;
1662
        font-size: 17px;
1663
        border: solid 2px black;
1664
    }
1665
 
1666
    .schem {
1667
        color: red;
1668
        padding: 5px 6px;
1669
        font-size: 13px;
1670
        border: solid 3px red;
1671
        margin-bottom: -14px;
1672
 
1673
    }
1674
 
1675
    .schem.btn-pressed {
1676
        color: black;
1677
        background: white;
1678
        font-size: 17px;
1679
        border: solid 2px black;
1680
    }
1681
 
1682
    .notify-messages {
1683
        min-height: 65px;
1684
    }
1685
 
1686
    .notifi {
1687
        padding: 5px 6px;
1688
        font-size: 13px;
1689
        margin-bottom: -14px;
1690
 
1691
        color: red;
1692
        border: solid 3px red;
1693
    }
1694
 
1695
    .notifi.btn-pressed {
1696
        color: black;
1697
        font-size: 17px;
1698
        border: solid 2px black;
1699
        background: white;
1700
    }
1701
 
1702
    #offer-container {
1703
        overflow-y: auto;
1704
        max-height: 367px;
1705
    }
1706
 
1707
 
1708
    canvas {
1709
        -moz-user-select: none;
1710
        -webkit-user-select: none;
1711
        -ms-user-select: none;
1712
    }
1713
</style>
1714
</script>
1715
 
1716
 
1717
<script type="text/javascript">
1718
    window.onload = function () {
1719
        if (window.innerWidth < 1920) document.body.style.zoom = "80%";
1720
        var options = $chartMap;
1721
        var ctx = document.getElementById('barchart').getContext('2d');
1722
        window.bar = new Chart1(ctx, options);
1723
    };
1724
</script>
1725
 
1726
 
1727
<script>
1728
    function makeAjaxRequest() {
1729
        $.ajax({
1730
            url: 'https://partners.smartdukaan.com/psi/auth-endpoint',
1731
            method: 'GET',
1732
            dataType: 'xml', // Assuming the response is in XML format
1733
            success: function (responseXml) {
1734
                var responseUrl = $(responseXml).find('response').text();
1735
                if (responseUrl) {
1736
                    // Open a new tab with the response URL
1737
                    window.open(responseUrl, '_blank');
1738
                } else {
1739
                    console.error('Response URL not found in the XML');
1740
                }
1741
            },
1742
            error: function (jqXHR, textStatus, errorThrown) {
1743
                console.error('AJAX Request Failed:', textStatus, errorThrown);
1744
            }
1745
        });
1746
    }
1747
 
1748
 
1749
    $(document).on('click', '#viewSaleBarChart', function () {
1750
        let from = $('#chartForm').val();
1751
        let to = $('#chartTo').val();
1752
        let quantity_type = $('select[name="quantityType"]').val();
1753
        console.log("from - ", from);
1754
        console.log("to - ", to);
1755
        console.log("tquantity_typeo - ", quantity_type);
1756
 
1757
        doGetAjaxRequestHandler(`${context}/getBarChart?from=${from}&to=${to}&isQuantity=${quantity_type}`, function (response) {
1758
            console.log("res - ", response);
1759
            $('.model_charbar_container').html("");
1760
            $('.ChartContainer').html(response);
1761
        });
1762
    });
1763
</script>