
<!--<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/public_relation_agents');?>">-->
<!--        <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"><?=$pr_agents?></h4>-->
<!--              <small>Pr Agents</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 class="col-xl-6">-->
<!--      <a href="<?php echo base_url('admin/register/ambulances');?>">-->
<!--        <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"><?=$ambulances?></h4>-->
<!--              <small>Ambulance Drivers</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-ambulance 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/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"><?=$doctors?></h4>-->
<!--              <small>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-user-md fs-3">-->
<!--                </span>-->
<!--            </span>-->
<!--          </div>-->
<!--        </div>-->
<!--      </div>-->
<!--      </a>-->
<!--    </div>-->
    
    <!--<div class="col-xl-6">-->
    <!--  <a href="<?php echo base_url('admin/register/pharmacy');?>">-->
    <!--    <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"><?=$pharmacy?></h4>-->
    <!--          <small>Wellness Products</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">-->
 
  <!-- Donut Chart -->
<!-- <div class="col-md-12 col-12 mt-4 mb-4 ">-->
<!-- <div class="row">-->
      
    <!--Ambulance Bookings-->
   
<!--     <div class="col-lg-6  mb-4">-->
<!--       <div class="card">-->
<!--         <div class="card-header d-flex align-items-center justify-content-between">-->
<!--           <div>-->
<!--             <h5 class="card-title mb-0">Ambulance Bookings</h5>-->
             <!--<small class="text-muted">Spending on various categories</small>-->
<!--           </div>-->
<!--         </div>-->
<!--         <div class="card-body">-->
<!--           <div id="charts" ></div>-->
<!--         </div>-->
<!--       </div>-->
<!--     </div>-->

<!--    <script>-->
<!--     var options = {-->
<!--         series: [<?=$ongoing_ambulance_bookings?>,<?=$completed_ambulance_bookings?>],-->
<!--         labels:['Ongoing Bookings','Completed Bookings'],-->

<!--           chart: {-->
<!--           type: 'donut',-->
<!--           events: {-->
<!--         }-->
<!--         },-->
<!--         responsive: [{-->
<!--           breakpoint: 480,-->
<!--           options: {-->
<!--             chart: {-->
<!--               width: 300-->
<!--             },-->
<!--             legend: {-->
<!--               position: 'bottom'-->
<!--             }-->
<!--           }-->
<!--         }]-->
<!--         };-->

<!--         var charts = new ApexCharts(document.querySelector("#charts"), options);-->
<!--         charts.render();-->
<!--    </script>-->
    
    <!--Ambulance Bookings-->
    
    <!--Admit Bookings-->
   
<!--     <div class="col-lg-6  mb-4">-->
<!--       <div class="card">-->
<!--         <div class="card-header d-flex align-items-center justify-content-between">-->
<!--           <div>-->
<!--             <h5 class="card-title mb-0">Admit Bookings</h5>-->
             <!--<small class="text-muted">Spending on various categories</small>-->
<!--           </div>-->
<!--         </div>-->
<!--         <div class="card-body">-->
<!--           <div id="admit_charts" ></div>-->
<!--         </div>-->
<!--       </div>-->
<!--     </div>-->

<!--     <script>-->
<!--     var options = {-->
<!--         series: [<?=$ongoing_admit_bookings?>,<?=$completed_admit_bookings?>],-->
<!--         labels:['Ongoing Bookings','Completed Bookings'],-->

<!--           chart: {-->
<!--           type: 'donut',-->
<!--           events: {-->
<!--         }-->
<!--         },-->
<!--         responsive: [{-->
<!--           breakpoint: 480,-->
<!--           options: {-->
<!--             chart: {-->
<!--               width: 300-->
<!--             },-->
<!--             legend: {-->
<!--               position: 'bottom'-->
<!--             }-->
<!--           }-->
<!--         }]-->
<!--         };-->

<!--         var admit_charts = new ApexCharts(document.querySelector("#admit_charts"), options);-->
<!--         admit_charts.render();-->
<!--</script>-->
    
    <!--Admit Bookings-->
    
    <!--Doctor Bookings-->
   
