<nav class="navbar navbar-light navbar-vertical navbar-expand-xl" style="display: none;">
  <script>
    var navbarStyle = localStorage.getItem("navbarStyle");
    if (navbarStyle && navbarStyle !== 'transparent') {
      document.querySelector('.navbar-vertical').classList.add(`navbar-${navbarStyle}`);
    }
  </script>
  <div class="d-flex align-items-center">
    <div class="toggle-icon-wrapper">
      <button class="btn navbar-toggler-humburger-icon navbar-vertical-toggle" data-bs-toggle="tooltip" data-bs-placement="left" title="Toggle Navigation"><span class="navbar-toggle-icon"><span class="toggle-line"></span></span></button>
    </div><a class="navbar-brand" href="<?php echo e(url ('/')); ?>">
      <div class="d-flex align-items-center py-3"><img class="me-2" src="<?php echo e(asset('assets/img/icons/spot-illustrations/falcon.png')); ?>" alt="" width="40" /><span class="font-sans-serif">MBBS</span></div>
    </a>
  </div>
  <div class="collapse navbar-collapse" id="navbarVerticalCollapse">
    <div class="navbar-vertical-content scrollbar">
      <ul class="navbar-nav flex-column mb-3" id="navbarVerticalNav">
        <li class="nav-item">
          <!-- parent pages--><a class="nav-link dropdown-indicator" href="#dashboard" role="button" data-bs-toggle="collapse" aria-expanded="false" aria-controls="dashboard">
            <div class="d-flex align-items-center"><span class="nav-link-icon"><span class="fas fa-chart-pie"></span></span><span class="nav-link-text ps-1">Dashboard</span></div>
          </a>
          <ul class="nav collapse <?php echo e(Request::path() == '/' || Request::path() == 'home'  ? 'show' : ''); ?>" id="dashboard">
            <li class="nav-item"><a class="nav-link" href="<?php echo e(url ('/')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">Home</span></div>
              </a><!-- more inner pages-->
            </li>
          </ul>
        </li>


        <li class="nav-item">
          <!-- parent pages-->
          <a class="nav-link dropdown-indicator" href="#member" role="button" data-bs-toggle="collapse"
            aria-expanded="false" aria-controls="member">
            <div class="d-flex align-items-center">
              <span class="nav-link-icon"><span class="fas fa-users"></span></span>
              <span class="nav-link-text ps-1">Members</span>
            </div>
          </a>

          <ul class="nav collapse <?php echo e(Request::path() == 'member' || Request::path() == 'allmembers' ? 'show' : ''); ?>" id="member">

            <!-- ✅ Visible to Everyone -->
            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/member')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Add new member</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/allmembers')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">All Members</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/findmember')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Find Member</span>
                </div>
              </a>
            </li>

            <!-- 🔒 Only Role 3 Can See These -->
            <?php if(Auth::user()->role == 3): ?>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/payactive')); ?>" target="_blank">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Active Members</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/neverPaid')); ?>" target="_blank">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Never Paid</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/payinactive')); ?>" target="_blank">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Inactive Members</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/never-paid-eighteen-months')); ?>" target="_blank">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Not Paid in 18 Months</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/neverPaidTwoYears')); ?>" target="_blank">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Never Paid in 2 Years</span>
                </div>
              </a>
            </li>

            <?php endif; ?>

          </ul>
        </li>



        <?php if(Auth::user()->role == 3): ?>
        <li class="nav-item">
          <!-- parent pages-->
          <a class="nav-link dropdown-indicator" href="#communications" role="button" data-bs-toggle="collapse" aria-expanded="false" aria-controls="communications">
            <div class="d-flex align-items-center"><span class="nav-link-icon"><span class="fas fa-envelope"></span></span><span class="nav-link-text ps-1">Communications</span></div>
          </a>
          <ul class="nav collapse <?php echo e(Request::path() == 'sms' ? 'show' : ''); ?>" id="communications">
            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/sms')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">SMS</span></div>
              </a>
            </li>
            <!-- Add more inner pages for the "SMS" section if needed -->
          </ul>
        </li>
        <li class="nav-item">
          <!-- Parent: Claims Management -->
          <a class="nav-link dropdown-indicator" href="#claimsMenu" role="button" data-bs-toggle="collapse"
            aria-expanded="false" aria-controls="claimsMenu">
            <div class="d-flex align-items-center">
              <span class="nav-link-icon"><span class="fas fa-file-alt"></span></span>
              <span class="nav-link-text ps-1">Claims Management</span>
            </div>
          </a>

          <ul class="nav collapse <?php echo e(in_array(Request::path(), ['claims', 'claims/review']) ? 'show' : ''); ?>" id="claimsMenu">

           <li class="nav-item">
      <a class="nav-link <?php echo e(Request::path() == 'claims-management' ? 'active' : ''); ?>"
         href="<?php echo e(url('/claims-management')); ?>">
        <div class="d-flex align-items-center">
          <span class="nav-link-text ps-1">Claims Dashboard</span>
        </div>
      </a>
    </li>
            <!-- All Claims -->
            <li class="nav-item">
              <a class="nav-link <?php echo e(Request::path() == 'claims' ? 'active' : ''); ?>" href="<?php echo e(url('/claims')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">All Claims</span>
                </div>
              </a>
            </li>
           

           

          </ul>
        </li>
        <li class="nav-item">
          <!-- parent pages--><a class="nav-link dropdown-indicator" href="#wrong" role="button" data-bs-toggle="collapse" aria-expanded="false" aria-controls="wrong">
            <div class="d-flex align-items-center"><span class="nav-link-icon"><span class="fas fa-money-check"></span></span><span class="nav-link-text ps-1">Government Payments</span></div>
          </a>
          <ul class="nav collapse <?php echo e(Request::path() == 'government' || Request::path() == 'government'  ? 'show' : ''); ?>" id="wrong">

            <li class="nav-item"><a class="nav-link" href="<?php echo e(url ('/government')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">Government payments</span></div>
              </a><!-- more inner pages-->
            </li>
          </ul>
        </li>
        <li class="nav-item">
          <!-- parent pages-->
          <a class="nav-link dropdown-indicator" href="#group" role="button" data-bs-toggle="collapse" aria-expanded="false" aria-controls="group">
            <div class="d-flex align-items-center">
              <span class="nav-link-icon"><i class="fas fa-layer-group"></i></span>
              <span class="nav-link-text ps-1">Groups</span>
            </div>
          </a>
          <ul class="nav collapse <?php echo e((Request::path() == 'group' || Request::path() == 'allgroups') ? 'show' : ''); ?>" id="group">
            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/group')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Add new group</span>
                </div>
              </a>
            </li>
            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/allgroups')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">All groups</span>
                </div>
              </a>
            </li>
          </ul>
        </li>
        <li class="nav-item">
          <!-- parent pages--><a class="nav-link dropdown-indicator" href="#cover" role="button" data-bs-toggle="collapse" aria-expanded="false" aria-controls="cover">
            <div class="d-flex align-items-center"><span class="nav-link-icon"><i class="fas fa-hands-helping"></i> </span><span class="nav-link-text ps-1">Covers</span></div>
          </a>
          <ul class="nav collapse <?php echo e(Request::path() == 'cover' || Request::path() == 'allcovers'  ? 'show' : ''); ?>" id="cover">
            <li class="nav-item"><a class="nav-link" href="<?php echo e(url ('/cover')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">Add new cover</span></div>
              </a><!-- more inner pages-->
            </li>
            <li class="nav-item"><a class="nav-link" href="<?php echo e(url ('/allcovers')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">All Covers</span></div>
              </a><!-- more inner pages-->
            </li>
          </ul>
        </li>
        <li class="nav-item">
          <!-- parent pages--><a class="nav-link dropdown-indicator" href="#sponsor" role="button" data-bs-toggle="collapse" aria-expanded="false" aria-controls="sponsor">
            <div class="d-flex align-items-center"><span class="nav-link-icon"><i class="fas fa-hand-holding-usd"></i></span><span class="nav-link-text ps-1">Sponsors</span></div>
          </a>
          <ul class="nav collapse <?php echo e(Request::path() == 'sponsor' || Request::path() == 'allsponsors'  ? 'show' : ''); ?>" id="sponsor">
            <li class="nav-item"><a class="nav-link" href="<?php echo e(url ('#!')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">Add new sponsor</span></div>
              </a><!-- more inner pages-->
            </li>
            <li class="nav-item"><a class="nav-link" href="<?php echo e(url ('#!')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">All sponsors</span></div>
              </a><!-- more inner pages-->
            </li>
          </ul>
        </li>

        <li class="nav-item">
          <!-- parent pages--><a class="nav-link dropdown-indicator" href="#list" role="button" data-bs-toggle="collapse" aria-expanded="false" aria-controls="list">
            <div class="d-flex align-items-center"><span class="nav-link-icon"><i class="fas fa-list-ul"></i></span><span class="nav-link-text ps-1">Lists</span></div>
          </a>
          <ul class="nav collapse <?php echo e(Request::path() == 'allpayments' || Request::path() == 'monthscovered' || Request::path() == 'arrears'  ? 'show' : ''); ?>" id="list">
            <li class="nav-item"><a class="nav-link" href="<?php echo e(url ('/allpayments')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">All payments</span></div>
              </a><!-- more inner pages-->
            </li>

            <li class="nav-item"><a class="nav-link" href="<?php echo e(url ('/allpaymentstodelete')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">Payments to delete</span></div>
              </a><!-- more inner pages-->
            </li>

            <li class="nav-item"><a class="nav-link" href="<?php echo e(url ('/deletedpayments')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">Deleted payments</span></div>
              </a><!-- more inner pages-->
            </li>

            <li class="nav-item"><a class="nav-link" href="<?php echo e(url ('/monthscovered')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">All months coverered</span></div>
              </a><!-- more inner pages-->
            </li>


          </ul>
        </li>

        <li class="nav-item">
          <!-- parent -->
          <a class="nav-link dropdown-indicator" href="#trends" role="button" data-bs-toggle="collapse" aria-expanded="false" aria-controls="trends">
            <div class="d-flex align-items-center">
              <span class="nav-link-icon"><i class="fas fa-chart-line"></i></span>
              <span class="nav-link-text ps-1">Trends</span>
            </div>
          </a>
          <ul class="nav collapse <?php echo e(Request::path() == 'trends/current-members-by-gender' || Request::path() == 'trends/members-by-age-group' || Request::path() == 'trends/membership-growth' || Request::path() == 'trends/contribution-rates' || Request::path() == 'trends/payment-patterns' ? 'show' : ''); ?>" id="trends">

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/trends/current-members-by-gender')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Members by Gender</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/trends/members-by-age-group')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Members by Age Group</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/trends/membership-growth')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Membership Growth Trends</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/trends/contribution-rates')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Contribution Rates</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/trends/payment-patterns')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Payment Patterns</span>
                </div>
              </a>
            </li>


            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/covers-report/popular')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Popular Cover Structures</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/covers-report/benefit-by-age')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Benefit by Age Group</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/covers-report/lapse-analysis')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Lapse Analysis by Cover</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/covers-report/new-vs-lapsed')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">New vs Lapsed Members</span>
                </div>
              </a>
            </li>


          </ul>
        </li>

        <li class="nav-item">
          <!-- parent pages--><a class="nav-link dropdown-indicator" href="#user" role="button" data-bs-toggle="collapse" aria-expanded="false" aria-controls="user">
            <div class="d-flex align-items-center"><span class="nav-link-icon"><i class="far fa-id-badge"></i></span><span class="nav-link-text ps-1">users</span></div>
          </a>
          <ul class="nav collapse <?php echo e(Request::path() == 'user' || Request::path() == 'allusers'  ? 'show' : ''); ?>" id="user">
            <li class="nav-item"><a class="nav-link" href="<?php echo e(url ('/user')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">Add new user</span></div>
              </a><!-- more inner pages-->
            </li>
            <li class="nav-item"><a class="nav-link" href="<?php echo e(url ('/allusers')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">All users</span></div>
              </a><!-- more inner pages-->
            </li>
          </ul>
        </li>



        <?php elseif(Auth::user()->role == 4): ?>
        <li class="nav-item">
          <!-- parent pages--><a class="nav-link dropdown-indicator" href="#user" role="button" data-bs-toggle="collapse" aria-expanded="false" aria-controls="user">
            <div class="d-flex align-items-center"><span class="nav-link-icon"><i class="far fa-id-badge"></i></span><span class="nav-link-text ps-1">Agents</span></div>
          </a>
          <ul class="nav collapse <?php echo e(Request::path() == 'user' || Request::path() == 'allusers'  ? 'show' : ''); ?>" id="user">

            <li class="nav-item"><a class="nav-link" href="<?php echo e(url ('/allusers')); ?>" aria-expanded="false">
                <div class="d-flex align-items-center"><span class="nav-link-text ps-1">All agents</span></div>
              </a><!-- more inner pages-->
            </li>
          </ul>
        </li>
        <?php endif; ?>

        <?php if((Auth::user()->role == 3) || (Auth::user()->role == 4)): ?>

        <li class="nav-item">
          <!-- parent pages-->
          <a class="nav-link dropdown-indicator" href="#report" role="button" data-bs-toggle="collapse"
            aria-expanded="false" aria-controls="report">
            <div class="d-flex align-items-center">
              <span class="nav-link-icon"><i class="far fa-file-alt"></i></span>
              <span class="nav-link-text ps-1">Reports</span>
            </div>
          </a>

          <ul class="nav collapse 
          <?php echo e(Request::path() == 'paymentsreport' 
          || Request::path() == 'coversreport'
          || Request::path() == 'monthscoveredreport' 
          || Request::path() == 'arrearsreport' ? 'show' : ''); ?>" id="report">

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/user-payments-report')); ?>">
                Payment report
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/coversreport')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Members cover report</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/arrearsreport')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Members Arrears Report</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/cover_premia')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Reconciliation - Covers</span>
                </div>
              </a>
            </li>

            <li class="nav-item">
              <a class="nav-link" href="<?php echo e(url('/arrear_premia')); ?>">
                <div class="d-flex align-items-center">
                  <span class="nav-link-text ps-1">Reconciliation - Arrears</span>
                </div>
              </a>
            </li>

          </ul>
        </li>
        <?php endif; ?>

      </ul>
    </div>
  </div>
</nav><?php /**PATH C:\WORK-STATION\MBBS\Insurance-Version Controls\03-01-2026\resources\views/layouts/sidebar.blade.php ENDPATH**/ ?>