<?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-6">
					<div class="card full-height">
						<div class="card-body">
							<div class="card-title">Overall statistics
						
							</div>
							<div class="card-category">Total number of customers in Hundreds</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($customers/100); ?>" 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">Customers</h6>
								</div>
								<div class="px-2 pb-2 pb-md-0 text-center">
								<input type="text" class="knob" value="<?php echo e($a_customers/100); ?>" 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">Active</h6>
								</div>
								<div class="px-2 pb-2 pb-md-0 text-center">
								<input type="text" class="knob" value="<?php echo e($i_customers/100); ?>" 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">Inactive</h6>
								</div>
							</div>
						</div>
					</div>
				</div>
				<div class="col-md-6">
					<div class="card full-height">
						<div class="card-body">
							<div class="card-title">Total income & spend statistics</div>
							<div class="row py-3">
								<div class="col-md-4 d-flex flex-column justify-content-around">
									<div>
										<h6 class="fw-bold text-uppercase text-success op-8">Total Income</h6>
										<h3 class="fw-bold">KES. <?php echo e($income); ?></h3>
									</div>
									<div>
										<h6 class="fw-bold text-uppercase text-danger op-8">Total Spend</h6>
										<h3 class="fw-bold">KES. <?php echo e($expenditure); ?></h3>
									</div>
								</div>
								<div class="col-md-8">
								<div style="width:80%;">
								<div id="chart">
									<?php echo $chart->container(); ?>

									</div>
								</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
			<div class="row">
				<div class="col-md-8">
					<div class="card">
						<div class="card-header">
							<div class="card-head-row">
								<div class="card-title">User Statistics</div>
								<div class="card-tools">
									<a href="#" class="btn btn-info btn-border btn-round btn-sm mr-2">
										<span class="btn-label">
											<i class="fa fa-pencil"></i>
										</span>
										Export
									</a>
									<a href="#" class="btn btn-info btn-border btn-round btn-sm">
										<span class="btn-label">
											<i class="fa fa-print"></i>
										</span>
										Print
									</a>
								</div>
							</div>
						</div>
						<div class="card-body">
							<div class="chart-container" style="min-height: 375px">
								<adminstats_component/>
							</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>
									<?php echo e($today_income); ?>

								</h2>
								<h1>
								<span class="op-8">Spend(Kes):</span>
								</h1>
								<h2>
									<?php echo e($today_expenditure); ?>

								 </h2>
							</div>
							<div class="pull-in">
								<canvas id="dailySalesChart"></canvas>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
    	</div>
	</div>
  </div>
</div>

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