Subversion Repositories SmartDukaan

Rev

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