Subversion Repositories SmartDukaan

Rev

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

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