Subversion Repositories SmartDukaan

Rev

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

Rev Author Line No. Line
26010 amit.gupta 1
<!DOCTYPE html>
2
<html lang="en">
3
  <head>
4
    <meta charset="utf-8">
5
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
6
    <meta name="description" content="Smart Dukaan FOCO Dashboard">
7
    <meta name="author" content="smartdukaan">
8
    <!--<meta http-equiv="Content-Security-Policy" content="upgrade-insecure-requests">--> 
9
	<link rel="shortcut icon" href="assets/images/icons/favicon.png">
10
 
11
    <title>Smart Dukaan - FOCO Dashboard</title>
12
 
13
    <!-- Bootstrap CSS -->    
14
    <!-- bootstrap theme -->
15
    <!--external css-->
16
    <!-- font icon -->
17
    <link href="resources/css/elegant-icons-style.css" rel="stylesheet" />
18
    <link href="resources/css/font-awesome.min.css" rel="stylesheet" />    
19
    <!-- full calendar css-->
20
    <!-- owl carousel -->
21
    <link rel="stylesheet" href="resources/css/owl.carousel.css" type="text/css">
22
	<link href="resources/css/jquery-jvectormap-1.2.2.css" rel="stylesheet">
23
    <!-- Custom styles -->
24
	<link href="resources/css/widgets.css" rel="stylesheet">
25
    <link href="resources/css/style.css?v=${cssVersion}" rel="stylesheet">
26
    <link href="resources/css/card.css?v=${cssVersion}" rel="stylesheet">
27
    <link href="resources/css/style-responsive.css" rel="stylesheet" />
28
	<link href="resources/css/jquery-ui-1.10.4.min.css" rel="stylesheet">
29
    <link type="text/css" href="resources/css/bootstrap.css" rel="stylesheet">
30
	<!--<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/bootstrap/3/css/bootstrap.css" />-->
31
    <link href="resources/css/bootstrap-theme.min.css" rel="stylesheet">
32
	<link rel="stylesheet" type="text/css" href="//cdn.jsdelivr.net/npm/daterangepicker/daterangepicker.css" />
33
 
34
	<link rel="stylesheet" type="text/css" href="resources/css/bootstrap-multiselect.css" />
27333 amit.gupta 35
	<link rel="stylesheet" type="text/css" href="resources/css/multi.min.css"/>
36
	<link rel="stylesheet" type="text/css" href="resources/css/slimselect.min.css"/>
37
	<link rel="stylesheet" type="text/css" href="resources/js/chosen.min.css"/>
26010 amit.gupta 38
	<link rel="stylesheet" type="text/css" href="//cdn.datatables.net/1.10.16/css/dataTables.bootstrap.min.css"/>
39
	<link rel='stylesheet' href='https://use.fontawesome.com/releases/v5.7.0/css/all.css' integrity='sha384-lZN37f5QGtY3VHgisS14W3ExzMWZxybE1SJSEsQp9S+oqd12jhcu+A56Ebc1zFSJ' crossorigin='anonymous'>
27412 amit.gupta 40
	<link href="https://cdn.jsdelivr.net/npm/select2@4.1.0-beta.1/dist/css/select2.min.css" rel="stylesheet" />
41
 
26010 amit.gupta 42
	<style type="text/css">
43
		.loading {
44
  			display: none;
45
		}
46
		.breadcrumb {
47
    		padding: 0 15px;
48
    	}
49
 
50
    	.stars-outer {
51
		  display: inline-block;
52
		  position: relative;
53
		  font-family: FontAwesome;
54
		}
55
 
56
		.stars-outer::before {
57
		  content: "\f006 \f006 \f006 \f006 \f006";
58
		}
59
 
60
		.stars-inner {
61
		  position: absolute;
62
		  top: 0;
63
		  left: 0;
64
		  white-space: nowrap;
65
		  overflow: hidden;
66
		  width: 0;
67
		}
68
 
69
		.stars-inner::before {
70
		  content: "\f005 \f005 \f005 \f005 \f005";
71
		  color: #f8ce0b;
72
		}
73
 
74
 
