Subversion Repositories SmartDukaan

Rev

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