<!-- SIDEBAR File - contains sidebar Menus !-->
<aside id="sidebar" class="sidebar">
    <a href="<?= base_url('administrator'); ?>" class="logo-desktop">
        <div class="d-flex bd-highlight">
			<div class="bd-highlight p-1">
				<img src="<?= base_url(); ?>/assets/images/logo-mobile.png" alt="ADMIN LT CMS" height="60px">
			</div>
			<div class="bd-highlight p-1">
				<h2 class="mb-0 fw-bold" style="color: #3C486B">ADMIN</h2>
				<h6 class="mt-0" style="color: #3C486B;">DASHBOARD</h6>
			</div>
		</div>
    </a>
    <a href="<?= base_url('administrator'); ?>" class="logo-mob" >
        <img src="<?= base_url(); ?>/assets/images/logo-mobile.png" alt="ADMIN LT CMS" class="p-1 img-fluid">
    </a>
    <!-- Sidebar Menu !-->
    <div class="contenedor-menu">
		<ul class="menu">
			<li><a href="<?= base_url('administrator')?>"><i class="bi bi-speedometer2 me-2"></i> Dashboard</a></li><!-- Dashboard !-->
			<?php if(has_permission('Redd.index')):?>
			<li><a href="#"><i class="bi bi-people me-2"></i> REDD+  <i class="bi bi-chevron-down float-end arrow"></i></a>
				<ul>
                    <li><a href="<?= base_url('administrator/redd'); ?>">View/Search Clients</a></li>
					<li><a href="<?= base_url('administrator/redd/add-client'); ?>">Add New Client</a></li>
					<li><a href="<?= base_url('administrator/redd/projects'); ?>">Projects</a></li>
					<li><a href="<?= base_url('administrator/redd/projects/carbon-data'); ?>" class="d-block">Carbon Data</a></li>
					<?php if(has_permission('ReddSettings.index')):?>
					<li><a href="<?= base_url('administrator/redd/settings'); ?>">REDD+ Settings</a></li>
					<?php endif;?>
				</ul>
			</li><!-- Members !-->
			<?php endif;?>

			<li><a href="#"><i class="bi bi-collection me-2"></i> Modules<i class="bi bi-chevron-down float-end arrow"></i></a>
				<ul>
					<?php if(has_permission('Menus.menuTypes')):?>
					<li><a href="<?= base_url('administrator/menu/groups'); ?>"> Menu</a></li>
					<?php endif;?>
					<?php if(has_permission('Posts.index')):?>
					<li><a href="<?= base_url('administrator/posts'); ?>">Posts</a></li>
					<li><a href="<?= base_url('administrator/pages'); ?>">Pages</a></li>
					<?php endif;?>
					<?php if(has_permission('Sliders.index')):?>
					<li><a href="<?= base_url('administrator/sliders/dashboard'); ?>"> Sliders</a></li>
					<?php endif;?>
					<?php if(has_permission('Team.index')):?>
					<li><a href="<?= base_url('administrator/team/members'); ?>"> Team Members</a></li>
					<?php endif;?>
					<?php if(has_permission('Downloads.index')):?>
					<li><a href="<?= base_url('administrator/downloads'); ?>"> Downloads</a></li>
					<?php endif;?>
				</ul>
			</li>
			<?php if(has_permission('LTcmsSettings.index')):?>
			<li><a href="#"><i class="bi bi-people me-2"></i> Users <i class="bi bi-chevron-down float-end arrow"></i></a>
				<ul>
                    <li><a href="<?= base_url('administrator/users') ?>">All Users</a></li>
					<li><a href="<?= base_url('administrator/users/add') ?>">Add User</a></li>
                    
				</ul>
			</li><!-- Users !-->
			<?php endif;?>
			<?php if(has_permission('LTcmsSettings.index')):?>
            <li><a href="#"><i class="bi bi-gear me-2"></i> System <i class="bi bi-chevron-down float-end arrow"></i></a>
				<ul>
                    <li><a href="<?= base_url('administrator/settings/site') ?>">Site/App Details</a></li>
					<li><a href="<?= base_url('administrator/settings/all') ?>">System Settings</a></li>
					<li><a href="<?= base_url('administrator/notifications') ?>">Activity Logs</a></li>
                    <li class="d-none"><a href="#">Site Health</a></li>
					<li class="d-none"><a href="#">Backup</a></li>
				</ul>
			</li><!-- system settings !-->
			<?php endif;?>
		</ul>

	</div>

    <!--END Sidebar Menu !-->
</aside>