75
	.table-striped > tbody > tr:nth-child(odd) > td{
76
  		background: white;
77
  		background-color: #dae5f4;
78
	}
79
	.table-striped > tbody > tr:nth-child(even) > td{
80
  		background:  #f2f2f2;
81
  		background-color: #b8d1f3;
82
	}
83
 
84
	.btn:hover{
85
  		color: grey;
86
  		text-decoration: none;
87
	}
88
	.btn-primary:hover{
89
  		color: grey;
90
  		text-decoration: none;
91
	}
92
	.sale-details{
93
		cursor:pointer;
94
	}
95
 
96
	.popover {
97
		min-width:18%;
98
	}
99
	.fa-2x {
100
		font-size:1.4em;
101
	}
102
	.cover {
103
	  object-fit: cover;
104
	  width: 100%;
105
	  height: 90px;
106
	  padding: 8px;
107
	}
108
	.info-box .notifications i {
109
    display: inline-block;
110
    margin-top:0px;
111
    height: 25px;
112
    font-size: 16px;
113
    line-height: 25px;
114
    width: 25px;
115
    float: none;
116
    text-align: center;
117
    padding-right: 0px;
118
    color:#768399;
119
  }
120
 
121
	#preview {
122
	  position: relative;
123
	  color: #fff;
124
	  float: left;
125
	  width: 100%;
126
	  -webkit-border-radius: 10px;
127
	  -moz-border-radius: 10px;
128
	  border-radius: 10px;
129
	  clear: both;
130
	}
131
	#canvas-preview{
132
	  width: 100%;
133
	  position: relative;
134
	  top:-15px;
135
	}
136
	#preview-textfield{
137
	  position: absolute; top: -10px; left: 0; right: 0;
138
	  text-align: center; font-size: 2em; font-weight: bold;
139
	  color: white; font-family: 'Amaranth', sans-serif;
140
	}
141
 
142
 
143
	</style>
26418 tejbeer 144
	<script type="text/javascript">
27545 tejbeer 145
	function getWarehousePartners(warehouseId){
26418 tejbeer 146
 
27545 tejbeer 147
		doGetAjaxRequestHandler(context + "/getWarehousePartners?warehouseId="+warehouseId,
26418 tejbeer 148
			function(response) {
149
				$('#' + "main-content").html(response);
150
				console.log(response)
151
			});
152
	}
27509 tejbeer 153
 
154
		function getWarehouseBrandStock(warehouseId){
155
 
156
		doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandStock?warehouseId="+warehouseId,
157
			function(response) {
158
				$('#' + "main-content").html(response);
159
				console.log(response)
160
			});
161
	}
27529 tejbeer 162
 
163
 
27591 tejbeer 164
	function getWarehouseWiseBrandPartnerSale(brand){
27556 tejbeer 165
 
27591 tejbeer 166
		doGetAjaxRequestHandler(context + "/getWarehouseWiseBrandPartnerSale?brand="+brand,
27556 tejbeer 167
			function(response) {
168
				$('#' + "main-content").html(response);
169
				console.log(response)
170
			});
171
	}
172
 
27594 tejbeer 173
	function getWarehouseWiseAccessoriesBrandPartnerSale(brand){
174
	doGetAjaxRequestHandler(context + "/getWarehouseWiseAccesoriesBrandPartnerSale?brand="+brand,
175
			function(response) {
176
				$('#' + "main-content").html(response);
177
				console.log(response)
178
			});
179
	}
27556 tejbeer 180
 
27594 tejbeer 181
 
27529 tejbeer 182
</script>
183
 
184
 
185
<script type="text/javascript">
186
	function getWarehouseWiseData(){
187
		doGetAjaxRequestHandler(context + "/getWarehouseWiseData",
188
			function(response) {
189
				$('#' + "main-content").html(response);
190
				console.log(response)
191
				if(response == 'true'){
27628 tejbeer 192
 
27529 tejbeer 193
				  window.location.href = $('.dashboardload').attr('href');
194
				 }
195
			});
196
	}
197
 