<!--     <div class="col-lg-6  mb-4">-->
<!--       <div class="card">-->
<!--         <div class="card-header d-flex align-items-center justify-content-between">-->
<!--           <div>-->
<!--             <h5 class="card-title mb-0">Doctor Bookings</h5>-->
             <!--<small class="text-muted">Spending on various categories</small>-->
<!--           </div>-->
<!--         </div>-->
<!--         <div class="card-body">-->
<!--           <div id="doctor_charts" ></div>-->
<!--         </div>-->
<!--       </div>-->
<!--     </div>-->

<!--     <script>-->
<!--     var options = {-->
<!--         series: [<?=$ongoing_doctor_bookings?>,<?=$completed_doctor_bookings?>],-->
<!--         labels:['Ongoing Bookings','Completed Bookings'],-->

<!--           chart: {-->
<!--           type: 'donut',-->
<!--           events: {-->
<!--         }-->
<!--         },-->
<!--         responsive: [{-->
<!--           breakpoint: 480,-->
<!--           options: {-->
<!--             chart: {-->
<!--               width: 300-->
<!--             },-->
<!--             legend: {-->
<!--               position: 'bottom'-->
<!--             }-->
<!--           }-->
<!--         }]-->
<!--         };-->

<!--         var doctor_charts = new ApexCharts(document.querySelector("#doctor_charts"), options);-->
<!--         doctor_charts.render();-->
<!--</script>-->
    
    <!--Doctor Bookings-->
    
    <!--Wellness products Bookings-->
   
<!--     <div class="col-lg-6  mb-4">-->
<!--       <div class="card">-->
<!--         <div class="card-header d-flex align-items-center justify-content-between">-->
<!--           <div>-->
<!--             <h5 class="card-title mb-0">Wellness products Bookings</h5>-->
             <!--<small class="text-muted">Spending on various categories</small>-->
<!--           </div>-->
<!--         </div>-->
<!--         <div class="card-body">-->
<!--           <div id="wellness_product_charts" ></div>-->
<!--         </div>-->
<!--       </div>-->
<!--     </div>-->

<!--     <script>-->
<!--     var options = {-->
<!--         series: [<?=$ongoing_wellness_product_bookings?>,<?=$completed_wellness_product_bookings?>],-->
<!--         labels:['Ongoing Bookings','Completed Bookings'],-->

<!--           chart: {-->
<!--           type: 'donut',-->
<!--           events: {-->
<!--         }-->
<!--         },-->
<!--         responsive: [{-->
<!--           breakpoint: 480,-->
<!--           options: {-->
<!--             chart: {-->
<!--               width: 300-->
<!--             },-->
<!--             legend: {-->
<!--               position: 'bottom'-->
<!--             }-->
<!--           }-->
<!--         }]-->
<!--         };-->

<!--         var wellness_product_charts = new ApexCharts(document.querySelector("#wellness_product_charts"), options);-->
<!--         wellness_product_charts.render();-->
<!--</script>-->
    
    <!--Wellness products Bookings-->
    
    <!--pharmacy prescription Bookings-->
   
<!--     <div class="col-lg-6  mb-4">-->
<!--       <div class="card">-->
<!--         <div class="card-header d-flex align-items-center justify-content-between">-->
<!--           <div>-->
<!--             <h5 class="card-title mb-0">Pharmacy Prescription Bookings</h5>-->
             <!--<small class="text-muted">Spending on various categories</small>-->
<!--           </div>-->
<!--         </div>-->
<!--         <div class="card-body">-->
<!--           <div id="pharmacy_prescription_charts" ></div>-->
<!--         </div>-->
<!--       </div>-->
<!--     </div>-->

