Subversion Repositories SmartDukaan

Rev

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