<?php $__env->startSection('title', 'Dashboard'); ?>

<?php $__env->startSection('vendor-style'); ?>
<link rel="stylesheet" href="<?php echo e(asset('assets/vendor/libs/apex-charts/apex-charts.css')); ?>" />
<link rel="stylesheet" href="<?php echo e(asset('assets/vendor/libs/swiper/swiper.css')); ?>" />

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

<?php $__env->startSection('page-style'); ?>
<!-- Page -->
<link rel="stylesheet" href="<?php echo e(asset('assets/vendor/css/pages/cards-advance.css')); ?>">
<?php $__env->stopSection(); ?>

<?php $__env->startSection('vendor-script'); ?>
<script src="<?php echo e(asset('assets/vendor/libs/apex-charts/apexcharts.js')); ?>"></script>
<script src="<?php echo e(asset('assets/vendor/libs/swiper/swiper.js')); ?>"></script>
<?php $__env->stopSection(); ?>

<?php $__env->startSection('page-script'); ?>
<script src="<?php echo e(asset('assets/js/dashboards-analytics.js')); ?>"></script>
<?php $__env->stopSection(); ?>

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

<div class="row">
  <!-- Website Analytics -->
  <div class="col-lg-6 mb-4">
    <div class="card">
      <div class="card-header">
        <div class="d-flex justify-content-between">
          <h4 class="d-block mb-1">Statistics</h4>
         
        </div>
        
      </div>
      <div class="card-body">
        <div class="row">

          <div class="col-6">
            <div class="d-flex gap-2 align-items-center mb-4">              
              <span class="badge bg-label-primary p-1 rounded"><i class="ti ti-file-stack ti-lg"></i></span>
              <p class="mb-0"><a href="<?php echo e(url('tickets')); ?>" class="text-dark">Tickets ( <?php echo e($tickets->count()); ?> )</a></p>            
            </div>            
         </div>

          <div class="col-6">
            <div class="d-flex gap-2 align-items-center mb-4">              
              <span class="badge bg-label-warning p-1 rounded"><i class="ti ti-plane ti-lg"></i></span>
              <p class="mb-0"><a href="<?php echo e(url('services')); ?>" class="text-dark">Services ( <?php echo e($services->count()); ?> )</a></p>            
            </div>            
         </div>

         <div class="col-6">
          <div class="d-flex gap-2 align-items-center mb-4">
            <span class="badge bg-label-warning p-1 rounded"><i class="ti ti-social ti-lg"></i></span>
            <p class="mb-0"><a href="<?php echo e(url('sources')); ?>" class="text-dark">Lead Sources ( <?php echo e($sources->count()); ?> )</a></p>
          </div>            
       </div>

       <div class="col-6">
        <div class="d-flex gap-2 align-items-center mb-4">
          <span class="badge bg-label-success p-1 rounded"><i class="ti ti-users-group ti-lg"></i></span>
          <p class="mb-0"><a href="<?php echo e(url('users')); ?>" class="text-dark">Users ( <?php echo e($users->count()-2); ?> )</a></p>
        </div>            
     </div>

     <div class="col-6">
      <div class="d-flex gap-2 align-items-center mb-4">
        <span class="badge bg-label-info p-1 rounded"><i class="ti ti ti-map-2 ti-lg"></i></span>
        <p class="mb-0"><a href="<?php echo e(url('cities')); ?>" class="text-dark">Cities ( <?php echo e($cities->count()); ?> )</a></p>
      </div>            
   </div>

   <div class="col-6">
    <div class="d-flex gap-2 align-items-center mb-4">
      <span class="badge bg-label-info p-1 rounded"><i class="ti ti-route ti-lg"></i></span>
      <p class="mb-0"><a href="<?php echo e(url('zones')); ?>" class="text-dark">Zones ( <?php echo e($zone->count()); ?> )</a></p>
    </div>            
 </div>
          
          
        </div>
       
      </div>
    </div>
  </div>


 
  <!--/ Website Analytics -->


  <!-- Earning Reports -->

  <!--/ Earning Reports -->

  <!-- Support Tracker -->
  <div class="col-md-6 mb-4">
    <div class="card h-100">
      <div class="card-header d-flex justify-content-between pb-0">
        <div class="card-title mb-0">
          <h5 class="mb-0">Support Tracker</h5>
          <small class="text-muted">Last 7 Days</small>
        </div>
        <div class="dropdown">
          <button class="btn p-0" type="button" id="supportTrackerMenu" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
            <i class="ti ti-dots-vertical ti-sm text-muted"></i>
          </button>
          <div class="dropdown-menu dropdown-menu-end" aria-labelledby="supportTrackerMenu">
            <a class="dropdown-item" href="javascript:void(0);">View More</a>
            <a class="dropdown-item" href="javascript:void(0);">Delete</a>
          </div>
        </div>
      </div>
      <div class="card-body">
        <div class="row">
          <div class="col-12 col-sm-4 col-md-12 col-lg-4">
            <div class="mt-lg-4 mt-lg-2 mb-lg-4 mb-2 pt-1">
              <h1 class="mb-0"><?php echo e($tickets->count()); ?></h1>
              <p class="mb-0">Total Tickets</p>
            </div>
            <ul class="p-0 m-0">
              <li class="d-flex gap-3 align-items-center mb-lg-3 pt-2 pb-1">
                <div class="badge rounded bg-label-primary p-1"><i class="ti ti-ticket ti-sm"></i></div>
                <div>
                  <h6 class="mb-0 text-nowrap">New Tickets</h6>
                  <small class="text-muted"><?php echo e($tickets->count()); ?></small>
                </div>
              </li>
              <li class="d-flex gap-3 align-items-center mb-lg-3 pb-1">
                <div class="badge rounded bg-label-info p-1"><i class="ti ti-circle-check ti-sm"></i></div>
                <div>
                  <h6 class="mb-0 text-nowrap">Open Tickets</h6>
                  <small class="text-muted"><?php echo e($tickets->count()); ?></small>
                </div>
              </li>
              <li class="d-flex gap-3 align-items-center pb-1">
                <div class="badge rounded bg-label-warning p-1"><i class="ti ti-clock ti-sm"></i></div>
                <div>
                  <h6 class="mb-0 text-nowrap">Response Time</h6>
                  <small class="text-muted">1 Day</small>
                </div>
              </li>
            </ul>
          </div>
          <div class="col-12 col-sm-8 col-md-12 col-lg-8">
            <div id="supportTracker"></div>
          </div>
        </div>
      </div>
    </div>
  </div>
  <!--/ Support Tracker -->

</div>
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH D:\projects\maksoft\saadahsan\resources\views/content/dashboard.blade.php ENDPATH**/ ?>