<!--     <script>-->
<!--     var options = {-->
<!--         series: [<?=$ongoing_pharmacy_prescription_bookings?>,<?=$completed_pharmacy_prescription_bookings?>],-->
<!--         labels:['Ongoing Bookings','Completed Bookings'],-->

<!--           chart: {-->
<!--           type: 'donut',-->
<!--           events: {-->
<!--         }-->
<!--         },-->
<!--         responsive: [{-->
<!--           breakpoint: 480,-->
<!--           options: {-->
<!--             chart: {-->
<!--               width: 300-->
<!--             },-->
<!--             legend: {-->
<!--               position: 'bottom'-->
<!--             }-->
<!--           }-->
<!--         }]-->
<!--         };-->

<!--         var pharmacy_prescription_charts = new ApexCharts(document.querySelector("#pharmacy_prescription_charts"), options);-->
<!--         pharmacy_prescription_charts.render();-->
<!--</script>-->
    
    <!--pharmacy prescription Bookings-->
    
    <!--diagnostic Bookings-->
   
<!--     <div class="col-lg-6  mb-4">-->
<!--       <div class="card">-->
<!--         <div class="card-header d-flex align-items-center justify-content-between">-->
<!--           <div>-->
<!--             <h5 class="card-title mb-0">Diagnostic Bookings</h5>-->
             <!--<small class="text-muted">Spending on various categories</small>-->
<!--           </div>-->
<!--         </div>-->
<!--         <div class="card-body">-->
<!--           <div id="diagnostic_charts" ></div>-->
<!--         </div>-->
<!--       </div>-->
<!--     </div>-->

<!--     <script>-->
<!--     var options = {-->
<!--         series: [<?=$ongoing_diagnostic_bookings?>,<?=$completed_diagnostic_bookings?>],-->
<!--         labels:['Ongoing Bookings','Completed Bookings'],-->

<!--           chart: {-->
<!--           type: 'donut',-->
<!--           events: {-->
<!--         }-->
<!--         },-->
<!--         responsive: [{-->
<!--           breakpoint: 480,-->
<!--           options: {-->
<!--             chart: {-->
<!--               width: 300-->
<!--             },-->
<!--             legend: {-->
<!--               position: 'bottom'-->
<!--             }-->
<!--           }-->
<!--         }]-->
<!--         };-->

<!--         var diagnostic_charts = new ApexCharts(document.querySelector("#diagnostic_charts"), options);-->
<!--         diagnostic_charts.render();-->
<!--</script>-->
    
    <!--diagnostic Bookings-->
    
    <!--diagnostic prescription Bookings-->
   
<!--     <div class="col-lg-6  mb-4">-->
<!--       <div class="card">-->
<!--         <div class="card-header d-flex align-items-center justify-content-between">-->
<!--           <div>-->
<!--             <h5 class="card-title mb-0">Diagnostic Prescription Bookings</h5>-->
             <!--<small class="text-muted">Spending on various categories</small>-->
<!--           </div>-->
<!--         </div>-->
<!--         <div class="card-body">-->
<!--           <div id="diagnostic_prescription_charts" ></div>-->
<!--         </div>-->
<!--       </div>-->
<!--     </div>-->

<!--     <script>-->
<!--     var options = {-->
<!--         series: [<?=$ongoing_diagnostic_prescription_bookings?>,<?=$completed_diagnostic_prescription_bookings?>],-->
<!--         labels:['Ongoing Bookings','Completed Bookings'],-->

<!--           chart: {-->
<!--           type: 'donut',-->
<!--           events: {-->
<!--         }-->
<!--         },-->
<!--         responsive: [{-->
<!--           breakpoint: 480,-->
<!--           options: {-->
<!--             chart: {-->
<!--               width: 300-->
<!--             },-->
<!--             legend: {-->
<!--               position: 'bottom'-->
<!--             }-->
<!--           }-->
<!--         }]-->
<!--         };-->

<!--         var diagnostic_prescription_charts = new ApexCharts(document.querySelector("#diagnostic_prescription_charts"), options);-->
<!--         diagnostic_prescription_charts.render();-->
<!--</script>-->
    
    <!--diagnostic Bookings-->

<!--</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>-->












          