<?php $__env->startSection('content'); ?>
<?php
$query = 'Queries';
$complaint = 'Complaint';
?>
<body>

  <main id="main" class="main">
    <div class="pagetitle">
      <h1>Dashboard</h1>
      <nav>
        <ol class="breadcrumb">
          <li class="breadcrumb-item"><a href="<?php echo e(route('csd.home')); ?>">Home</a></li>
          <li class="breadcrumb-item active">Dashboard</li>
        </ol>
      </nav>
    </div><!-- End Page Title -->

<section class="section dashboard">
  <div class="row">
    <!-- Query Contacts -->
    <div class="col-lg-8">
      <div class="row">
        <h4>Query contacts</h4>
        <?php $__empty_1 = true; $__currentLoopData = $Queriescontacts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $Queriescontact): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
          <a class="dropdown-item" href="<?php echo e(url('/csd/sitelabels/' . $query . '/' . $Queriescontact->countryName)); ?>">
            <div class="col-xxl-4 col-md-6">
              <div class="card info-card sales-card">
                <div class="card-body">
                  <h5 class="card-title"><?php echo e($Queriescontact->countryName); ?> <span>| unread Notifications</span></h5>
                  <div class="d-flex align-items-center">
                    <div class="card-icon rounded-circle d-flex align-items-center justify-content-center">
                      <i class="ri-mail-unread-fill"></i>
                    </div>
                    <div class="ps-3">
                      <h6><?php echo e($Queriescontact->unread ?? 0); ?></h6>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </a>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
          <div class="col-xxl-4 col-md-6">
            <div class="card info-card sales-card">
              <div class="card-body">
                <h5 class="card-title">No Data <span>| unread Notifications</span></h5>
                <div class="d-flex align-items-center">
                  <div class="card-icon rounded-circle d-flex align-items-center justify-content-center">
                    <i class="ri-mail-unread-fill"></i>
                  </div>
                  <div class="ps-3">
                    <h6>0</h6>
                  </div>
                </div>
              </div>
            </div>
          </div>
        <?php endif; ?>
      </div>
    </div>
  </div>
</section>

<section class="section dashboard">
  <div class="row">
    <!-- Complaint Contacts -->
    <div class="col-lg-8">
      <div class="row">
        <h4>Complaint contacts</h4>
        <?php $__empty_1 = true; $__currentLoopData = $Complaintcontacts; $__env->addLoop($__currentLoopData); foreach($__currentLoopData as $Complaintcontact): $__env->incrementLoopIndices(); $loop = $__env->getLastLoop(); $__empty_1 = false; ?>
          <a class="dropdown-item" href="<?php echo e(url('/csd/sitelabels/' . $complaint . '/' . $Complaintcontact->countryName)); ?>">
            <div class="col-xxl-4 col-md-6">
              <div class="card info-card sales-card">
                <div class="card-body">
                  <h5 class="card-title"><?php echo e($Complaintcontact->countryName); ?> <span>| unread Notifications</span></h5>
                  <div class="d-flex align-items-center">
                    <div class="card-icon rounded-circle d-flex align-items-center justify-content-center">
                      <i class="ri-mail-unread-fill"></i>
                    </div>
                    <div class="ps-3">
                      <h6><?php echo e($Complaintcontact->unread ?? 0); ?></h6>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </a>
        <?php endforeach; $__env->popLoop(); $loop = $__env->getLastLoop(); if ($__empty_1): ?>
          <div class="col-xxl-4 col-md-6">
            <div class="card info-card sales-card">
              <div class="card-body">
                <h5 class="card-title">No Data <span>| unread Notifications</span></h5>
                <div class="d-flex align-items-center">
                  <div class="card-icon rounded-circle d-flex align-items-center justify-content-center">
                    <i class="ri-mail-unread-fill"></i>
                  </div>
                  <div class="ps-3">
                    <h6>0</h6>
                  </div>
                </div>
              </div>
            </div>
          </div>
        <?php endif; ?>
      </div>
    </div>
  </div>
</section>


</body>

</html>
<script>
    
    /******auto refresh HTML only if there has been no activity on a page******/

    var inactivityTimeout;
    var inactivityDuration = 600000; // 10 minutes in milliseconds

    function resetInactivityTimer() {
        clearTimeout(inactivityTimeout);
        inactivityTimeout = setTimeout(refreshPage, inactivityDuration);
    }

    function refreshPage() {
        location.reload();
    }

    // Event listeners to reset the inactivity timer
    document.addEventListener('mousemove', resetInactivityTimer);
    document.addEventListener('keydown', resetInactivityTimer);
    document.addEventListener('scroll', resetInactivityTimer);

    // Initial setup of the inactivity timer
    resetInactivityTimer();
    
    
</script>

<style type="text/css">
  .bg-dark-corporate{background-color: #214158 !important;}
</style>





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

<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.7.1/jquery.min.js" integrity="sha512-v2CJ7UaYy4JwqLDIrZUI/4hqeoQieOmAZNXBeQyjo21dadnwR+8ZaIJVT8EE2iyI61OV8e6M8PP2/4hpQINQ/g==" crossorigin="anonymous" referrerpolicy="no-referrer"></script>


<?php echo $__env->make('layouts.csd.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/rightflorist/public_html/ofadmin.rightflorist.org/resources/views/csd/home.blade.php ENDPATH**/ ?>