27628 tejbeer 198
   function	getPartnersStat(){
199
      doGetAjaxRequestHandler(context + "/getPartnersStatData",
200
			function(response) {
201
				$('#' + "main-content").html(response);
202
				console.log(response)
203
				if(response == 'true'){
204
					console.log("hello 2")
205
 
206
				  window.location.href = $('.dashboardload').attr('href');
207
				 }
208
		});
209
   }
210
 
26418 tejbeer 211
 
27529 tejbeer 212
</script>
213
 
214
 
215
 
26010 amit.gupta 216
  </head>
217
 
218
  <body style="zoom:90%;background-color:#f7f7f7">
219
  <!--<div class="loading"><img src="resources/images/icons/loading.gif"></div>-->
220
  <!-- container section start -->
221
  <section id="container">
222
 
223
 
224
      <header class="header dark-bg">
225
            <div class="toggle-nav">
226
                <div class="icon-reorder tooltips" data-original-title="Toggle Navigation" data-placement="bottom"><i class="icon_menu"></i></div>
227
            </div>
228
            <div class="top-nav notification-row">
229
                <!-- notificatoin dropdown start-->
230
                <ul class="nav pull-right top-menu">
231
                    <!-- user login dropdown start-->
232
                    <li class="dropdown">
233
                        <a data-toggle="dropdown" class="dropdown-toggle" href="#">
234
                            <span class="profile-ava">
235
                                <img class="avatar-custom" id="photo" alt="" src="">
236
                            </span>
237
                            <span class="username" id="fofo_name"></span>
238
                            <b class="caret"></b>
239
                        </a>
240
                        <ul class="dropdown-menu extended logout">
241
                            <div class="log-arrow-up"></div>
242
                            <li class="eborder-top">
243
                                <a class="change-auth-user-password" href="javascript:void(0);"><i class=""></i>Change Password</a>
244
                            </li>
245
                            <li>
246
                                <a href="${rc.contextPath}/logout"><i class="icon_key_alt" id = "logout"></i> Log Out</a>
247
                            </li>
248
                        </ul>
249
                    </li>
250
                    <!-- user login dropdown end -->
251
                </ul>
252
                <!-- notificatoin dropdown end-->
253
            </div>
254
      </header>      
255
      <!--header end-->
256
 
257
      <!--sidebar start-->
258
      <aside>
259
          <div id="sidebar"  class="nav-collapse ">
260
              <!-- sidebar menu start-->
261
              <ul class="sidebar-menu">                
262
              	  <li class="active">
27529 tejbeer 263
                      <a class="dashboardload" href="${rc.contextPath}/dashboard">
26010 amit.gupta 264
                          <i class="icon_house_alt"></i>
265
                          <span>Dashboard</span>
266
                      </a>
267
                  </li>
26512 amit.gupta 268
                  <li><a class="product-compare-info" href="javascript:void(0);">Product Compare</a></li>
26740 amit.gupta 269
                  <li><a class="web-listing" href="javascript:void(0);">Web Listing</a></li>
26958 tejbeer 270
                  <li><a class="banner-listing" href="javascript:void(0);">Banner Listing</a></li>
27520 amit.gupta 271
                  <li><a class="published-schemes" href="javascript:void(0);">Published Offers</a></li>
272
                  <li><a class="view-invoices" href="javascript:void(0);">View Invoices</a></li>
26014 amit.gupta 273
                  #foreach($menuItem in $menu)
274
		            <li class="sub-menu">
275
		              <a href="javascript:;" class="">
276
	                       <i class="icon_document_alt"></i>
277
	                       <span>$menuItem.getDisplayText()</span>
278
	                       <span class="menu-arrow arrow_carrot-right"></span>
279
		              </a>
280
					  <ul class="sub">
281
					  #foreach($subMenu in $menuItem.getSubMenus())
282
						  <li><a class="$subMenu.getActionClass()" href="javascript:void(0);">$subMenu.getDisplayText()</a></li>
283
					  #end
284
					</ul>
285
		           	</li>
26010 amit.gupta 286
                  #end
287
              </ul>
288
              <!-- sidebar menu end-->
289
          </div>
290
      </aside>
291
      <!--sidebar end-->
292
 
293
	<!--main content start-->
294
	<section id="main-content">
295
		<section class="wrapper">
296
          	<!--overview start-->
297
			<div class="row">
