<?php $__env->startSection('content'); ?>
<div id="vue-admin-user">
<div class="main-panel">
    <div class="content">
            <div class="panel-header">
                <div class="page-inner py-5 text-white"  style="background:#313232">
                    <div class="d-flex align-items-left align-items-md-center flex-column flex-md-row">
                        <div><div class="page-header">
                            <h4 class="page-title text-white">Dashboard</h4>
                            <ul class="breadcrumbs">
                                    <li class="nav-home">
                                        <a class="text-white" href="#">
                                            <i class="flaticon-home"></i>
                                        </a>
                                    </li>
                                </ul>
                        </div>
                        </div>
                        
                    </div>
                </div>
            <div class="page-category">
                <div class="page-inner mt--5">
                <div class="row mt--2">
				<div class="col-md-4">
					<div class="card full-height">
						<div class="card-body">
							<div class="card-title">Account Statistics</div>
							<div class="card-category">Account Current Status</div>
							<div class="d-flex flex-wrap justify-content-around pb-2 pt-4">
								<ol>
									<li>Groups: <strong><?php echo e(count($groups)); ?></strong></li>
									<li>Contacts: <strong><?php echo e(count($contacts)); ?></strong></li>
									</ol>
							</div>
						</div>
					</div>
				</div>
				
			 
				<div class="col-md-4">
					<div class="card">
						<div class="card-header">
							<div class="card-head-row">
								<div class="card-title"> Warranty Check</div>
							</div>
						</div>
						<div class="card-body">
						<table class="table table-hover">
							<thead>
								<tr>
								<th><a href="<?php echo e(route('mobisurvey.sumsung')); ?>">All</a></th>
								<th><a href="<?php echo e(route('mobisurvey.validimes')); ?>">Valid</a></th>
								<th><a href="<?php echo e(route('mobisurvey.invalidimes')); ?>">InValid</a></th>
								</tr>
							</thead>
							<tbody>
							
								<tr>
								<td> <a href="<?php echo e(route('mobisurvey.sumsung')); ?>"> <h1> <span class="badge badge-primary"><?php echo e($recent_warrant_checks_all); ?> </span></h1></a></td>
									<td> <a href="<?php echo e(route('mobisurvey.validimes')); ?>"> <h1> <span class="badge badge-success"><?php echo e($recent_warrant_checks); ?> </span></h1></a></td>
									<td><a href="<?php echo e(route('mobisurvey.invalidimes')); ?>"><h1><span class="badge badge-danger"><?php echo e($recent_warrant_checks_invalid); ?></span></h1> </a></td>
								</tr>
							
								
															
							</tbody>
							</table>
						</div>
					</div>
				</div>

				<div class="col-md-4">
					<div class="card">
						<div class="card-header">
							<div class="card-head-row">
								<div class="card-title">Recent Account Topups</div>
							</div>
						</div>
						<div class="card-body">
						<table class="table table-hover">
							<thead>
								<tr>
									<th>Date</th>
									<th>Amount</th>
								</tr>
							</thead>
							<tbody>
							<?php $__currentLoopData = $topups_recent; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $topup): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
								<tr>
									<td><?php echo e($topup->topup_time); ?> </td>
									<td>Ksh.<b><?php echo e($topup->credit_amount); ?></b> </td>
								</tr>
							   <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
							</tbody>
							</table>
						</div>
					</div>
				</div>
				


				<div class="row mt--2">
                            <div class="col-md-12">
                                <div class="card full-height">
                                    <div class="card-body">
                                        <div class="card-body">Warranty Checks statistics
                                      <?php echo $__env->make('warrantviews.partials.filter-warrantysummary', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>

                                            <div class="text-right mb-3 border-bottom pb-1">
                                                <div class="card-title pull-left"></div>

                                                <a class="btn btn-success btn-border btn-round btn-sm" data-toggle="collapse" data-target="#filter-sentsms">
                                                    <i class="fas fa-filter"></i> Filter
                                                </a>
                                            </div>
                                        </div>
                                        <div class="row">
                                            <div class="col-md-12">
                                                <div class="card-category">Total number of Warranty Checks</div>
                               
                                            </div>
                                            <div class="col-md-12">
                                                <div class="card-category"></div>

                                            
                                                <div class="row py-6">
                                                    <div class="col-md-4 d-flex flex-column justify-content-around">
                                                        <div>
                                                     
                                                            <h6 class="fw-bold">Total Checks No. <?php echo e($warrantycountall); ?></h6>
                                                     
                                                            <h6 class="fw-bold"> Valid Checks No. <?php echo e($warrantycountSuccess); ?></h6>
                                             
                                                            <h6 class="fw-bold"> Invalid Checks No. <?php echo e($warrantycountfailed); ?></h6>
														
                                                        </div>
                                                    </div>
                                                    <div class="col-md-8">
                                                        <div style="width:100%;">

                                                            <div id="chart">
                                                            <?php echo $chart1->container(); ?>

                                                            </div>
                                              
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>	
                        </div>




			</div>
		</div>
            </div>
        </div>
    </div>
</div>
    <?php $__env->stopSection(); ?>
<?php echo $__env->make('warrantviews.layouts.user', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/dashmobisky/public_html/Accounts/resources/views/warrantviews/user-dashboard.blade.php ENDPATH**/ ?>