Subversion Repositories SmartDukaan

Rev

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

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