
<link rel="stylesheet" type="text/css" href="<?=base_url('assets/css/header.css');?>">

<!-- ======= Header ======= -->
<header id="header" class="d-flex align-items-center" style="border-top: 1px solid white;">
  <div class="container d-flex justify-content-center" id="navmobile">


    <!-- Mobile View Cart Icons -->

    <?php

    if (@$this->uri->segment(1) == 'event' || @$this->uri->segment(1) == 'all-upcoming-events') {

      $cartList = $this->session->userdata('events_cart');
      $cart_count = isset($cartList['ids']) && $cartList['ids'] ? count($cartList['ids']) : 0;
      $cart_count = $cart_count != '' ? $cart_count : 0; ?>

      <div style="float:left;" class="mobile-nav-cart">
        <span style="padding-right:6px!important;">
          <a href="javascript:void(0)" onclick="ViewCartMobile('Events')"> <i class="fa fa-shopping-cart fa-2x" style="color:#fff;"></i>
            <span class="cart-count text-white" style="font-size: 20px!important;"><?= $cart_count; ?></span>
          </a>
        </span>
      </div>

    <?php } else if (@$this->uri->segment(1) == 'donations') {

      $cartList = $this->session->userdata('donations_cart');
      $cart_count = isset($cartList['ids']) && $cartList['ids'] ? count($cartList['ids']) : 0;
      $cart_count = $cart_count != '' ? $cart_count : 0; ?>

      <div style="float:left;" class="mobile-nav-cart">
        <span style="padding-right:6px!important;">
          <a href="javascript:void(0)" onclick="ViewCartMobile('Donations')"> <i class="fa fa-shopping-cart fa-2x" style="color:#fff;"></i>
            <span class="cart-count text-white" style="font-size: 20px!important;"><?= $cart_count; ?></span>
          </a>
        </span>
      </div>

    <?php } else if (@$this->uri->segment(1) == 'services') {

      $cartList = $this->session->userdata('service_cart');
      $cart_count = isset($cartList['ids']) && $cartList['ids'] ? count($cartList['ids']) : 0;
      $cart_count = $cart_count != '' ? $cart_count : 0;  ?>

      <div style="float:left;" class="mobile-nav-cart">
        <span style="padding-right:6px!important;">
          <a href="javascript:void(0)" onclick="ViewCartMobile('Services')"> <i class="fa fa-shopping-cart fa-2x" style="color:#fff;"></i>
            <span class="cart-count text-white" style="font-size: 20px!important;"><?= $cart_count; ?></span>
          </a>
        </span>
      </div>

    <?php } else if (@$this->uri->segment(1) == 'facilities') {

      $cartList = $this->session->userdata('facilities_cart');
      $cart_count = isset($cartList['ids']) && $cartList['ids'] ? count($cartList['ids']) : 0;
      $cart_count = $cart_count != '' ? $cart_count : 0;  ?>

      <div style="float:left;" class="mobile-nav-cart">
        <span style="padding-right:6px!important;">
          <a href="javascript:void(0)" onclick="ViewCartMobile('Facilities')"> <i class="fa fa-shopping-cart fa-2x" style="color:#fff;"></i>
            <span class="cart-count text-white" style="font-size: 20px!important;"><?= $cart_count; ?></span>
          </a>
        </span>
      </div>

    <?php } ?>

    <!-- Mobile View Card Icons -->

    <nav id="navbar" class="navbar">
      <ul>
        <li><a class="navlink  <?php if ($page == 'Home') { ?> active<?php } ?>" href="<?= base_url() ?>">HOME</a></li>


        <li><a class="navlink <?php if ($page == 'Services' || $page == 'Services Cart') { ?> active  <?php } ?>" href="<?= base_url('services') ?>"> SERVICES</a></li>



        <!-- <li><a class="navlink <?php if ($page == 'Gallery') { ?> active  <?php } ?>" href="<?= base_url('gallery') ?>">GALLERY</a></li> -->


        <li><a class="navlink <?php if ($page == 'Events') { ?> active  <?php } ?>" href="<?= base_url('all-upcoming-events') ?>">EVENTS</a></li>

        <li><a class="navlink <?php if ($page == 'Sponsor Now') { ?> active  <?php } ?>" href="<?= base_url('sponsor-now') ?>">SPONSORSHIPS</a></li>

        <li><a class="navlink <?php if ($page == 'Calendar') { ?> active  <?php } ?>" href="<?= base_url('calendar') ?>">CALENDAR</a></li>

        <li><a class="navlink <?php if ($page == 'Facilities') { ?> active  <?php } ?>" href="<?= base_url('facilities') ?>">FACILITIES</a></li>

        <li class="dropdown">
          <a class="<?php if ($page == 'DONATIONS' || $page == 'RECURRING-DONATIONS' || $page == 'PLEDGE FORM') { ?>active<?php } ?>" href="javascript:void()" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">DONATIONS <i class="fa fa-caret-down"></i></a>

          <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton">

            <li><a class="text-uppercase dropdown-item navlink <?php if ($page == 'DONATIONS') { ?> active  <?php } ?>" href="<?= base_url('donations') ?>">GENERAL DONATIONS</a></li>

            <li><a class="text-uppercase dropdown-item navlink <?php if ($page == 'RECURRING-DONATIONS') { ?> active  <?php } ?>" href="<?= base_url('recurring-sponsor-now/recurring-donations') ?>">RECURRING DONATIONS</a></li>

            
            <!-- <li><a class="text-uppercase dropdown-item navlink <?php if ($page == 'PLEDGE FORM') { ?> active  <?php } ?>" href="<?= base_url('pledge-form') ?>">PLEDGE FORM</a></li> -->


          </ul>
        </li>


        

    


        <li class="dropdown">
          <a class="navlink2 <?php if ($page == 'ABOUT-TEMPLE' || $page == 'ABOUT-COMMITTEE' || $page == 'ABOUT-DEITY' || $page == 'VIDYALAYA' || $page == 'ABOUT-PRIEST' || $page == 'TEMPLE-HISTORY' || $page == 'Bhajans' || $page == 'PRIVACY-STATEMENT' || $page == 'TERMS-AND CONDITIONS') { ?>active<?php } ?>" href="javascript:void()" id="dropdownMenuButton" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"> ABOUT TEMPLE <i class="fa fa-caret-down"></i></a>
          <ul class="dropdown-menu" aria-labelledby="dropdownMenuButton">
 
            <li><a href="<?= base_url('about-temple') ?>" class="text-uppercase dropdown-item navlink <?php if ($page == 'ABOUT-TEMPLE') { ?>active<?php } ?>">ABOUT TEMPLE</a></li>
            <li><a href="<?= base_url('temple-history') ?>" class="text-uppercase dropdown-item navlink <?php if ($page == 'TEMPLE-HISTORY') { ?>active<?php } ?>">TEMPLE HISTORY</a></li>
            <li><a href="<?= base_url('about-deities') ?>" class="text-uppercase dropdown-item navlink <?php if ($page == 'ABOUT-DEITY') { ?>active<?php } ?>">ABOUT DEITIES</a></li>
            <li><a href="<?= base_url('about-priest') ?>" class="text-uppercase dropdown-item navlink <?php if ($page == 'ABOUT-PRIEST') { ?>active<?php } ?>">ABOUT PRIESTS</a></li>
            <li><a href="<?= base_url('about-committee') ?>" class="text-uppercase dropdown-item navlink <?php if ($page == 'ABOUT-COMMITTEE') { ?>active<?php } ?>">ABOUT COMMITTEE</a></li>
         

            <li><a class="text-uppercase dropdown-item navlink <?php if ($page == 'Bhajans') { ?> active  <?php } ?>" href="<?= base_url('bhajans') ?>">BHAJANS</a></li>

            <li><a class="text-uppercase dropdown-item navlink <?php if ($page == 'VIDYALAYA') { ?> active  <?php } ?>" href="<?= base_url('vidyalaya') ?>">VIDYALAYA</a></li>



            <li><a class="text-uppercase dropdown-item navlink <?php if ($page == 'PRIVACY-STATEMENT') { ?> active  <?php } ?>" href="<?= base_url('privacy-statement') ?>">PRIVACY-STATEMENT</a></li>

            <li><a class="text-uppercase dropdown-item navlink <?php if ($page == 'TERMS-AND CONDITIONS') { ?> active  <?php } ?>" href="<?= base_url('terms-and-conditions') ?>">TERMS AND CONDITIONS</a></li>

          </ul>
        </li>

        <?php 

      if (@$this->uri->segment(1) == 'event' || @$this->uri->segment(1) == 'all-upcoming-events') {

        $cartList = $this->session->userdata('events_cart');
        $cart_count = isset($cartList['ids']) && $cartList['ids'] ? count($cartList['ids']) : 0;
        $cart_count = $cart_count != '' ? $cart_count : 0; ?>

        <li>
          <a href="javascript:void(0)" onclick="ViewCartMobile('Events')"> <i class="fa fa-shopping-cart fa-2x" style="color:#fff;font-size: 45px!important;"></i>
            <span class="cart-count text-white" style="font-size: 20px!important;"><?= $cart_count; ?></span>
          </a>
        </li>

      <?php }else if(@$this->uri->segment(1) == 'donations'){

        $cartList = $this->session->userdata('donations_cart');
        $cart_count = isset($cartList['ids']) && $cartList['ids'] ? count($cartList['ids']) : 0;
        $cart_count = $cart_count != '' ? $cart_count : 0; ?>

        <li>
          <a href="javascript:void(0)" onclick="ViewCartMobile('Donations')"> <i class="fa fa-shopping-cart fa-2x" style="color:#fff;font-size: 45px!important;"></i>
            <span class="cart-count text-white" style="font-size: 20px!important;"><?= $cart_count; ?></span>
          </a>
        </li>

      <?php }else if(@$this->uri->segment(1) == 'services'){ 

        $cartList = $this->session->userdata('service_cart');
        $cart_count = isset($cartList['ids']) && $cartList['ids'] ? count($cartList['ids']) : 0;
        $cart_count = $cart_count != '' ? $cart_count : 0;  ?>

        <li>
          <a href="javascript:void(0)" onclick="ViewCartMobile('Services')"> <i class="fa fa-shopping-cart fa-2x" style="color:#fff;font-size: 45px!important;"></i>
            <span class="cart-count text-white" style="font-size: 20px!important;"><?= $cart_count; ?></span>
          </a>
        </li>

      <?php }else if(@$this->uri->segment(1) == 'facilities'){ 

        $cartList = $this->session->userdata('facilities_cart');
        $cart_count = isset($cartList['ids']) && $cartList['ids'] ? count($cartList['ids']) : 0;
        $cart_count = $cart_count != '' ? $cart_count : 0;  ?>

        <li>
          <a href="javascript:void(0)" onclick="ViewCartMobile('facilitiesContollers/Facilities')"> <i class="fa fa-shopping-cart fa-2x" style="color:#fff;font-size: 45px!important;"></i>
            <span class="cart-count text-white" style="font-size: 20px!important;"><?= $cart_count; ?></span>
          </a>
        </li>

      <?php }else if(@$this->uri->segment(1) == 'recurring-sponsor-now'){ 

        $cartList = $this->session->userdata('recurring_donations_cart');
        $cart_count = isset($cartList['ids']) && $cartList['ids'] ? count($cartList['ids']) : 0;
        $cart_count = $cart_count != '' ? $cart_count : 0;  ?>

        <li>
          <a href="javascript:void(0)" onclick="ViewCartMobile('RecurringSponsorNow')"> <i class="fa fa-shopping-cart fa-2x" style="color:#fff;font-size: 45px!important;"></i>
            <span class="cart-count text-white" style="font-size: 20px!important;"><?= $cart_count; ?></span>
          </a>
        </li>

      <?php }else if(@$this->uri->segment(1) == 'sponsor-now'){ 

        $cartList = $this->session->userdata('sponsorship_cart');
        $cart_count = isset($cartList['ids']) && $cartList['ids'] ? count($cartList['ids']) : 0;
        $cart_count = $cart_count != '' ? $cart_count : 0;  ?>

        <li>
          <a href="javascript:void(0)" onclick="ViewCartMobile('SponsorNow')"> <i class="fa fa-shopping-cart fa-2x" style="color:#fff;font-size: 45px!important;"></i>
            <span class="cart-count text-white" style="font-size: 20px!important;"><?= $cart_count; ?></span>
          </a>
        </li>

      <?php } ?>



      </ul>
      <i class="bi bi-list mobile-nav-toggle text-white"></i>
    </nav>
    <!-- .navbar -->

  </div>
</header><!-- End Header -->