298
				<div class="col-lg-12">
299
					<h3 class="page-header"><i class="fa fa-laptop"></i> Dashboard</h3>
300
					<ol class="breadcrumb">
301
						<li><i class="fa fa-home"></i><a href="${rc.contextPath}/dashboard">Home</a></li>
302
						<li><i class="fa fa-laptop"></i>Dashboard</li>						  	
303
					</ol>
304
				</div>
305
			</div>
306
			<!-- overview end -->
27631 tejbeer 307
 
308
			    #if($warehousePartnerDetailMap)
26418 tejbeer 309
				<div class="row">
310
 
27558 tejbeer 311
				<div class="col-lg-6">
312
 
313
				 <div class="row col-lg-4">
314
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Partner Wise Report</strong></h3>
315
				 </div>
27628 tejbeer 316
 
317
				<div style="float:right"> <span style="margin-right:10px">Last Fetch :- $rctPartneStat.getLastCreatedTimestamp().format($dateTimeFormatter)</span><button class="btn btn-primary fetchPartnersData"  onclick="getPartnersStat()" type="button">Fetch</button>
318
					</div>
26418 tejbeer 319
				 <table class="table table-striped table-advance table-hover">
320
	    			<tbody>
321
	    				<tr>
27545 tejbeer 322
	    				<th>W/H Location</th>
323
	    				<th>Partners</th>
27556 tejbeer 324
                         <th>LMTD</th>
325
	    				 <th>MTD</th>
27549 tejbeer 326
	    				 <th>Today Tertiary</th>
27545 tejbeer 327
	    				 <th>Tickets</th>
26418 tejbeer 328
	    				</tr>
27545 tejbeer 329
	    				#foreach($name in $warehousePartnerDetailMap.keySet())
330
	    				<tr onclick="getWarehousePartners($name)">
331
	    	 		     <td>$warehouseMap.get($name)</td>
332
	    	 		     <td>$warehousePartnerDetailMap.get($name).getCount()</td>
27552 tejbeer 333
	    	 		     <td class="currency">$warehousePartnerDetailMap.get($name).getLmtd()</td>
334
	    	 		     <td class="currency">$warehousePartnerDetailMap.get($name).getMtd()</td>
335
	    	 		     <td class="currency">$warehousePartnerDetailMap.get($name).getTodayTertiary()</td>
27545 tejbeer 336
 
337
	    	 		     <td>$warehousePartnerDetailMap.get($name).getTicket()</td>
338
 
339
	    	 		   </tr>
26418 tejbeer 340
	    				 #end
341
 
342
	    		    </tbody>
343
	    		</table>
344
						</div>
345
 
27529 tejbeer 346
				<div class="col-lg-4">
27558 tejbeer 347
				   <div class="row col-lg-8">
348
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Warehouse Wise Report</strong></h3>
349
					</div>
27529 tejbeer 350
 
351
				<div style="float:right"> <span style="margin-right:10px">Last Fetch :- $reporticoDate.getLastCreatedTimestamp().format($dateTimeFormatter)</span><button class="btn btn-primary fetchWarehouseData"  onclick="getWarehouseWiseData()" type="button">Fetch</button>
352
						     </div>
353
				<table class="table table-striped table-advance table-hover">
26418 tejbeer 354
	    			<tbody>
355
	    				<tr>
27333 amit.gupta 356
	    				<th>W/H Location</th>
357
	    				<th>Total Stock</th>
358
	    				<th>Total Value</th>
27529 tejbeer 359
	    				<th>Pending Indent</th>
27541 tejbeer 360
	    				<th>Tertiary</th>
26418 tejbeer 361
	    				</tr>
27509 tejbeer 362
	    				#foreach($key in $warehouseMap.keySet())
363
 
364
	    				<tr onclick="getWarehouseBrandStock($warehouseStockMap.get($key).getWarehouseId())">
365
	    					<td>$warehouseMap.get($key)</td>
366
	    					#if($warehouseStockMap.get($key).getStockQty())
367
	    					<td>$warehouseStockMap.get($key).getStockQty()</td>
368
	    					<td class="currency">$warehouseStockMap.get($key).getStockValue()</td>
369
	    					#else
