Subversion Repositories SmartDukaan

Rev

Rev 28443 | Rev 28482 | 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>
21627 kshitij.so 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">
27875 amit.gupta 8
    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">-->
9
    <link rel="shortcut icon" href="assets/images/icons/favicon.png">
21627 kshitij.so 10
 
23166 amit.gupta 11
    <title>Smart Dukaan - FOCO Dashboard</title>
21627 kshitij.so 12
 
27875 amit.gupta 13
    <!-- Bootstrap CSS -->
21627 kshitij.so 14
    <!-- bootstrap theme -->
15
    <!--external css-->
16
    <!-- font icon -->
27875 amit.gupta 17
    <link href="resources/css/elegant-icons-style.css" rel="stylesheet"/>
18
    <link href="resources/css/font-awesome.min.css" rel="stylesheet"/>
21627 kshitij.so 19
    <!-- full calendar css-->
20
    <!-- owl carousel -->
21
    <link rel="stylesheet" href="resources/css/owl.carousel.css" type="text/css">
27875 amit.gupta 22
    <link href="resources/css/jquery-jvectormap-1.2.2.css" rel="stylesheet">
21627 kshitij.so 23
    <!-- Custom styles -->
27875 amit.gupta 24
    <link href="resources/css/widgets.css" rel="stylesheet">
24566 amit.gupta 25
    <link href="resources/css/style.css?v=${cssVersion}" rel="stylesheet">
25143 amit.gupta 26
    <link href="resources/css/card.css?v=${cssVersion}" rel="stylesheet">
27875 amit.gupta 27
    <link href="resources/css/style-responsive.css?v=${cssVersion}" rel="stylesheet"/>
28
    <link href="resources/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
24066 amit.gupta 29
    <link type="text/css" href="resources/css/bootstrap.css" rel="stylesheet">
27875 amit.gupta 30
    <!--<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/3/css/bootstrap.css" />-->
24066 amit.gupta 31
    <link href="resources/css/bootstrap-theme.min.css" rel="stylesheet">
27875 amit.gupta 32
    <link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css"/>
27624 tejbeer 33
 
27875 amit.gupta 34
    <link rel="stylesheet" type="text/css" href="resources/css/bootstrap-multiselect.css"/>
35
    <link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.16/css/dataTables.bootstrap.min.css"/>
36
    <link rel='stylesheet' href='https://use.fontawesome.com/releases/v5.7.0/css/all.css'
37
          integrity='sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ' crossorigin='anonymous'>
38
    <style type="text/css">
27596 tejbeer 39
 
27875 amit.gupta 40
        .current-margin {
41
            cursor: pointer;
42
        }
21627 kshitij.so 43
 
27875 amit.gupta 44
        .margin-calculator {
45
            cursor: pointer;
46
        }
25654 amit.gupta 47
 
27875 amit.gupta 48
        .Vivo:hover {
49
            border-radius: 40px;
50
            background: blue;
51
        }
21627 kshitij.so 52
 
27875 amit.gupta 53
 
54
        .Samsung:hover {
55
            border-radius: 4px;
56
            background: blue;
57
        }
58
 
59
        .Vivo:hover {
60
            border-radius: 4px;
61
            background: mediumblue;
62
        }
63
 
64
        .Oppo:hover {
65
            border-radius: 4px;
66
            background: green;
67
        }
68
 
69
        .Lava:hover {
70
            border-radius: 4px;
71
            background: salmon;
72
        }
73
 
74
        .Live:hover {
75
            border-radius: 4px;
76
            background: coral;
77
        }
78
 
79
        .Nokia:hover {
80
            border-radius: 4px;
81
            background: blue;
82
        }
83
 
84
        .Realme:hover {
85
            border-radius: 4px;
86
            background: yellow;
87
        }
88
 
89
        .Tecno:hover {
90
            border-radius: 4px;
91
            background: DarkTurquoise;
92
        }
93
 
