<aside id="sidebar-left" class="sidebar-left">
	<div class="sidebar-header">
		<div class="sidebar-title">Shortcut</div>
	</div>
	<div class="nano">
        <div class="nano-content">
            <nav id="menu" class="nav-main" role="navigation">
                <ul class="nav nav-main">
                    <!-- Dashboard -->
                    <li class="<?php if ($main_menu == 'dashboard') echo 'nav-active'; ?>">
                        <a href="<?php echo base_url('dashboard'); ?>"><i class="fab fa-dashcube"></i><span><?php echo translate('dashboard'); ?></span></a>
                    </li>

                   
                    
                    <?php
                    if(get_permission('account', 'is_view') ||
                    get_permission('voucher_head', 'is_view') ||
                    get_permission('voucher_head', 'is_add') ||
                    get_permission('voucher', 'is_view') ||
                    get_permission('accounting_reports', 'is_view')){
                    ?>
                    <!-- Office Accounting -->
                    <li class="nav-parent <?php if ($main_menu == 'system' || $main_menu == 'accounts_repots') echo 'nav-expanded nav-active'; ?>">
                        <a><i class="fas fa-calculator"></i><span><?php echo translate('System'); ?></span></a>
                        <ul class="nav nav-children">
						<li class="<?php if ($sub_page == 'system/isp_info') echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('system'); ?>">
                                    <span><i class="fas fa-caret-right" aria-hidden="true"></i><?php echo translate('ISP Information'); ?></span>
                                </a>
                            </li>
						<li class="<?php if ($sub_page == 'system/invoice') echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('system'); ?>">
                                    <span><i class="fas fa-caret-right" aria-hidden="true"></i><?php echo translate('Invoice Template'); ?></span>
                                </a>
                            </li>
							<li class="<?php if ($sub_page == 'system/billing' ) echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('system'); ?>">
                                    <span><i class="fas fa-caret-right" aria-hidden="true"></i><?php echo translate('Billing Profile'); ?></span>
                                </a>
                            </li>
							<li class="<?php if ($sub_page == 'system/subnets') echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('system'); ?>">
                                    <span><i class="fas fa-caret-right" aria-hidden="true"></i><?php echo translate('Subnets'); ?></span>
                                </a>
                            </li>
							<li class="<?php if ($sub_page == 'system/nas') echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('system'); ?>">
                                    <span><i class="fas fa-caret-right" aria-hidden="true"></i><?php echo translate('NAS'); ?></span>
                                </a>
                            </li>
							<li class="<?php if ($sub_page == 'system/packages' ) echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('system'); ?>">
                                    <span><i class="fas fa-caret-right" aria-hidden="true"></i><?php echo translate('Packages'); ?></span>
                                </a>
                            </li>

                      
                        </ul>
                    </li>
                    <?php } ?>
                    
					<?php
                    if(get_permission('employee', 'is_view') ||
                    get_permission('employee', 'is_add') ||
                    get_permission('designation', 'is_view') ||
                    get_permission('designation', 'is_add') ||
                    get_permission('department', 'is_view') ||
                    get_permission('employee_disable_authentication', 'is_view')){
					?>
                    <!-- Employees -->
                    <li class="nav-parent <?php if ($main_menu == 'employee') echo 'nav-expanded nav-active'; ?>">
                        <a><i class="fas fa-users"></i><span><?php echo translate('User Management'); ?></span></a>
                        <ul class="nav nav-children">
                        <?php if(get_permission('employee', 'is_view')){ ?>
                            <li class="<?php if ($sub_page == 'employee/view' ||
                                                    $sub_page == 'employee/profile' ||
                                                        $sub_page == 'employee/add_short_bio') echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('employee/view'); ?>">
                                    <span><i class="fas fa-caret-right" aria-hidden="true"></i><?php echo translate('All') . " " . translate('Users'); ?></span>
                                </a>
                            </li>
                        
                        <?php } if(get_permission('employee', 'is_add')){ ?>
                            <li class="<?php if ($sub_page == 'employee/add') echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('employee/create'); ?>">
                                    <span><i class="fas fa-caret-right" aria-hidden="true"></i><?php echo translate('add') . " " . translate('user'); ?></span>
                                </a>
                            </li>
                        <?php } if(get_permission('employee_disable_authentication', 'is_view')){ ?>
                            <li class="<?php if ($sub_page == 'employee/disable_authentication') echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('employee/disable_authentication'); ?>">
                                    <span><i class="fas fa-caret-right" aria-hidden="true"></i><?php echo translate('login_deactivate'); ?></span>
                                </a>
                            </li>
                        <?php } ?>
                        </ul>
                    </li>
					<?php } ?>

                    <?php
                    if(get_permission('global_setting', 'is_view') ||
                    get_permission('email_setting', 'is_view') ||
                    get_permission('database_backup', 'is_view') ||
                    get_permission('language', 'is_view') ||
                    get_permission('database_backup', 'is_view') ||
                    get_permission('database_restore', 'is_add')){
                    ?>
                    <!-- Settings -->
                    <li class="nav-parent <?php if ($main_menu == 'settings') echo 'nav-expanded nav-active'; ?>">
                        <a><i class="fas fa-cogs"></i><span><?php echo translate('settings'); ?></span></a>
                        <ul class="nav nav-children">
                        <?php if(get_permission('global_setting', 'is_view')) { ?>
                            <li class="<?php if ($sub_page == 'setting/index') echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('settings'); ?>">
                                    <span><i class="fas fa-caret-right" aria-hidden="true"></i><?php echo translate('global') . " " . translate('setting'); ?></span>
                                </a>
                            </li>
                        <?php } if(get_permission('sms_setting', 'is_view')) { ?>
                            <li class="<?php if ($sub_page == 'smssetting/index' || $sub_page == 'smssetting/template') echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('smssettings'); ?>">
                                    <span><i class="fas fa-caret-right"></i><?php echo translate('sms') . " " . translate('settings'); ?></span>
                                </a>
                            </li>
                        <?php } if(get_permission('email_setting', 'is_view')) { ?>
                            <li class="<?php if ($sub_page == 'mailconfig/index' || $sub_page == 'mailconfig/template') echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('mailconfig'); ?>">
                                    <span><i class="fas fa-caret-right" aria-hidden="true"></i><?php echo translate('email') . " " . translate('setting'); ?></span>
                                </a>
                            </li>
                        <?php } if(loggedin_role_id() == 1) { ?>
                            <li class="<?php if ($sub_page == 'role/index' || $sub_page == 'role/permission') echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('role'); ?>">
                                    <span><i class="fas fa-caret-right" aria-hidden="true"></i><?php echo translate('role') . " " . translate('permission'); ?></span>
                                </a>
                            </li>
                        <?php } if(get_permission('database_backup', 'is_view') || get_permission('database_restore', 'is_add')) { ?>
                            <li class="<?php if ($sub_page == 'backup/index') echo 'nav-active'; ?>">
                                <a href="<?php echo base_url('backup'); ?>">
                                    <span><i class="fas fa-caret-right" aria-hidden="true"></i><?php echo translate('database') . " " . translate('backup'); ?></span>
                                </a>
                            </li>
                        <?php } ?>
                        </ul>
                    </li>
                    <?php } ?>
                </ul>
            </nav>
        </div>
	</div>
</aside>
<!-- end sidebar -->