370
	    					<td>0</td>
371
	    					<td>0</td>
372
	    					#end
27529 tejbeer 373
	    					#if($warehouseStockMap.get($key).getPendingIndent())
374
	    				    <td>$warehouseStockMap.get($key).getPendingIndent()</td>
375
	    				    #else
376
	    				    <td>0</td>
377
	    					#end
27509 tejbeer 378
 
27541 tejbeer 379
	    					<td>$warehouseStockMap.get($key).getTertiary()</td>
27599 tejbeer 380
 
26418 tejbeer 381
		                  </tr>
27509 tejbeer 382
 
26418 tejbeer 383
	    				 #end
384
 
385
 
386
	    		    </tbody>
387
	    		</table>
388
 
389
			 </div>
390
			</div>
391
 
27631 tejbeer 392
			#end
27557 tejbeer 393
 
394
		    #if($brandSales)	
26418 tejbeer 395
 
26010 amit.gupta 396
			<div class="row">
26063 amit.gupta 397
				<div class="col-lg-6">
27592 tejbeer 398
					<div class="row col-lg-5">
399
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Mobile Brand Wise Report</strong></h3>
27556 tejbeer 400
					</div>
401
 
402
					 <table class="table table-striped table-advance table-hover">
403
	    			<tbody>
404
	    				<tr>
27591 tejbeer 405
	    			    <th>Brand</th>
27574 tejbeer 406
	    				<th>LMS</th>
407
	    				  <th>LMS Qty</th>
27556 tejbeer 408
	    				 <th>LMTD</th>
409
	    				  <th>LMTD Qty</th>
410
	    				   <th>MTD</th>
411
	    				    <th>MTD Qty</th>
412
	    				</tr>
27591 tejbeer 413
	    				#foreach($salekey in $$brandSales)
414
	    				<tr onclick="getWarehouseWiseBrandPartnerSale(`$salekey.getBrand()`)">
415
	    				  <td>$salekey.getBrand()</td>
416
 
417
	    	 		      #if($salekey.getLms())
418
	    	 		      <td class="currency">$salekey.getLms()</td>
27574 tejbeer 419
	    	 		      #else
420
	    	 		      <td>0</td>
421
	    	 		      #end
422
 
27591 tejbeer 423
	    	 		      #if($salekey.getLmsQty())
424
	    	 		      <td class="currency">$salekey.getLmsQty()</td>
27574 tejbeer 425
	    	 		      #else
426
	    	 		      <td>0</td>
427
	    	 		      #end
27591 tejbeer 428
	    	 		      #if($salekey.getLmtd())
429
	    	 		      <td class="currency">$salekey.getLmtd()</td>
27556 tejbeer 430
	    	 		      #else
431
	    	 		      <td>0</td>
432
	    	 		      #end
433
 
27591 tejbeer 434
	    	 		      #if($salekey.getLmtdQty())
435
	    	 		      <td class="currency">$salekey.getLmtdQty()</td>
27556 tejbeer 436
	    	 		      #else
437
	    	 		      <td>0</td>
438
	    	 		      #end
27591 tejbeer 439
	    	 		       #if($salekey.getMtd())
440
	    	 		      <td class="currency">$salekey.getMtd()</td>
27556 tejbeer 441
	    	 		      #else
442
	    	 		      <td>0</td>
443
	    	 		      #end
27591 tejbeer 444
	    	 		      #if($salekey.getMtdQty())
445
	    	 		      <td class="currency">$salekey.getMtdQty()</td>
27556 tejbeer 446
	    	 		      #else
447
	    	 		      <td>0</td>
448
	    	 		      #end
449
	    	 		   </tr>
450
	    				 #end
451
 
452
	    		    </tbody>
27599 tejbeer 453
	    		</table> 		
27556 tejbeer 454
			</div>
27594 tejbeer 455
 
27599 tejbeer 456
			<div class="col-lg-6">
457
					<div class="row col-lg-4">
458
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Reports</strong></h3>
459
					</div>
460
					<div class="row col-lg-12 info-box white-bg">
461
						<table class="table table-striped reports-table" style="display:none">
462
						    <tbody>
463
					    		<div class="list-group">
