<?php $__env->startSection('content'); ?>
<script src="https://cdnjs.cloudflare.com/ajax/libs/Chart.js/2.7.1/Chart.min.js" charset="utf-8"></script>
<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-12">
					<div class="card full-height">
						<div class="card-body">
							<div class="card-title">Overall statistics
						
							</div>
							<div class="card-category">Total number of Messages Sent</div>
							<div class="d-flex flex-wrap justify-content-around pb-2 pt-4">
								<div class="px-2 pb-2 pb-md-0 text-center">
								<input type="text" class="knob" value="<?php echo e($smscount); ?>" data-skin="tron" data-thickness="0.2" data-width="90" data-height="90" data-fgColor="#ff9e27" data-readonly="true">
									<h6 class="fw-bold mt-3 mb-0">SMS</h6>
								</div>
								<div class="px-2 pb-2 pb-md-0 text-center">
								<input type="text" class="knob" value="0" data-skin="tron" data-thickness="0.2" data-width="90" data-height="90" data-fgColor="#2bb930" data-readonly="true">
									<h6 class="fw-bold mt-3 mb-0">Short Code Messages</h6>
								</div>
								<div class="px-2 pb-2 pb-md-0 text-center">
								<input type="text" class="knob" value="<?php echo e($ivrcountnow); ?>" data-skin="tron" data-thickness="0.2" data-width="90" data-height="90" data-fgColor="#f25961" data-readonly="true">
									<h6 class="fw-bold mt-3 mb-0">IVR Messages</h6>
								</div>
							</div>
						</div>
					</div>
				</div>
				
			</div>
			<div class="row">
				<div class="col-md-12">
					<div class="card">
						<div class="card-header">
							<div class="card-head-row">
								<div class="card-title">
						
							 
							             <div class="card-body">Messages 
								
								</div>
							
							</div>
						</div>
						<div class="card-body">
							<div class="chart-container" style="min-height: 5px">
						 
                                        <!-- check if exist -->
                                        <?php if(!$trans->count()): ?>
                                        <?php echo $__env->make('layouts.nodata', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
                                        <?php else: ?>
                                        
                                        <div class="table-responsive">
                                        <table  id="table" class="display table table-striped table-hover">
                                            <thead>
                                            <tr>
                                                <th>Destination</th>
                                           
                                                <th>SMS</th>
                                                <th>Source</th>
                                                <th class="text-center">DoneBy</th>
                                                </tr>
                                            </thead>
                                            <tfoot>
                                            <tr>
                                                <th>Destination</th>
                                           
                                                <th>SMS</th>
                                                <th>Source</th>
                                                <th class="text-center">DoneBy</th>
                                                </tr>
                                            </tfoot>
                                            <tbody>
                                            <?php $__currentLoopData = $trans; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $group): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); ?>
                                            <tr>
                                            <td><?php echo e($group->description); ?></td>
                                         
                                            <td><?php echo e($group->sms); ?></td>
                                           <td><?php echo e($group->source); ?></td>
                                            <td><?php echo e($group->sms_size); ?> </td>
                                            </tr>
                                            <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); ?>
                                            </tbody>
                                        </table>
                                         
                                        <?php endif; ?>
                                    </div>
                                       
                                    </div>
							</div>
						</div>
					</div>
				</div>
			<!--	<div class="col-md-4">
					<div class="card card-primary">
						<div class="card-header">
							<div class="card-title">Daily Sales</div>
							<div class="card-category"><?php echo e(date('M - d')); ?></div>
						</div>
						<div class="card-body pb-0">
							<div class="mb-4 mt-2">
								<h1>
								<span class="op-8">Income(Kes):</span> 
								<h1>
								<h2>
								
								</h2>
								<h1>
								<span class="op-8">Spend(Kes):</span>
								</h1>
								<h2>
								
								 </h2>
							</div>
							<div class="pull-in">
								<canvas id="dailySalesChart"></canvas>
							</div>
						</div>
					</div>
				</div>-->
			</div>
		</div>
    	</div>
	</div>
  </div>
</div>

<script src='https://code.jquery.com/jquery-3.2.0.min.js'></script>
<script src='https://unpkg.com/popper.js@1.11.1'></script>
<script src='https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js'></script>

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