 <?php $__env->startSection('content'); ?>

<style>
.new-col {
background-color: #fff !important;
}
.new-col:hover{
color:#000 !important;
}
.pagination > .active > a, .pagination > .active > a:focus, .pagination > .active > a:hover, .pagination > .active > span, .pagination > .active > span:focus, .pagination > .active > span:hover
{
 background-color: #D2D6DE;
 border-color:#D2D6DE;
}
</style>

<div class="content-wrapper merchant-right-side">
	<!-- Content Header (Page header) -->
<!-- 	<section class="content-header"> -->
<!-- 		<h1> -->
<!-- 			Dashboard  -->
<!-- 		</h1> -->
<!-- 		<ol class="breadcrumb"> -->
<!-- 			<li><a href="#"><i class="fa fa-dashboard"></i> Home</a></li> -->
<!-- 			<li class="active">Dashboard</li> -->
<!-- 		</ol> -->
<!-- 	</section> -->
	
	

	<!-- Main content -->
	<section class="content">
	 <div class="row">
            
            <div class="col-md-12">
            	<div class="box no_border">
            		<h1 style="padding: 15px 0 15px; margin-bottom: 20px; text-align:center; margin-top: 0;">Welcome to Your Dashboard</h1>
           	</div>
            </div>
            
          </div>

	<div class="row">
<div class="col-xs-12">
			<div class="box box-primary box-solid" >
				    <div class="box-header with-border" >
                        <center><h3 class="box-title" style="font-weight: bold; ">Top 10 Visitors - upto 30th April,2018</h3></center>
                        <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="collapse" style="color: white"><i class="fa fa-minus"></i></button>
                  </div>
                    </div>
					<div class="box-body">
						<?php if(count($totalvisit) == 0): ?>
						<p class='notice'><?php echo trans('admin::users.pages.no_record_found'); ?></p>
						<?php else: ?>

						<table id="topVisit" class="table table-bordered table-striped">
							<thead>
								<tr>
									<th>Name</th>
									<th>Mobile Number</th>
									<th>Total Visits</th>
								
								</tr>
							</thead>
							<tbody>
								<?php foreach( $totalvisit as $tot ): ?>


								<tr>
									<td><?php echo $tot->name; ?></td>
									
									<td><a href="<?php echo url('merchant/appuser/views/'.$tot->user_id.'/'.$authUser->id); ?>"><?php echo $tot->mobile; ?></a></td>
									<td><?php echo $tot->twelve_month; ?></td>									
																		
								</tr>
								<?php endforeach; ?>
							</tbody>
						</table>
						<?php endif; ?>
					</div>
				</div>
			<br>
			<div class="box box-primary box-solid" >
				    <div class="box-header with-border" >
                        <center><h3 class="box-title" style="font-weight: bold; ">Top 10 Spenders - upto 30th April,2018</h3></center>
                        <div class="box-tools pull-right">
                    <button class="btn btn-box-tool" data-widget="collapse" style="color: white"><i class="fa fa-minus"></i></button>
                  </div>
                    </div>
					<div class="box-body">
						<?php if(count($totalbilling) == 0): ?>
						<p class='notice'><?php echo trans('admin::users.pages.no_record_found'); ?></p>
						<?php else: ?>

						<table id="topVisit1" class="table table-bordered table-striped">
							<thead>
								<tr>
									<th>Name</th>
									<th>Mobile Number</th>
									<th>Total Spend</th>
								
								</tr>
							</thead>
							<tbody>
								<?php foreach( $totalbilling as $tot1 ): ?>


								<tr>
									<td><?php echo $tot1->name; ?></td>
									<td><a href="<?php echo url('merchant/appuser/views/'.$tot1->user_id.'/'.$authUser->id); ?>"><?php echo $tot1->mobile; ?></a></td>
									<td><?php echo $tot1->twelve_month; ?></td>									
																		
								</tr>
								<?php endforeach; ?>
							</tbody>
						</table>
						<?php endif; ?>
					</div>
				</div>
<br>

</div>
	</div>

	


            
            <div class="col-md-4">
<!--             	<div class="box box-danger"> -->
<!--                     <div class="box-header with-border"> -->
<!--                       <h3 class="box-title">Top 5 Customers</h3> -->
                      
                    </div><!-- /.box-header -->
<!--                     <div class="box-body no-padding"> -->
<!--                       <ul class="users-list clearfix"> -->
<!--                         <li> -->
<!--                           <img src="<?php echo asset('assets/img/user1-128x128.jpg'); ?>" alt="User Image"> -->
<!--                           <a class="users-list-name" href="#" id="overlayTriggerfour">Alexander Pierce</a> -->
<!--                           <span class="users-list-date">Today</span> -->
<!--                         </li> -->
<!--                         <li> -->
<!--                           <img src="<?php echo asset('assets/img/user8-128x128.jpg'); ?>" alt="User Image"> -->
<!--                           <a class="users-list-name" href="#">Norman</a> -->
<!--                           <span class="users-list-date">Yesterday</span> -->
<!--                         </li> -->
<!--                         <li> -->
<!--                           <img src="<?php echo asset('assets/img/user7-128x128.jpg'); ?>" alt="User Image"> -->
<!--                           <a class="users-list-name" href="#">Jane</a> -->
<!--                           <span class="users-list-date">12 Jan</span> -->
<!--                         </li> -->
<!--                         <li> -->
<!--                           <img src="<?php echo asset('assets/img/user6-128x128.jpg'); ?>" alt="User Image"> -->
<!--                           <a class="users-list-name" href="#">John</a> -->
<!--                           <span class="users-list-date">12 Jan</span> -->
<!--                         </li> -->
<!--                         <li> -->
<!--                           <img src="<?php echo asset('assets/img/user2-160x160.jpg'); ?>" alt="User Image"> -->
<!--                           <a class="users-list-name" href="#">Alexander</a> -->
<!--                           <span class="users-list-date">13 Jan</span> -->
<!--                         </li> -->
                        
                      </ul><!-- /.users-list -->
                    </div><!-- /.box-body -->
                    
<!--                   </div> -->
          </div>
            
          </div>
		<!-- Main row -->
	
		<!-- /.row (main row) -->

	</section>
	<!-- /.content -->
</div>

    <?php $__env->startSection('scripts'); ?>
<script type="text/javascript">

$('#birthday').DataTable({

    "pageLength":5,
    "ordering": false,
    "lengthMenu": [5, 10, 25, 50, 75, 100 ]
});
$('#anniversary').DataTable({

    "pageLength":5,
    "ordering": false,
    "lengthMenu": [5, 10, 25, 50, 75, 100 ]
});
$('#topVisit').DataTable({

    "pageLength":10,
    "ordering": false,
    "lengthMenu": [5, 10, 25, 50, 75, 100 ]
});
$('#topVisit1').DataTable({

    "pageLength":10,
    "ordering": false,
    "lengthMenu": [5, 10, 25, 50, 75, 100 ]
});


</script>
<?php $__env->stopSection(); ?>

<!-- /.content-wrapper -->
<?php $__env->stopSection(); ?>


<?php echo $__env->make('layouts.merchant-backend-layout', array_except(get_defined_vars(), array('__data', '__path')))->render(); ?>