464
					            #foreach($reporticoProjectEntry in $reporticoProjectMap.entrySet())
465
						            #foreach($reporticoUrlInfo in $reporticoProjectEntry.getValue())
466
										  <a href="${rc.contextPath}/reports/${reporticoProjectEntry.getKey()}${reporticoUrlInfo.getUrl()}" class="list-group-item"
467
											  #if($reporticoUrlInfo.getParamsList())
468
											  data-paramslist="$vmUtils.htmlJson($reporticoUrlInfo.getParamsList())"
469
											  #end
470
										  >
471
										    <h4 class="list-group-item-heading">$reporticoUrlInfo.getTitle()</h4>
472
										    <p class="list-group-item-text">$reporticoUrlInfo.getDescription()</p>
473
										  </a>
474
 
475
					    			#end
476
				    			#end
477
								</div>
478
						    </tbody>
479
						</table>
480
 
481
					</div>
482
 
483
		  </div>
484
		  </div>
485
			#end
27594 tejbeer 486
 
27599 tejbeer 487
			#if($accessoriesBrandSales)				
488
			<div class="row">
489
				<div class="col-lg-6">
27594 tejbeer 490
					<div class="row col-lg-6">
491
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Accessories Brand Wise Report</strong></h3>
492
					</div>
493
 
494
					 <table class="table table-striped table-advance table-hover">
495
	    			<tbody>
496
	    				<tr>
497
	    			    <th>Brand</th>
498
	    				<th>LMS</th>
499
	    				  <th>LMS Qty</th>
500
	    				 <th>LMTD</th>
501
	    				  <th>LMTD Qty</th>
502
	    				   <th>MTD</th>
503
	    				    <th>MTD Qty</th>
504
	    				</tr>
505
	    				#foreach($salekey in $accessoriesBrandSales)
506
	    				<tr onclick="getWarehouseWiseAccessoriesBrandPartnerSale(`$salekey.getBrand()`)">
507
	    				  <td>$salekey.getBrand()</td>
508
 
509
	    	 		      #if($salekey.getLms())
510
	    	 		      <td class="currency">$salekey.getLms()</td>
511
	    	 		      #else
512
	    	 		      <td>0</td>
513
	    	 		      #end
514
 
515
	    	 		      #if($salekey.getLmsQty())
516
	    	 		      <td class="currency">$salekey.getLmsQty()</td>
517
	    	 		      #else
518
	    	 		      <td>0</td>
519
	    	 		      #end
520
	    	 		      #if($salekey.getLmtd())
521
	    	 		      <td class="currency">$salekey.getLmtd()</td>
522
	    	 		      #else
523
	    	 		      <td>0</td>
524
	    	 		      #end
525
 
526
	    	 		      #if($salekey.getLmtdQty())
527
	    	 		      <td class="currency">$salekey.getLmtdQty()</td>
528
	    	 		      #else
529
	    	 		      <td>0</td>
530
	    	 		      #end
531
	    	 		       #if($salekey.getMtd())
532
	    	 		      <td class="currency">$salekey.getMtd()</td>
533
	    	 		      #else
534
	    	 		      <td>0</td>
535
	    	 		      #end
536
	    	 		      #if($salekey.getMtdQty())
537
	    	 		      <td class="currency">$salekey.getMtdQty()</td>
538
	    	 		      #else
539
	    	 		      <td>0</td>
540
	    	 		      #end
541
	    	 		   </tr>
542
	    				 #end
543
 
544
	    		    </tbody>
27599 tejbeer 545
	    		</table>    		
27556 tejbeer 546
			</div>
27599 tejbeer 547
 
548
			<div class="col-lg-6">
549
					<div class="row col-lg-12 info-box white-bg">
550
						<div class="col-lg-4">
551
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>My Messages</strong>
552
						</h3>
553
						</div>
554
						<div class="col-lg-4">
555
							<div class="btn-group message-filter"> 
556
								<button data-messagetype="notification" type="button" class="btn btn-default" aria-label="Notifications" title="Notifications">
557
								<span class="glyphicon glyphicon-bell" aria-hidden="true"></span></button> 