94
        .Samsung {
95
 
96
            -moz-border-radius: 4px;
97
            border-radius: 4px;
98
            border: solid 5px black;
99
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
100
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
101
            background-image: linear-gradient(#4682B4, #dae5f4);
102
            color: #FFF;
103
            padding: 8px 12px;
104
            text-decoration: none;
105
            cursor: pointer;
106
 
107
 
108
        }
109
 
110
        .Vivo {
111
            -moz-border-radius: 4px;
112
            border-radius: 4px;
113
            border: solid 5px black;
114
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
115
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
116
            background-image: linear-gradient(#4682B4, #dae5f4);
117
            color: #FFF;
118
            padding: 8px 12px;
119
            text-decoration: none;
120
            cursor: pointer;
121
 
122
        }
123
 
124
        .Oppo {
125
            -moz-border-radius: 4px;
126
            border-radius: 4px;
127
            border: solid 5px black;
128
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
129
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
130
            background-image: linear-gradient(#4682B4, #dae5f4);
131
            color: #FFF;
132
            padding: 8px 12px;
133
            text-decoration: none;
134
            cursor: pointer;
135
 
136
        }
137
 
138
        .Lava {
139
 
140
            -moz-border-radius: 4px;
141
            border-radius: 4px;
142
            border: solid 5px black;
143
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
144
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
145
            background-image: linear-gradient(#4682B4, #dae5f4);
146
            color: #FFF;
147
            padding: 8px 12px;
148
            text-decoration: none;
149
            cursor: pointer;
150
 
151
        }
152
 
153
        .Realme {
154
            -moz-border-radius: 4px;
155
            border-radius: 4px;
156
            border: solid 5px black;
157
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
158
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
159
            background-image: linear-gradient(#4682B4, #dae5f4);
160
            color: #FFF;
161
            padding: 8px 12px;
162
            text-decoration: none;
163
            cursor: pointer;
164
 
165
        }
166
 
167
        .Tecno {
168
            -moz-border-radius: 4px;
169
            border-radius: 4px;
170
            border: solid 5px black;
171
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
172
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
173
            background-image: linear-gradient(#4682B4, #dae5f4);
174
            color: #FFF;
175
            padding: 8px 12px;
176
            text-decoration: none;
177
            cursor: pointer;
178
 
179
        }
180
 
181
        .Nokia {
182
            -moz-border-radius: 4px;
183
            border-radius: 4px;
184
            border: solid 5px black;
185
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
186
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
187
            background-image: linear-gradient(#4682B4, #dae5f4);
188
            color: #FFF;
189
            padding: 8px 12px;
190
            text-decoration: none;
191
            cursor: pointer;
192
 
193
        }
194
 
195
        .Live {
196
 
197
            -moz-border-radius: 4px;
198
            border-radius: 4px;
199
            border: solid 5px black;
200
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
201
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
202
            background-image: linear-gradient(#4682B4, #dae5f4);
203
            color: #FFF;
204
            padding: 8px 12px;
205
            text-decoration: none;
206
            cursor: pointer;
207
        }
208
 
209
        #accesoriesStock:hover {
210
            cursor: pointer;
211
            border-radius: 4px;
212
            background: white;
213
        }
214
 
215
        #accesoriesStock {
216
 
217
            -moz-border-radius: 4px;
218
            border-radius: 4px;
219
            border: solid 5px black;
220
            text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.4);
221
            box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.4), 0 1px 1px rgba(0, 0, 0, 0.2);
222
            background-image: linear-gradient(#4682B4, #dae5f4);
223
            color: #FFF;
224
            padding: 14px 3px 18px 3px;
225
            text-decoration: none;
226
            object-fit: cover;
227
            width: 100%;
228
            height: 90px;
229
 
230
        }
231
 
232
        .loading {
233
            display: none;
234
        }
235
 
236
        .breadcrumb {
237
            padding: 0 15px;
238
        }
239
 
27900 tejbeer 240
.purple-bg{
241
 
242
     background-image: linear-gradient(#800080, #DDA0DD);
243
    box-shadow: 6px 5px 6px purple;
244
}
27875 amit.gupta 245
        .stars-outer {
246
            display: inline-block;
247
            position: relative;
248
            font-family: FontAwesome;
249
        }
250
 
251
        .stars-outer::before {
252
            content: "\f006 \f006 \f006 \f006 \f006";
253
        }
254
 
255
        .stars-inner {
256
            position: absolute;
257
            top: 0;
258
            left: 0;
259
            white-space: nowrap;
260
            overflow: hidden;
261
            width: 0;
262
        }
263
 
264
        .stars-inner::before {
265
            content: "\f005 \f005 \f005 \f005 \f005";
266
            color: #f8ce0b;
267
        }
268
 
269
 
270
        .table-striped > tbody > tr:nth-child(odd) > td {
271
            background: white;
272
            background-color: #dae5f4;
273
        }
274
 
275
        .table-striped > tbody > tr:nth-child(even) > td {
276
            background: #f2f2f2;
277
            background-color: #b8d1f3;
278
        }
279
 
280
        .btn:hover {
281
            color: grey;
282
            text-decoration: none;
283
        }
284
 
285
        .btn-primary:hover {
286
            color: grey;
287
            text-decoration: none;
288
        }
289
 
290
        .sale-details {
291
            cursor: pointer;
292
        }
293
 
294
        .fa-2x {
295
            font-size: 1.4em;
296
        }
297
 
298
        .cover {
299
            object-fit: cover;
28151 amit.gupta 300
            width: 92%;
27875 amit.gupta 301
            height: 90px;
302
        }
303
 
304
        .info-box .notifications i {
305
            display: inline-block;
306
            margin-top: 0px;
307
            height: 25px;
308
            font-size: 16px;
309
            line-height: 25px;
310
            width: 25px;
311
            float: none;
312
            text-align: center;
313
            padding-right: 0px;
314
            color: #768399;
315
        }
316
 
317
        #preview {
318
            position: relative;
319
            color: #fff;
320
            float: left;
321
            width: 100%;
322
            -webkit-border-radius: 10px;
323
            -moz-border-radius: 10px;
324
            border-radius: 10px;
325
            clear: both;
326
        }
327
 
328
        #canvas-preview {
329
            width: 100%;
330
            position: relative;
331
            top: -15px;
332
        }
333
 
334
        #preview-textfield {
335
            position: absolute;
336
            top: -10px;
337
            left: 0;
338
            right: 0;
339
            text-align: center;
340
            font-size: 2em;
341
            font-weight: bold;
342
            color: white;
343
            font-family: 'Amaranth', sans-serif;
344
        }
345
 
346
        #descriptionMenu {
347
            list-style: desc !important;
348
            list-style-type: square;
349
            text-align: left;
350
        }
351
 
352
        .messagebutton {
353
            margin-left: 1px;
354
 
355
        }
356
 
357
 
358
    </style>
359
</head>
360
 
361
<body style="background-color:#f7f7f7">
362
<!--<div class="loading"><img src="resources/images/icons/loading.gif"></div>-->
363
<!-- container section start -->
364
<section id="container">
365
 
366
 
367
    <header class="header dark-bg indian-flag">
368
        <div class="toggle-nav">
369
            <div class="icon-reorder tooltips" data-original-title="Toggle Navigation" data-placement="bottom"><i
370
                    class="icon_menu"></i></div>
371
        </div>
372
        <a href="${rc.contextPath}/dashboard" class="logo" style="margin-top: 7px"> <img
373
                src="resources/images/SmartDukaan-135x45.jpg" alt="smartDukaan" width="140"
374
                height="45">$fofoStore.getCode()</a>
375
 
376
        <a href="#"><img src="${partnerTypeImage}" width="60px" class="target-slide"></a>
377
 
378
        <div class="btn-group message-filter" style="margin-left: 10%;">
379
            <button data-messagetype="notification" type="button" class="btn btn-default notifi"
380
                    aria-label="Notifications">
381
                <span class="notify1 Notificat">Notification</span></button>
382
            <button data-messagetype="announcement" type="button" class="btn btn-default price"
383
                    aria-label="Announcements">
384
                <span class="notify Price">Price-Drop</span></button>
385
            <button data-messagetype="scheme" type="button" class="btn btn-default schem"
386
                    aria-label="SmartDukaan Schemes">
387
                <span class="notify Scheme">Schemes</span>
388
            </button>
389
 
390
            <button data-messagetype="marketing" type="button" class="btn btn-default mark"
391
                    aria-label="SmartDukaan Schemes">
392
                <span class="notify market">Marketing</span>
393
            </button>
394
        </div>
395
 
396
 
397
        <div class="top-nav notification-row">
398
            <!-- notificatoin dropdown start-->
399
            <ul class="nav pull-right top-menu">
400
                <li class="dropdown">
401
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
402
                        <img style="height:38px" src="/resources/images/icons/care1.jpg"/>
403
                        <span class="username" style="font-size:15px">CARE</span>
404
                        <b class="caret"></b>
405
                    </a>
406
                    <ul class="dropdown-menu extended logout">
407
                        <div class="log-arrow-up"></div>
408
                        <li class="eborder-top">
409
                            <a class="create-ticket" href="javascript:void(0);"><i></i>Create Ticket</a>
410
                            <a class="my-ticket" href="javascript:void(0);"><i class=""></i>View Tickets</a>
411
                        </li>
412
                        <li></li>
413
                    </ul>
414
                </li>
415
 
416
                <li class="dropdown" style="margin-top:3px;">
417
                    <a href="javascript:void(0);" id="links_bar" style="color:#D3181F" class="btn btn-link"
418
                       data-toggle="popover">
419
                        <i title="third-party dashboards" class="glyphicon glyphicon-th fa-2x"></i>
420
                    </a>
421
                </li>
422
 
423
                <li class="dropdown" style="margin-top:5px;">
424
                    <a href="javascript:void(0);" class="download_reports btn btn-link" style="color:#D3181F">
425
                        <i title="reports" class="far fa-list-alt fa-2x"></i>
426
                    </a>
427
                </li>
428
 
429
 
430
                <li id="wallet_bar" class="dropdown">
431
                    <a data-toggle="dropdown" class="dropdown-toggle wallet_icon_header" href="javascript:void(0);">
432
                        <i title="wallet summary" class="fas fa-wallet fa-2x" aria-hidden="true"></i>
433
                    </a>
434
                </li>
435
 
436
                <li id="cart_bar" class="dropdown">
437
                    <a class="cart_icon_header" href="javascript:void(0);">
438
                        <i class="fas fa-shopping-cart fa-2x" aria-hidden="true"></i>
439
                        <span class="badge bg-important"></span>
440
                    </a>
441
                </li>
442
 
443
 
444
                <!-- alert notification start-->
445
                <!--<li id="alert_notificatoin_bar" class="dropdown">
446
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
447
 
448
                        <i class="icon-bell-l"></i>
449
                        <span class="badge bg-important">0</span>
450
                    </a>
451
                    <ul class="dropdown-menu extended notification">
452
                        <div class="notify-arrow notify-arrow-blue"></div>
453
                        <li>
454
                            <p class="blue">You have no new notifications</p>
455
                        </li>
456
                        <li>
457
                            <a href="#">
458
                                <span class="label label-primary"><i class="icon_profile"></i></span>
459
                                Friend Request
460
                                <span class="small italic pull-right">5 mins</span>
461
                            </a>
462
                        </li>
463
                        <li>
464
                            <a href="#">
465
                                <span class="label label-warning"><i class="icon_pin"></i></span>
466
                                John location.
467
                                <span class="small italic pull-right">50 mins</span>
468
                            </a>
469
                        </li>
470
                        <li>
471
                            <a href="#">
472
                                <span class="label label-danger"><i class="icon_book_alt"></i></span>
473
                                Project 3 Completed.
474
                                <span class="small italic pull-right">1 hr</span>
475
                            </a>
476
                        </li>
477
                        <li>
478
                            <a href="#">
479
                                <span class="label label-success"><i class="icon_like"></i></span>
480
                                Mick appreciated your work.
481
                                <span class="small italic pull-right"> Today</span>
482
                            </a>
483
                        </li>
484
                        <li>
485
                            <a href="#">See all notifications</a>
486
                        </li>
487
                    </ul>
488
                </li>
489
                -->
490
                <!-- alert notification end -->
491
                <li class="dropdown">
492
                    <ul class="dropdown-menu extended">
493
                        <div class="log-arrow-up"></div>
494
                        <li class="eborder-top">
495
                            <a href="javascript:void(0);" class="create-ticket">Create Ticket</a>
496
                        </li>
497
                    </ul>
498
                </li>
499
                <!-- user login dropdown start-->
500
                <li class="dropdown">
501
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
27519 amit.gupta 502
                            <span class="profile-ava">
503
                                <img class="avatar-custom" id="photo" alt="" src="">
504
                            </span>
27875 amit.gupta 505
                        <span class="username" id="fofo_name"></span>
506
                        <b class="caret"></b>
507
                    </a>
508
                    <ul class="dropdown-menu extended logout">
509
                        <div class="log-arrow-up"></div>
510
                        <li class="eborder-top">
511
                            <a class="user-profile" href="javascript:void(0);"><i class="icon_profile"></i> My
512
                                Profile</a>
513
                            <a href="${rc.contextPath}/mobileapp" class="btn btn-default" target="_blank">SD Mobile
514
                                App</a>
515
                            <a class="user-manual" target="_blank"
516
                               href="http://www.smartdukaan.com/Dealer-Guideline.pdf">Franchise Manual Sd Policies</a>
517
                            #if($isAdmin)
27519 amit.gupta 518
                                <a class="add-auth-user" href="javascript:void(0);"><i class=""></i>Add User</a>
27875 amit.gupta 519
                                <a class="change-auth-user-password" href="javascript:void(0);"><i class=""></i>Change
520
                                    Password</a>
521
                            #end
522
                        </li>
523
                        <li>
524
                            <a href="${rc.contextPath}/logout"><i class="icon_key_alt" id="logout"></i> Log Out</a>
525
                        </li>
526
                    </ul>
527
                </li>
528
                <!-- user login dropdown end -->
529
            </ul>
530
            <!-- notificatoin dropdown end-->
531
        </div>
532
    </header>
533
    <!--header end-->
21627 kshitij.so 534
 
27875 amit.gupta 535
    <!--sidebar start-->
536
    <aside>
537
        <div id="sidebar" class="nav-collapse ">
538
            <!-- sidebar menu start-->
539
            <ul class="sidebar-menu">
540
                <li class="active">
541
                    <a class="" href="${rc.contextPath}/dashboard">
542
                        <i class="icon_house_alt"></i>
543
                        <span>Dashboard</span>
544
                    </a>
545
                </li>
546
                <li>
547
                    <a href="javascript:;" class="punch-in-outs">
548
                        <i class="icon_document_alt"></i>
549
                        <span>Punch IN/OUT</span>
550
                    </a>
551
                </li>
552
                <li class="sub-menu">
553
                    <a href="javascript:;" class="schemes">
554
                        <i class="icon_document_alt"></i>
555
                        <span>Margins</span>
556
                    </a>
557
                </li>
28102 tejbeer 558
 
28136 tejbeer 559
                <li class="sub-menu">
28102 tejbeer 560
                    <a href="javascript:;" class="partner-price-circular">
561
                        <i class="icon_document_alt"></i>
562
                        <span>Price Circular</span>
563
                    </a>
28136 tejbeer 564
                </li>
27875 amit.gupta 565
                <li class="sub-menu">
24106 tejbeer 566
                    <a href="javascript:;" class="">
27875 amit.gupta 567
                        <i class="icon_document_alt"></i>
568
                        <span>Fin Services</span>
569
                        <span class="menu-arrow arrow_carrot-right"></span>
570
                    </a>
571
                    <ul class="sub">
572
                        <li><a class="partner-service" href="javascript:void(0);">Partner Service</a></li>
24106 tejbeer 573
                    </ul>
27875 amit.gupta 574
                </li>
575
                <li class="sub-menu">
576
                    <a href="javascript:;" class="">
577
                        <i class="icon_document_alt"></i>
578
                        <span>Returns</span>
579
                        <span class="menu-arrow arrow_carrot-right"></span>
580
                    </a>
581
                    <ul class="sub">
582
                        <li><a class="approved-returns" href="javascript:void(0);">Approved Returns</a></li>
583
                        <li><a class="view-debit-note" href="javascript:void(0);">View Debit Notes</a></li>
584
                        <li><a class="pending-returns" href="javascript:void(0);">Pending Returns</a></li>
585
                    </ul>
586
                </li>
587
                <li class="sub-menu">
588
                    <a href="javascript:;" class="">
589
                        <i class="icon_document_alt"></i>
590
                        <span>Prebooking</span>
591
                        <span class="menu-arrow arrow_carrot-right"></span>
592
                    </a>
593
                    <ul class="sub">
594
                        <li><a class="create-prebooking-order" href="javascript:void(0);">Create Order</a></li>
595
                        <li><a class="prebooking-orders" href="javascript:void(0);">Orders</a></li>
596
                    </ul>
597
                </li>
598
                <li class="sub-menu">
599
                    <a href="javascript:;" class="">
600
                        <i class="icon_document_alt"></i>
601
                        <span>Recharge</span>
602
                        <span class="menu-arrow arrow_carrot-right"></span>
603
                    </a>
604
                    <ul class="sub">
605
                        <li><a class="create-mobile-recharge" href="javascript:void(0);">Mobile Recharge</a></li>
606
                        <li><a class="create-dth-recharge" href="javascript:void(0);">Dth Recharge</a></li>
607
                        <li><a class="mobile-recharges" href="javascript:void(0);">Mob Recharge History</a></li>
608
                        <li><a class="dth-recharges" href="javascript:void(0);">DTH Recharge History</a></li>
609
                    </ul>
610
                </li>
611
                <li>
612
                    <a href="javascript:;" class="create_indent">
613
                        <i class="icon_document_alt"></i>
614
                        <span>Monthly Planning</span>
615
                    </a>
616
                </li>
617
                <li class="sub-menu">
618
                    <a href="javascript:;" class="">
619
                        <i class="icon_document_alt"></i>
620
                        <span>GRN</span>
621
                        <span class="menu-arrow arrow_carrot-right"></span>
622
                    </a>
623
                    <ul class="sub">
624
                        <li><a class="new_grn" href="javascript:void(0);">New</a></li>
625
                        <li><a class="grn_history" href="javascript:void(0);">History</a></li>
626
                        <li><a class="pending_grn" href="javascript:void(0);">Pending</a></li>
627
                    </ul>
628
                </li>
629
                <li class="sub-menu">
630
                    <a href="javascript:;" class="">
631
                        <i class="icon_desktop"></i>
632
                        <span>Inventory</span>
633
                        <span class="menu-arrow arrow_carrot-right"></span>
634
                    </a>
635
                    <ul class="sub">
636
                        <li><a class="good_inventory" href="javascript:void(0);">Good</a></li>
637
                        <li><a class="bad_inventory" href="javascript:void(0);">Bad</a></li>
638
                        <li><a class="allocation_po" href="javascript:void(0);">Raise PO</a></li>
26251 amit.gupta 639
 
25140 amit.gupta 640
 
27875 amit.gupta 641
                    </ul>
642
                </li>
643
                <li class="sub-menu">
644
                    <a href="javascript:;" class="">
645
                        <i class="icon_genius"></i>
646
                        <span>Catalog</span>
647
                        <span class="menu-arrow arrow_carrot-right"></span>
648
                    </a>
649
                    <ul class="sub">
650
                        <li><a class="catalog" href="javascript:void(0);">Catalog</a></li>
651
                        <li><a class="product-compare-info" href="javascript:void(0);">Product Compare</a></li>
652
                    </ul>
653
                </li>
654
                <li class="sub-menu">
655
                    <a href="javascript:void(0);" class="">
656
                        <i class="icon_table"></i>
657
                        <span>Item Aging</span>
658
                        <span class="menu-arrow arrow_carrot-right"></span>
659
                    </a>
660
                    <ul class="sub">
661
                        <li><a class="download_reports" href="javascript:void(0);">Download Reports</a></li>
662
                        <li><a class="download_aging_report" href="javascript:void(0);">Download</a></li>
663
                        <li><a class="item_aging" href="javascript:void(0);">View</a></li>
664
                    </ul>
665
                </li>
666
 
667
                <li class="sub-menu">
668
                    <a href="javascript:;" class="">
669
                        <i class="icon_table"></i>
670
                        <span>Item Ledger</span>
671
                        <span class="menu-arrow arrow_carrot-right"></span>
672
                    </a>
673
                    <ul class="sub">
674
                        <li><a class="item-ledger-report-download-page" href="javascript:void(0);">Download</a></li>
675
                    </ul>
676
                </li>
28339 tejbeer 677
 
678
 
679
                   <li class="sub-menu">
680
                    <a href="javascript:;" class="">
681
                        <i class="icon_table"></i>
682
                        <span>Online Order</span>
683
                        <span class="menu-arrow arrow_carrot-right"></span>
684
                    </a>
685
                    <ul class="sub">
686
                        <li><a class="pending_fofo_order" href="javascript:void(0);">Pending Order</a></li>
687
                          <li><a class="billed_order_item" href="javascript:void(0);">Billed Order</a></li>
28344 tejbeer 688
                         <li><a class="unsettled_order_item" href="javascript:void(0);">Raise Claim</a></li>
28339 tejbeer 689
 
28344 tejbeer 690
                           <li><a class="claim_raised_order_item" href="javascript:void(0);">Pending Claim</a></li>
28339 tejbeer 691
 
692
                         <li><a class="settled_order_item" href="javascript:void(0);">Settled Order</a></li>
693
 
694
                        </ul>
695
                </li>
27875 amit.gupta 696
 
697
                <li class="sub-menu">
698
                    <a href="javascript:;" class="">
699
                        <i class="icon_table"></i>
700
                        <span>Sale</span>
701
                        <span class="menu-arrow arrow_carrot-right"></span>
702
                    </a>
703
                    <ul class="sub">
28339 tejbeer 704
 
27875 amit.gupta 705
                        <li><a class="sale-history" href="javascript:void(0);">History</a></li>
706
                        <li><a class="target-slide" href="javascript:void(0);">Outlet Categories</a></li>
707
                        <li><a class="insurance-policy-details" href="javascript:void(0);">Insurance History</a></li>
708
                    </ul>
709
                </li>
710
                <li class="sub-menu" style="margin-bottom:20px">
711
                    <a href="javascript:;" class="">
712
                        <i class="icon_documents_alt"></i>
713
                        <span>Support</span>
714
                        <span class="menu-arrow arrow_carrot-right"></span>
715
                    </a>
716
                    <ul class="sub" style="margin-bottom:20px">
717
                        <li><a class="contact-us" href="#">Contact Us</a></li>
718
                    </ul>
719
                </li>
720
 
721
            </ul>
722
            <!-- sidebar menu end-->
723
        </div>
724
    </aside>
725
    <!--sidebar end-->
726
 
727
    <!--main content start-->
728
    <section id="main-content">
729
        <section class="wrapper">
730
            <!--overview start-->
731
            <div class="row">
732
                <div class="col-lg-12">
733
                    <h3 class="page-header"><i class="fa fa-laptop"></i> Dashboard</h3>
734
                    <ol class="breadcrumb">
735
                        <li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
736
                        <li><i class="fa fa-laptop"></i>Dashboard</li>
737
                    </ol>
738
                </div>
739
            </div>
740
            <!-- overview end -->
741
            <div class="row">
742
                <div class="col-lg-6">
743
                    <div class="row">
744
                        <div class="col-lg-7">
745
                            <div class="info-box blue-bg">
746
                                <i class="fa fa-chart-line"></i>
747
                                <h3 style="margin-top:-2px;margin-bottom:12px"><strong>Sale</strong></h3>
748
                                <div class="row">
749
                                    <div class="col-lg-4 row">
750
                                        <div style="margin-top:0px" class="count currency">$salesMap.get(
751
                                            "lmtdSale")</div>
752
                                        <div class="title">LMTD</div>
753
                                    </div>
754
                                    <div class="col-lg-4 row">
755
                                        <div style="margin-top:0px" class="count currency">$salesMap.get(
756
                                            "mtdSale")</div>
757
                                        <div class="title">MTD</div>
758
                                    </div>
759
                                    <div class="col-lg-3 row">
760
                                        <div style="margin-top:0px" class="count currency">$salesMap.get(
761
                                            "todaySale")</div>
762
                                        <div class="title">Today&apos;s</div>
763
                                    </div>
764
 
765
                                    <div class="col-lg-1 row" style="margin-left: -20px;margin-top: 20px;">
766
                                        <i class="fk_more fa fa-angle-double-down" id="blue-dropdown"
767
                                           style="cursor:pointer;font-size: 27px;width: 27px;height: 27px;margin-top: 0px;color: rgba(255, 255, 255, 0.75);line-height: 27px;"></i>
768
                                    </div>
769
                                </div>
770
 
771
                                <div class="row monthsaleContainer" style="margin:5px">
772
                                </div>
773
                            </div>
774
                        </div>
28410 tejbeer 775
 
27875 amit.gupta 776
                        <div class="col-lg-5 row">
777
                            <div class="info-box brown-bg">
778
 
779
                                <div class="col-lg-12">
780
                                    <div class="col-lg-6">
781
                                        <h4 style="margin-top:-2px;margin-bottom:3px"><strong>Current Rate</strong></h4>
782
                                        <div style="margin-top:0px" class="count">
783
                                            <span class="currency">$salesMap.get("currentRate")</span>/day
784
                                        </div>
785
                                        <img src="${salesMap.get('currentTypeImage')}" width="60px"
786
                                             class="target-slide">
787
                                    </div>
788
                                    <div class="col-lg-6 row">
789
                                        <h4 style="margin-top:-2px;margin-bottom:3px"><strong>Reqd Rate</strong></h4>
790
                                        <div style="margin-top:0px" class="count currency">
791
                                            <span class="currency">$salesMap.get("requiredRate")</span>/day
792
                                        </div>
793
                                        <img src="${salesMap.get('requiredTypeImage')}" width="60px"
794
                                             class="target-slide">
795
                                    </div>
796
                                </div>
797
                            </div>
798
                        </div>
799
                        <div class="col-lg-8">
800
                            <div class="info-box purple-bg">
801
                                <div class="col-lg-12 row">
802
                                    <i class="fa fa-coins"></i>
803
                                    <h3 style="margin-top:-2px;margin-bottom:12px"><strong>Investments</strong></h3>
804
                                    <div class="row">
805
                                        <div class="col-lg-4 row">
806
                                            <div style="margin-top:0px" class="count currency">$investments.get(
807
                                                "today")</div>
27887 amit.gupta 808
                                            <div class="title">current</div>                          			
809
                                            <div class="col-lg-1 row" style="margin-left: -20px;margin-top: -6px;">
810
			                                    <i class="fk_more fa fa-angle-double-down flash" id="purple-dropdown"
27890 tejbeer 811
            			                         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>
27887 amit.gupta 812
                        			         </div>
813
										</div>
814
 
815
                                <div class="col-lg-3">
816
                                    <div style="margin-top:0px" class="count">$investments.get("minimum")</div>
817
                                    <div class="title">min</div>
818
                                </div>
27978 tejbeer 819
                                        <div class="col-lg-2 row"
27875 amit.gupta 820
                                            #if(!$isInvestmentOk)
27914 tejbeer 821
                                             style="color:red; background: white;"
27875 amit.gupta 822
                                            #end
823
                                        >
824
                                            #if($investments.get("short")<=0)
825
                                                <div style="margin-top:0px" class="count">&gt;100%</div>
826
                                                <div class="title">OK</div>
827
                                            #else
27888 amit.gupta 828
                                                <div style="margin-top:0px" class="count">$investments.get(
27875 amit.gupta 829
                                                    "short")%
830
                                                </div>
831
                                                <div class="title">short</div>
832
                                            #end
833
                                        </div>
834
                                    </div>
27887 amit.gupta 835
                            		<div class="row investmentContainer" style="margin:5px">
836
	                            	</div>
27875 amit.gupta 837
                                </div>
838
                            </div>
839
                        </div>
28410 tejbeer 840
                        <div class="col-lg-4">
27875 amit.gupta 841
                            <div class="info-box green-bg">
842
                                <i class="fa fa-cubes"></i>
843
                                <div class="count currency">$investments.get("inStock")</div>
844
                                <div class="title">Total Stock</div>
845
                            </div>
846
                        </div>
28410 tejbeer 847
 
28413 tejbeer 848
                        <div class="col-lg-7">
849
                            <div class="info-box orange-bg" style="background-image: linear-gradient(#ff7f50 ,orange); box-shadow: 6px 5px 6px #ff7f50;">
28410 tejbeer 850
                                <i class="fa fa-chart-line"></i>
28431 tejbeer 851
                                <h3 style="margin-top:-2px;margin-bottom:12px"><strong>Online Sales</strong></h3>
28410 tejbeer 852
                                <div class="row">
853
                                    <div class="col-lg-3 row" style="margin:5px">
28413 tejbeer 854
                                        <div style="margin-top:0px; margin-left:24px;"  class="count currency">$countOrder</div>
855
                                        <button style=" border-radius: 18px; background: navajowhite;">
856
                                        <div class="title pending_order_dashboard"  style="cursor: pointer; color:black;">Pending Order</div>
857
                                        </button>
28410 tejbeer 858
                                    </div>
859
 
28412 tejbeer 860
                                    <div class="col-lg-4 row" style="margin:5px">
28410 tejbeer 861
                                     #if($onlineDeliveredOrderSum)
28413 tejbeer 862
 
863
                                        <div style="margin-top:0px; margin-left:37px;"  class="count currency">$onlineDeliveredOrderSum</div>
864
 
28410 tejbeer 865
                                       #else
28413 tejbeer 866
 
867
                                       <div style="margin-top:0px; margin-left:20px;" class="count currency">0</div>
868
 
28410 tejbeer 869
                                      #end
28413 tejbeer 870
                                      <button style="border-radius: 18px; margin-top: 4px; background: navajowhite;">
871
                                        <div class="title total_sale_dashboard" style="cursor: pointer; color:black;">Online Sales</div>
872
                                        </button>
28410 tejbeer 873
                                    </div>
28413 tejbeer 874
                              </div>
28410 tejbeer 875
                            </div>
876
                        </div>
27875 amit.gupta 877
                    </div>
28410 tejbeer 878
 
27875 amit.gupta 879
                    <div class="row">
880
                        <div class="Mobile">
881
                            #foreach($brandStockPrice in $brandStockPrices)
882
 
883
                                <div class="col-lg-3">
884
                                    <div class="card card-default">
25680 amit.gupta 885
							<span class="card-body" style="padding-bottom:0px">
886
								<table>
25214 amit.gupta 887
									<thead>
888
										<tr><td colspan="2">Current Stock</td></tr>
889
									</thead>
890
									<tbody>
25219 amit.gupta 891
										<tr><th>Qty</th><td>$brandStockPrice.getTotalQty()pc</td></tr>
27875 amit.gupta 892
										<tr><th>Value</th><td><span
893
                                                class="currency">$brandStockPrice.getTotalValue()</span></td></tr>
25214 amit.gupta 894
									</tbody>
25680 amit.gupta 895
								</table>
27875 amit.gupta 896
                                #if($brandStockPrice.getAgedValue()>0)
897
                                    <p style="color:#d15a57;font-weight:700" title="Focus Stock">
25680 amit.gupta 898
									<span class="currency">$brandStockPrice.getAgedValue()</span> / $brandStockPrice.getAgedQty()
899
								</p>
27875 amit.gupta 900
                                #else
901
                                    <p>&nbsp;</p>
902
                                #end
25680 amit.gupta 903
							</span>
28151 amit.gupta 904
                                        <span class="card-img" style="text-align:center">
27875 amit.gupta 905
							<img src="${brandStockPrice.getBrandUrl()}" data-stockbrand="$brandStockPrice.getBrand()"
906
                                 class="cover $brandStockPrice.getBrand()" id="stockcatalog"
907
                                 class="$brandStockPrice.getBrand()">
27618 tejbeer 908
							</span></span>
27875 amit.gupta 909
                                    </div>
910
                                </div>
911
                            #end
912
                        </div>
913
                        <div class="row">
914
 
915
                            <div class="col-lg-3">
916
                                <div class="card card-default">
27623 tejbeer 917
							<span class="card-body" style="padding-bottom:38px;">
26071 tejbeer 918
								<table>
919
									<thead>
920
										<tr><td colspan="2">Current Stock</td></tr>
921
									</thead>
922
									<tbody>
923
										<tr><th>Value</th><td><span class="currency">$accesoriesStock</span></td></tr>
924
									</tbody>
925
								</table>
926
							</span>
27875 amit.gupta 927
                                    <span class="card-img">
928
								<img src="resources/images/accessories.jpg" id="accesoriesStock"
929
                                     class="accesoriesClass">
26071 tejbeer 930
							</span>
27875 amit.gupta 931
                                </div>
932
                            </div>
21627 kshitij.so 933
 
27875 amit.gupta 934
                        </div>
935
                    </div>
27358 tejbeer 936
 
27357 tejbeer 937
 
27875 amit.gupta 938
                </div>
21627 kshitij.so 939
 
27875 amit.gupta 940
                <div class="col-lg-6">
941
                    #foreach( $offer in $publishedOffers )
942
                        <div class="row col-lg-12 info-box white-bg" style="margin-bottom:1px">
27949 amit.gupta 943
                            <h3 style="margin-top:-2px;color:#c70db8;margin-bottom:4px;font-weight:bold">
27944 amit.gupta 944
                                $offer.getName()
27875 amit.gupta 945
                            </h3>
27945 amit.gupta 946
                            <h4 style="margin-top:-2px;font-size:15px;color:#5547d0;font-weight:bold">
27944 amit.gupta 947
                            	From $dateMonthFormatter.format($offer.getStartDate()) to $dateMonthFormatter.format($offer.getEndDate()), Based on $offer.getSchemeType() on $offer.getActivationBrands()
27875 amit.gupta 948
                            </h4>
949
                            <h4 style="color:green;margin-top:0px;margin-bottom:0px;">
28028 amit.gupta 950
                            	$offer.getDashboardHtml()
27875 amit.gupta 951
                            </h4>
27886 amit.gupta 952
                            <p style="float:right;font-size:15px; margin:0px 0px 0px; " class="description-offer"
27875 amit.gupta 953
                               data-offerid="$offer.getId()" data-toggle="modal" data-target="#offerDescription"
27921 amit.gupta 954
                               data-backdrop="static" data-keyboard="false"><a href="javascript:void(0)">All terms & conditions</a></p>
27875 amit.gupta 955
                        </div>
956
                    #end
957
                    <div class="offer-margin-container">
958
                        <div class="modal  text-center" id="offerDescription">
959
                            <div class="modal-dialog">
960
                                <div class="modal-content">
961
                                </div>
962
                            </div>
963
                        </div>
964
                    </div>
28272 tejbeer 965
 
966
                    <div class="row col-lg-12 info-box white-bg" id="performanceContainer">
967
                                   #parse("performance.vm")
968
 
969
                  </div>
27946 amit.gupta 970
                    #if($activatedImeis > 0)
971
                        <div class="row col-lg-12 info-box white-bg">
972
                            #parse("dashboard-activated-imeis.vm")
973
                        </div>
974
                    #end
27875 amit.gupta 975
                    <div class="row col-lg-12">
28431 tejbeer 976
                    <ul class="nav nav-tabs">
28434 tejbeer 977
                      <li class="bar_chart"><a class="ba">MTD Sales</a></li>
978
                      <li class="lms_line_chart"><a class="la">Monthly Sales</a></li>
28439 tejbeer 979
                        <li class="purchase_line_chart"><a class="pa">Monthly Purchase</a></li>
28443 tejbeer 980
                         <li class="priceDrop_chart"><a class="pd">Price-Drop</a></li>
28431 tejbeer 981
 
982
                    </ul>
983
                         <div class="row ChartContainer" style="margin:5px">
984
 
985
                                </div>
986
 
987
 
27875 amit.gupta 988
                    </div>
28272 tejbeer 989
 
28431 tejbeer 990
 
28272 tejbeer 991
 
27875 amit.gupta 992
                </div>
993
            </div>
994
            </div>
995
        </section>
996
        <div class="text-center">
997
            <div class="credits">
998
                <p>All rights reserved.&copy;2017, Smart Dukaan</p>
999
            </div>
1000
        </div>
1001
    </section>
1002
 
1003
    <script type="text/javascript">
1004
        context = "${rc.contextPath}";
1005
        webApiScheme = "$webApiScheme";
1006
        webApiRoot = "$webApiRoot";
1007
        webApiHost = "$webApiHost";
1008
        webApiPort = "$webApiPort";
1009
    </script>
1010
    #parse("include-scripts.vm")
1011
 
1012
    <script type="text/javascript">
1013
        $(document).ready(function () {
28410 tejbeer 1014
          var salesCloseFlag = true;
27875 amit.gupta 1015
            $("#blue-dropdown").click(function () {
1016
                // console.log("clicked");
1017
                if (salesCloseFlag) {
1018
                    var containerWidth = $(".blue-bg").width()
1019
                    doGetAjaxRequestHandler(context + "/getMonthSale", function (response) {
1020
                        $('.monthsaleContainer').html(response);
1021
 
1022
                        $(".blue-bg").css({"position": "absolute", "z-index": "10"}).width(containerWidth);
1023
                    });
1024
                } else {
1025
                    $(".blue-bg").removeAttr('style');
1026
                    $('.monthsaleContainer').html('');
1027
                }
1028
                salesCloseFlag = !salesCloseFlag;
1029
            });
1030
        });
28410 tejbeer 1031
 
27875 amit.gupta 1032
 
28410 tejbeer 1033
 
28431 tejbeer 1034
 
27887 amit.gupta 1035
        $(document).ready(function () {
28431 tejbeer 1036
 
1037
        $(".bar_chart").click();
1038
 
27887 amit.gupta 1039
            var investmentCloseFlag = true;
1040
            $("#purple-dropdown").click(function () {
1041
                console.log('hello');
1042
                $(".flash").stop();
1043
                // console.log("clicked");
1044
                if (investmentCloseFlag) {
1045
                    var containerWidth = $(".purple-bg").width()
1046
                    doGetAjaxRequestHandler(context + "/investmentDetails", function (response) {
1047
                        $('.investmentContainer').html(response);
1048
                        $(".purple-bg").css({"position": "absolute", "z-index": "10"}).width(containerWidth);
1049
                    });
1050
                } else {
1051
                    $(".purple-bg").removeAttr('style');
1052
                    $('.investmentContainer').html('');
1053
                }
1054
                investmentCloseFlag = !investmentCloseFlag;
1055
            });
1056
        });
27875 amit.gupta 1057
 
28455 tejbeer 1058
      function sleep(delay) {
1059
    var start = new Date().getTime();
1060
    while (new Date().getTime() < start + delay);
1061
}
28443 tejbeer 1062
        $(document).on("click", ".priceDrop_chart",
1063
                function () {
1064
                $(".pd").css("color", "blue"); 
1065
                $(".pd").css("background-color", "white");
1066
              $(".ba").css("color", "white"); 
1067
              $(".ba").css("background-color", "#C0C0C0");    
1068
                 $(".pa").css("color", "white"); 
1069
              $(".pa").css("background-color", "#C0C0C0");    
1070
               $(".la").css("color", "white"); 
28455 tejbeer 1071
               $(".la").css("background-color", "#C0C0C0");
1072
                 sleep(500);
28443 tejbeer 1073
                 doGetAjaxRequestHandler(context + "/getMonthlyPriceDrop", function (response) {
28455 tejbeer 1074
 
28443 tejbeer 1075
                        $('.ChartContainer').html(response);
1076
                    });    
1077
       });
28431 tejbeer 1078
 
28443 tejbeer 1079
 
28439 tejbeer 1080
       $(document).on("click", ".purchase_line_chart",
1081
                function () {
1082
                $(".pa").css("color", "blue"); 
1083
                $(".pa").css("background-color", "white");
1084
              $(".ba").css("color", "white"); 
28443 tejbeer 1085
              $(".ba").css("background-color", "#C0C0C0");  
1086
               $(".pd").css("color", "white"); 
1087
                $(".pd").css("background-color", "#C0C0C0");  
28439 tejbeer 1088
               $(".la").css("color", "white"); 
1089
                $(".la").css("background-color", "#C0C0C0");
1090
                 doGetAjaxRequestHandler(context + "/getMonthlyPurchaseLineChart", function (response) {
1091
                        $('.ChartContainer').html(response);
1092
                    });    
1093
       });
28431 tejbeer 1094
 
1095
        $(document).on("click", ".lms_line_chart",
1096
                function () {
28439 tejbeer 1097
 
28431 tejbeer 1098
              $(".ba").css("color", "white"); 
28443 tejbeer 1099
              $(".ba").css("background-color", "#C0C0C0");   
1100
               $(".pa").css("color", "white"); 
1101
                $(".pa").css("background-color", "#C0C0C0");   
28431 tejbeer 1102
               $(".la").css("color", "blue"); 
1103
                $(".la").css("background-color", "white");
28443 tejbeer 1104
                $(".pd").css("color", "white");
1105
                $(".pd").css("background-color", "#C0C0C0");
28431 tejbeer 1106
                 doGetAjaxRequestHandler(context + "/getlmsLineChart", function (response) {
1107
                        $('.ChartContainer').html(response);
1108
                    });    
1109
       });       
1110
 
1111
          $(document).on("click", ".bar_chart",
1112
                function () {    
1113
                $(".ba").css("color", "blue");
1114
                $(".ba").css("background-color", "white");   
1115
               $(".la").css("color", "white"); 
28439 tejbeer 1116
                $(".la").css("background-color", "#C0C0C0");
28443 tejbeer 1117
                 $(".pa").css("color", "white"); 
1118
                $(".pa").css("background-color", "#C0C0C0");  
1119
                 $(".pd").css("color", "white");
1120
                $(".pd").css("background-color", "#C0C0C0");                   
28431 tejbeer 1121
                 doGetAjaxRequestHandler(context + "/getBarChart", function (response) {
1122
                        $('.ChartContainer').html(response);
1123
                    });              
1124
            }); 
28439 tejbeer 1125
 
27887 amit.gupta 1126
 
28431 tejbeer 1127
 
27920 amit.gupta 1128
        $(document).on("click", "p.description-offer",
27875 amit.gupta 1129
                function (e) {
1130
                    var offerid = $(this).data('offerid');
1131
                    console.log(offerid);
1132
                    doGetAjaxRequestHandler(context + "/getOfferMargins?offerId="
1133
                            + offerid, function (response) {
1134
                        $('.offer-margin-container .modal-content').html(response);
1135
                    });
1136
                });
1137
 
1138
 
1139
        $(document).on("click", ".cancel-description",
1140
                function (e) {
1141
                    $("#descriptionMenu").empty();
1142
                });
1143
 
1144
 
1145
        $(document).on("click", "#cancel-model",
1146
                function (e) {
1147
                    $("#descriptionMenu").empty();
1148
                });
1149
 
1150
 
28272 tejbeer 1151
 
1152
 
1153
       $(document).on('change', "#performance-months", function() {
1154
 
1155
            var month = 	$("#performance-months").val();
1156
             console.log(month);   
1157
 
1158
           doGetAjaxRequestHandler(context + "/getMonthsInvestment?month=" + month ,function (response) {
1159
                   console.log(response);
1160
                  $("#performanceContainer").html(response);
1161
 
1162
        });
1163
              	});
1164
 
1165
 
27875 amit.gupta 1166
    </script>
1167
    <script>
1168
 
1169
        //knob
1170
        $(function () {
1171
            /*$(".knob").knob({
1172
              'draw' : function () {
1173
                $(this.i).val(this.cv + '%')
1174
              }
1175
            });*/
1176
            $.fn.dataTable.moment('DD/MM/YYYY');
1177
            $.fn.dataTable.moment('DD/MM/YYYY hh:mm');
1178
            $('.currency').each(function (index, ele) {
1179
                if (!isNaN(parseInt($(ele).html()))) {
1180
                    $(ele).html(numberToComma($(ele).html()));
1181
                }
1182
            });
1183
        });
1184
 
1185
        $(function () {
1186
            var profile = localStorage.getItem('profile');
1187
            if (profile) {
1188
                $("#photo").attr("src", JSON.parse(profile).image_url);
1189
                $("#fofo_name").text(JSON.parse(profile).name);
1190
            } else {
1191
                $("#photo").attr("src", "");
1192
                $("#fofo_name").text("Welcome, User");
1193
            }
1194
        });
1195
 
1196
        $(function () {
1197
            var bag = localStorage.getItem('bag');
1198
            console.log(bag);
1199
            if (bag) {
1200
                console.log("yes");
1201
                //$("#cart_bar").find('span').text(10);
1202
                $("#cart_bar").find('span').text(Object.keys(JSON.parse(bag)).length);
1203
            } else {
1204
                $("#cart_bar").find('span').text(0);
1205
            }
1206
        });
1207
 
1208
        $("#logout").click(function () {
1209
            localStorage.profile = undefined;
1210
        });
1211
            #set($partnerInvestment = $investments.get("investment"))
1212
        saleAmount = numberToComma($partnerInvestment.getSalesAmount());
1213
        minimumInvestmentAmount = numberToComma($partnerInvestment.getMinInvestment());
1214
        totalInvestedAmount = numberToComma($partnerInvestment.getTotalInvestment());
1215
        shortPercentage = numberToComma($partnerInvestment.getShortPercentage());
1216
        grnPendingStockAmount = numberToComma($partnerInvestment.getGrnPendingAmount());
1217
        unbilledStockAmount = numberToComma($partnerInvestment.getUnbilledAmount());
1218
        inStockAmount = numberToComma($partnerInvestment.getInStockAmount());
1219
        walletAmount = numberToComma($partnerInvestment.getWalletAmount());
1220
        shortAmount = numberToComma($partnerInvestment.getShortInvestment());
1221
        minAmountToBeAdded = numberToComma($partnerInvestment.getMinAmountToBeAdded());
1222
        isInvestmentOk = $isInvestmentOk;
1223
        starTotal = 5;
1224
        ratings = {
1225
            current: $currentMonthRating,
1226
            last: $lastMonthRating,
1227
            tilldate: $ratingTillDate
1228
        };
1229
        for (const rating in ratings) {
1230
            // 2
1231
            const starPercentage = (ratings[rating] / starTotal) * 100;
1232
            // 3
1233
            const starPercentageRounded = `${starPercentage}%`;
1234
            // 4
1235
            document.querySelector(`.${rating} .stars-inner`).style.width = starPercentageRounded;
1236
        }
1237
 
1238
        hasGift =$hasGift;
1239
        giftItemId = $giftItemId;
1240
        monthDays =$monthDays;
1241
        dayOfMonth = $dayOfMonth;
1242
        $(function () {
1243
            $('#links_bar').popover({
1244
                container: ".notification-row",
1245
                template: `<div class="popover" style="min-width: 18%;">
25140 amit.gupta 1246
							<div class="arrow"></div>
1247
							<div class="popover-inner">
1248
								<h4 class="popover-title">
1249
								</h4>
1250
								<div class="popover-content"><p></p></div>
1251
							</div>
1252
						</div>`,
27875 amit.gupta 1253
                html: true,
1254
                content: `<div class="container-fluid">
25140 amit.gupta 1255
		    				<div class="row"><h5 class="page-header" style="color:#333;margin:6px 0 3px">Quick Links</h5></div>
1256
		    				<div class="row">
1257
							    <div class="col-lg-3">
26583 amit.gupta 1258
								    <a href="/spicemoney/getToken" target="_blank" href="">
26585 amit.gupta 1259
								    	<img title="Spice Money" src="/resources/images/icons/provider-logos/spicemoney.jpg" style="width:40px"></img>
26583 amit.gupta 1260
								    </a>
1261
								</div>
25140 amit.gupta 1262
							</div>
1263
		    			</div>`,
27875 amit.gupta 1264
                placement: "bottom",
1265
                trigger: "focus"
1266
            });
1267
        });
27696 tejbeer 1268
 
27875 amit.gupta 1269
        function showAttendanceModal() {
1270
            var today = new Date().getTime();
1271
            if ($.cookie("punchIn") == undefined) {
1272
                document.cookie = "punchIn=" + today;
1273
            }
1274
            if (today >= parseInt($.cookie("punchIn"))) {
1275
                doGetAjaxRequestHandler(context + "/getPunchInOutForModel", function (response) {
1276
                    if (response == 'true') {
1277
                        $('#punchInOutModal').modal('hide');
1278
                        clearInterval(stopInterval);
1279
                    } else {
1280
                        $("#punch-in-out-model").html(response);
1281
                        $('#punchInOutModal').modal('show');
1282
                        var time = today + 30 * 60 * 1000
1283
                        document.cookie = "punchIn=" + time;
1284
                    }
1285
                });
1286
            }
1287
        }
1288
 
1289
        var stopInterval;
1290
        $(document).ready(function () {
1291
            stopInterval = setInterval(showAttendanceModal, 100000000);
1292
 
1293
            $('div.message-filter').on('click', 'button', function () {
1294
 
1295
                messageType = $(this).data("messagetype");
1296
                notifyTypeChange(messageType, $(this));
1297
 
1298
            });
1299
        });
1300
 
1301
 
1302
        $(function () {
1303
            if (navigator.geolocation) {
1304
                navigator.geolocation.getCurrentPosition(showPosition);
1305
            } else {
1306
                console.log("Geolocation is not supported by browser.");
1307
            }
1308
            dateRangeCallback(moment(), moment());
1309
            loaderDialogObj = bootbox.dialog({
1310
                message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
1311
                show: false
1312
            });
1313
 
1314
        });
1315
    </script>
26318 tejbeer 1316
    <div id="punchInOutModal" class="modal" role="dialog">
27875 amit.gupta 1317
        <div class="modal-dialog">
1318
 
1319
            <!-- Modal content-->
1320
            <div class="modal-content">
1321
                <div class="modal-header">
1322
                    <button type="button" class="close" data-dismiss="modal">&times;</button>
1323
                    <h4 class="modal-title">Punch In Out</h4>
1324
                </div>
1325
                <div class="modal-body">
1326
                    <div id="punch-in-out-model">
1327
 
1328
                    </div>
1329
                </div>
1330
            </div>
1331
        </div>
26071 tejbeer 1332
    </div>
27875 amit.gupta 1333
</section>
1334
</body>
27696 tejbeer 1335
</html>
1336
<style>
1337
 
1338
 
27875 amit.gupta 1339
    .popover2 {
1340
        min-width: 30em;
1341
        height: 410px;
1342
        overflow: auto;
1343
        padding: 8px 5px;
1344
        overflow-x: hidden;
27696 tejbeer 1345
 
27875 amit.gupta 1346
    }
27696 tejbeer 1347
 
27875 amit.gupta 1348
    .popover1 {
1349
        min-width: 30em;
27696 tejbeer 1350
 
1351
 
27875 amit.gupta 1352
    }
27696 tejbeer 1353
 
27875 amit.gupta 1354
    .mark {
1355
        font-size: 13px;
1356
        padding: 5px 6px;
1357
        border: solid 3px red;
1358
        margin-bottom: -14px;
1359
        color: red;
27696 tejbeer 1360
 
27875 amit.gupta 1361
    }
27696 tejbeer 1362
 
27875 amit.gupta 1363
    .mark.btn-pressed {
1364
        color: black;
1365
        background: white;
1366
        font-size: 17px;
1367
        border-radius: 3px;
1368
        border: solid 2px black;
1369
    }
27696 tejbeer 1370
 
27875 amit.gupta 1371
    .price {
1372
        padding: 5px 6px;
1373
        font-size: 13px;
1374
        border: solid 1px black;
1375
        border: solid 3px red;
1376
        margin-bottom: -14px;
1377
        color: red;
27696 tejbeer 1378
 
27875 amit.gupta 1379
    }
1380
 
1381
    .price.btn-pressed {
1382
        color: black;
1383
        background: white;
1384
        font-size: 17px;
1385
        border: solid 2px black;
1386
    }
1387
 
1388
    .schem {
1389
        color: red;
1390
        padding: 5px 6px;
1391
        font-size: 13px;
1392
        border: solid 3px red;
1393
        margin-bottom: -14px;
1394
 
1395
    }
1396
 
1397
    .schem.btn-pressed {
1398
        color: black;
1399
        background: white;
1400
        font-size: 17px;
1401
        border: solid 2px black;
1402
    }
1403
 
1404
    .notify-messages {
1405
        min-height: 65px;
1406
    }
1407
 
1408
    .notifi {
1409
        padding: 5px 6px;
1410
        font-size: 13px;
1411
        margin-bottom: -14px;
1412
 
1413
        color: red;
1414
        border: solid 3px red;
1415
    }
1416
 
1417
    .notifi.btn-pressed {
1418
        color: black;
1419
        font-size: 17px;
1420
        border: solid 2px black;
1421
        background: white;
1422
    }
1423
 
1424
    canvas {
1425
        -moz-user-select: none;
1426
        -webkit-user-select: none;
1427
        -ms-user-select: none;
1428
    }
27696 tejbeer 1429
</style>
27707 amit.gupta 1430
</script>
28272 tejbeer 1431
 
1432
 
1433
 
27707 amit.gupta 1434
<script type="text/javascript">
1435
    window.onload = function () {
1436
        var options = $chartMap;
1437
        var ctx = document.getElementById('barchart').getContext('2d');
1438
        window.bar = new Chart(ctx, options);
1439
    };
1440
</script>