
<div class="content-wrapper">
          <!-- Content -->

<div class="container-xxl flex-grow-1 container-p-y">
    <?php if ($this->session->userdata('login_type') == 'admin'): ?>
<h4 class="py-0 mb-0"><span class="text-muted fw-light"></span></h4>

<div class="row">
 <div class="row mb-4 g-3">
    <div class="col-xl-6">
      <a href="<?php echo base_url('admin/register/hospitals');?>">
        <div class="card">
        <div class="card-body">
          <div class="d-flex align-items-center justify-content-between">
            <div class="content-left">
              <h4 class="mb-0"><?=$hospitals?></h4>
              <small>Hospitals</small>
            </div>
            <span class="badge bg-label-primary rounded-circle p-2">
              <!--<i class="ti ti-currency-dollar ti-md"></i>-->
              <span class="fa fa-h-square fs-3">
                </span>
            </span>
          </div>
        </div>
      </div>
      </a>
    </div>
    
    <div class="col-xl-6">
      <a href="<?php echo base_url('admin/register/pharmacies');?>">
        <div class="card">
        <div class="card-body">
          <div class="d-flex align-items-center justify-content-between">
            <div class="content-left">
              <h4 class="mb-0"><?=$pharmacies?></h4>
              <small>Pharmacies</small>
            </div>
            <span class="badge bg-label-primary rounded-circle p-2">
              <!--<i class="ti ti-currency-dollar ti-md"></i>-->
              <span class="fa fa-medkit fs-3">
                </span>
            </span>
          </div>
        </div>
      </div>
      </a>
    </div>

  </div>
</div>

<div class="row">
 <div class="row mb-4 g-3">
    <div class="col-xl-6">
      <a href="<?php echo base_url('admin/register/main_diagnostics');?>">
        <div class="card">
        <div class="card-body">
          <div class="d-flex align-items-center justify-content-between">
            <div class="content-left">
              <h4 class="mb-0"><?=$diagnostics?></h4>
              <small>Diagnostics</small>
            </div>
            <span class="badge bg-label-primary rounded-circle p-2">
              <!--<i class="ti ti-currency-dollar ti-md"></i>-->
              <span class="fa fa-building fs-3">
                </span>
            </span>
          </div>
        </div>
      </div>
      </a>
    </div>
    
    <div class="col-xl-6">
      <a href="<?php echo base_url('admin/register/lab_tests');?>">
        <div class="card">
        <div class="card-body">
          <div class="d-flex align-items-center justify-content-between">
            <div class="content-left">
              <h4 class="mb-0"><?=$lab_tests?></h4>
              <small>Lab Tests</small>
            </div>
            <span class="badge bg-label-primary rounded-circle p-2">
              <!--<i class="ti ti-currency-dollar ti-md"></i>-->
              <span class="fa fa-tint fs-3">
                </span>
            </span>
          </div>
        </div>
      </div>
      </a>
    </div>

  </div>
</div>

<div class="row">
 <div class="row mb-4 g-3">
     
     <div class="col-xl-6">
      <a href="<?php echo base_url('admin/register/online_doctors');?>">
        <div class="card">
        <div class="card-body">
          <div class="d-flex align-items-center justify-content-between">
            <div class="content-left">
              <h4 class="mb-0"><?=$online_doctors?></h4>
              <small>Online Doctors</small>
            </div>
            <span class="badge bg-label-primary rounded-circle p-2">
              <!--<i class="ti ti-currency-dollar ti-md"></i>-->
              <span class="fa fa-stethoscope fs-3">
                </span>
            </span>
          </div>
        </div>
      </div>
      </a>
    </div>

    <div class="col-xl-6">
      <a href="<?php echo base_url('admin/register/users');?>">
        <div class="card">
        <div class="card-body">
          <div class="d-flex align-items-center justify-content-between">
            <div class="content-left">
              <h4 class="mb-0"><?=$users?></h4>
              <small>Users</small>
            </div>
            <span class="badge bg-label-primary rounded-circle p-2">
              <!--<i class="ti ti-currency-dollar ti-md"></i>-->
              <span class="fa fa-users fs-3">
                </span>
            </span>
          </div>
        </div>
      </div>
      </a>
    </div>

  </div>
</div>



</div>

<!--<?php elseif ($this->session->userdata('login_type') == 'sub_admin'): ?>-->

<!-- Sub Admin View -->
<!--      <div class="d-flex flex-column align-items-center justify-content-center" style="height: 75vh;">-->
<!--        <img src="<?= base_url('assets/admin/admin_logo.png') ?>" alt="Logo" style="height: 100px; margin-bottom: 20px;">-->
<!--        <h2 class="text-primary">Welcome to Hospital Admin Panel</h2>-->
<!--        <p class="text-muted">You are logged in as <strong>Sub Admin</strong></p>-->
<!--        <div class="mt-3">-->
          <!--<a href="<?= base_url('admin/register') ?>" class="btn btn-primary">-->
          <!--  Go to Assigned Modules-->
          <!--</a>-->
<!--        </div>-->
<!--      </div>-->

<!--    <?php else: ?>-->

      <!-- Fallback if no login_type -->
<!--      <div class="alert alert-danger">Unauthorized access</div>-->

<!--    <?php endif; ?>-->
<!--  </div>-->












          