558
								<button data-messagetype="announcement" type="button" class="btn btn-default" aria-label="Announcements" title="Announcements">
559
								<span class="glyphicon glyphicon-bullhorn" aria-hidden="true"></span></button> 
560
								<button data-messagetype="scheme" type="button" class="btn btn-default" aria-label="SmartDukaan Schemes" title="SmartDukaan Schemes">
561
									<span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
562
								</button>
563
								<button data-messagetype="marketing" type="button" class="btn btn-default" aria-label="SmartDukaan Schemes" title="SmartDukaan Schemes">
564
								 <span class="glyphicon glyphicon-picture" aria-hidden="true"></span>
565
							</button>
566
							</div>
567
						</div>
568
				    	<div class="col-lg-12 row notification-container" style="max-height: 500px;overflow-y: scroll;">
569
						</div>
570
					</div>
571
				</div>
27594 tejbeer 572
			</div>
27557 tejbeer 573
			#end
27599 tejbeer 574
 
575
		 #if(!$brandSales)	
27557 tejbeer 576
 
27556 tejbeer 577
			<div class="row">
578
				<div class="col-lg-6">
579
					<div class="row col-lg-4">
26063 amit.gupta 580
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>Reports</strong></h3>
26010 amit.gupta 581
					</div>
26063 amit.gupta 582
					<div class="row col-lg-12 info-box white-bg">
26214 amit.gupta 583
						<table class="table table-striped reports-table" style="display:none">
26063 amit.gupta 584
						    <tbody>
585
					    		<div class="list-group">
586
					            #foreach($reporticoProjectEntry in $reporticoProjectMap.entrySet())
587
						            #foreach($reporticoUrlInfo in $reporticoProjectEntry.getValue())
588
										  <a href="${rc.contextPath}/reports/${reporticoProjectEntry.getKey()}${reporticoUrlInfo.getUrl()}" class="list-group-item"
589
											  #if($reporticoUrlInfo.getParamsList())
590
											  data-paramslist="$vmUtils.htmlJson($reporticoUrlInfo.getParamsList())"
591
											  #end
592
										  >
593
										    <h4 class="list-group-item-heading">$reporticoUrlInfo.getTitle()</h4>
594
										    <p class="list-group-item-text">$reporticoUrlInfo.getDescription()</p>
595
										  </a>
596
 
597
					    			#end
598
				    			#end
599
								</div>
600
						    </tbody>
601
						</table>
602
 
603
					</div>
604
				</div>
605
				<div class="col-lg-6">
606
					<div class="row col-lg-12 info-box white-bg">
607
						<div class="col-lg-4">
608
						<h3 style="margin-top:-2px;margin-bottom:24px"><strong>My Messages</strong>
609
						</h3>
26010 amit.gupta 610
						</div>
26063 amit.gupta 611
						<div class="col-lg-4">
612
							<div class="btn-group message-filter"> 
613
								<button data-messagetype="notification" type="button" class="btn btn-default" aria-label="Notifications" title="Notifications">
614
								<span class="glyphicon glyphicon-bell" aria-hidden="true"></span></button> 
615
								<button data-messagetype="announcement" type="button" class="btn btn-default" aria-label="Announcements" title="Announcements">
616
								<span class="glyphicon glyphicon-bullhorn" aria-hidden="true"></span></button> 
617
								<button data-messagetype="scheme" type="button" class="btn btn-default" aria-label="SmartDukaan Schemes" title="SmartDukaan Schemes">
618
									<span class="glyphicon glyphicon-tags" aria-hidden="true"></span>
619
								</button>
26446 tejbeer 620
								<button data-messagetype="marketing" type="button" class="btn btn-default" aria-label="SmartDukaan Schemes" title="SmartDukaan Schemes">
621
								 <span class="glyphicon glyphicon-picture" aria-hidden="true"></span>
622
							</button>
26063 amit.gupta 623
							</div>
624
						</div>
625
				    	<div class="col-lg-12 row notification-container" style="max-height: 500px;overflow-y: scroll;">
626
						</div>
26010 amit.gupta 627
					</div>
628
				</div>
629
			</div>
27599 tejbeer 630
			#end
26010 amit.gupta 631
		</section>
632
    	<div class="text-center">
633
          <div class="credits">
634
          	<p>All rights reserved.&copy;2017, Smart Dukaan</p>
635
          </div>
636
		</div>
637
	</section>
638
 
639
	<script type="text/javascript">
640
		context="${rc.contextPath}";
641
		webApiScheme="$webApiScheme";
642
		webApiRoot="$webApiRoot";
643
		webApiHost="$webApiHost";
644
		webApiPort="$webApiPort";
26287 amit.gupta 645
		#if($authId)
26286 amit.gupta 646
			retailers = $retailers;
647
			warehouses = $warehouses;
26287 amit.gupta 648
	        authId = $authId;
26286 amit.gupta 649
		#end
26010 amit.gupta 650
	</script>
651
	#parse("include-scripts.vm")
652
 
653
  <script>
654
 
655
      //knob
656
      $(function() {
657
        /*$(".knob").knob({
658
          'draw' : function () { 
659
            $(this.i).val(this.cv + '%')
660
          }
661
        });*/
662
        $.fn.dataTable.moment( 'DD/MM/YYYY' );
663
        $.fn.dataTable.moment( 'DD/MM/YYYY hh:mm' );
664
        $('.currency').each(function(index, ele) {
665
			if (!isNaN(parseInt($(ele).html()))) {
666
				$(ele).html(numberToComma($(ele).html()));
667
			}
668
		});
669
      });
670
 
671
      $(function() {
672
    	 	var profile = localStorage.getItem('profile');
673
    	 	if (profile){
674
    			$("#photo").attr("src",JSON.parse(profile).image_url);
675
    			$("#fofo_name").text(JSON.parse(profile).name);
676
    	 	}
677
    	 	else{
678
    	 		$("#photo").attr("src","");
679
    			$("#fofo_name").text("Welcome, User");
680
    	 	}
681
    });
682
 
683
 
684
 
685
	$(function(){
686
		dateRangeCallback(moment(),moment());
687
		loaderDialogObj = bootbox.dialog({
688
		    message: '<div class="container text-center"><i class="fa fa-spin fa-spinner"></i>Loading...</div>',
27341 amit.gupta 689
		    show: false	
26010 amit.gupta 690
		});
691
	});
26062 tejbeer 692
 
26166 amit.gupta 693
	$(document).ready(function(){
26062 tejbeer 694
		 $('div.message-filter').on('click', 'button', function() {
695
			messageType = $(this).data("messagetype");
696
			if($(this).hasClass('btn-pressed')) {
697
				messageType="";
698
				$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
699
			} else {
700
				$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
701
				$(this).addClass('btn-pressed').removeClass('btn-default');
702
			}
703
			notifyTypeChange(messageType);
704
		});
705
		notifyTypeChange("");
26166 amit.gupta 706
	});
26062 tejbeer 707
 
26166 amit.gupta 708
	/*$(function(){
26062 tejbeer 709
		messageType = $(this).data("messagetype");
710
		if($(this).hasClass('btn-pressed')) {
711
			messageType="";
712
			$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
713
		} else {
714
			$('div.message-filter').find('button').removeClass('btn-pressed').addClass('btn-default');
715
			$(this).addClass('btn-pressed').removeClass('btn-default');
716
		}
717
		notifyTypeChange(messageType);
26166 amit.gupta 718
	});*/
26010 amit.gupta 719
</script>
26318 tejbeer 720
	<div id="report-modal" class="modal" role="dialog" data-backdrop="static" data-keyboard="false">
26063 amit.gupta 721
		<div class="modal-dialog">
722
 
723
		    <!-- Modal content-->
724
		    <div class="modal-content">
725
		      <div class="modal-header">
726
		        <button type="button" class="close" data-dismiss="modal">&times;</button>
727
		        <h4 class="modal-title"></h4>
728
		      </div>
729
		      <div class="modal-body">
730
			  </div>
731
			  <div class="modal-footer">
732
		        <button type="button" data-dismiss="modal" class="btn btn-default download-report">Download</button>
733
		      </div>
734
	    	</div>
735
		</div>
736
	</div>
26010 amit.gupta 737
 
738
  </body>
739
</html>