	<ul class="uk-nav-default uk-nav-parent-icon" data-uk-nav>
				<?php if(is_right_starts('books')):?>
                    <li class="uk-nav-header"><?=lang('books_list')?> </li>
               
                     <li class="uk-parent <?=is($this->uri->segment(2)=='books','uk-open')?>">
                        <a  href="#"><i data-uk-icon="icon: copy"></i> <?=lang('books_data')?></a>
                        <ul class="uk-nav-sub">
                            <li>
                                <a  href="<?=site_url("admin/books")?>"><i data-uk-icon="icon: copy"></i> <?=lang('show_books')?></a>
                            </li>
							<?php if(is_right('books_add')):?>
                            <li>
                                <a  href="<?=site_url("admin/books/add")?>"><i data-uk-icon="icon: plus"></i> <?=lang('add_new_book')?></a>
                            </li>
							<?php endif ;?>	

                        </ul>
                    </li> 
					 <?php endif ;?>
                 <li class="uk-nav-divider"></li>
				  <?php if(is_right_starts('muallifeen')):?>
                    <li >
                        <a  href="<?=site_url("admin/muallifeen")?>"><i data-uk-icon="icon: users"></i> <?=lang('muallifeen_and_muhaqqiqeen')?></a>
                    </li>              
                    <?php endif ;?>              
                    <?php if(is_right_starts('nashireen')):?><li >
                        <a  href="<?=site_url("admin/nashireen")?>"><i data-uk-icon="icon: users"></i>   <?=lang('publishers')?></a>
                    </li>              
                    <?php endif ;?>
					<?php if(is_right_starts('aqsam')):?>
               <li class="uk-nav-divider"></li>
                     <li class="uk-parent <?=is($this->uri->segment(2)=='aqsam','uk-open')?>">
                        <a  href="#"><i data-uk-icon="icon: list"></i> <?=lang('cats')?></a>
                        <ul class="uk-nav-sub">
                            <li>
                                <a  href="<?=site_url("admin/aqsam")?>"><i data-uk-icon="icon: list"></i> <?=lang('cats')?></a>
                            </li>
							<?php if(is_right('aqsam_add')):?>
                            <li>
                                <a  href="<?=site_url("admin/aqsam/add")?>"><i data-uk-icon="icon: plus"></i> <?=lang('add_new')?></a>
                            </li>
							<?php endif ;?>	

                        </ul>
                    </li> 
                   <?php endif ;?>					
                  					
					
					
					
					
					
<?php if(is_right_starts('ist')):?>
					
					<li class="uk-nav-divider"></li>
					<li class="uk-nav-header"> <?=lang('istiarat_and_members')?></li>
					 <li >
                        <a  href="<?=site_url("admin/istiarat")?>"><i data-uk-icon="icon: list"></i> <?=lang('istiarat')?> </a>
                    </li> 
					<?php endif?>	
					
					
<?php if(is_right_starts('members')):?>
					<li >
                        <a  href="<?=site_url("admin/members")?>"><i data-uk-icon="icon: users"></i> <?=lang('members')?>  </a>
                    </li> 
					<?php endif?>
										


				<li class="uk-nav-divider"></li>
				<li class="uk-nav-header"><?=lang('accounts_and_users')?></li>

	
<?php if(right('users_add') or right ('users_edit') or right('users_edit_role') or right('users_active') or right('users_edit_role') ):?>
						<li class="uk-parent <?=is($this->uri->segment(2)=='users','uk-open')?>">
						
							<a href="#"><i data-uk-icon="icon: users" class="uk-margin-small-left"></i><?=lang('user_control')?></a>
							<ul class="uk-nav-sub">
							 <?php if(right('users_add')):?>
							 <li >
                              
							   <a  href="<?=site_url("admin/users/home/add")?>"><i  data-uk-icon="icon: plus" class="uk-margin-small-left"></i> <?=lang('add_user')?> </a>
                            </li>
							<?php endif?>
                            <li>
                                <a  href="<?=site_url("admin/users")?>"><i  data-uk-icon="icon: users" class="uk-margin-small-left"></i> <?=lang('show_users')?></a>
                            </li>
							<?php if(right('user_rights_table')):?>
                            <li >
                                <a  href="<?=site_url("admin/users/rights")?>"><i  data-uk-icon="icon: check" class="uk-margin-small-left"></i> <?=lang('users_rights')?> </a>
                            </li>
							 <?php endif?>
							 <?php if(is_right('user_roles_table')):?>
							<li >
                                <a  href="<?=site_url("admin/users/roles")?>"><i  data-uk-icon="icon: tag" class="uk-margin-small-left"></i><?=lang('users_roles')?> </a>
                            </li>
							
						  <?php endif?>
						  </ul>
						</li>
						<li class="uk-nav-divider"></li>
				 <?php endif?>			 
				 <li class="uk-parent">
						
					<a href="#"><i data-uk-icon="icon: settings" class="uk-margin-small-left"></i><?=lang('my_account')?></a>
					<ul class="uk-nav-sub">
					 <li><a href="<?=site_url("admin/users/home/show/".login('id'))?>"><i data-uk-icon="icon:user" class="uk-margin-small-left"></i><?=lang('my_profile')?></a></li>
					 <li><a href="<?=site_url("accounts/settings")?>"><i data-uk-icon="icon:settings" class="uk-margin-small-left"></i><?=lang('update_my_data')?></a></li>
					 <li><a href="<?=site_url("accounts/settings/password")?>"><i data-uk-icon="icon:lock" class="uk-margin-small-left"></i><?=lang('chang_password')?></a></li>
					</ul>
				</li>
				 
				 
				<li class="uk-nav-divider"></li>
				<li class="uk-nav-header"><?=lang('settings_and_tools')?></li>				

<?php if(is_right_starts('settings')): ?>
				<li class="uk-parent <?=is($this->uri->segment(2)=='settings','uk-open')?>">
						
					<a href="#"><i data-uk-icon="icon: settings" class="uk-margin-small-left"></i><?=lang('settings')?></a>
					<ul class="uk-nav-sub">
					<?php if(is_right('settings_main')): ?>
					 <li><a href="<?=site_url("admin/settings")?>"><i data-uk-icon="icon:settings" class="uk-margin-small-left"></i><?=lang('grnl_settings')?></a></li>
					 <?php endif; ?>
					 <?php if(is_right('settings_info')): ?>
					 <li><a href="<?=site_url("admin/settings/info")?>"><i data-uk-icon="icon:settings" class="uk-margin-small-left"></i><?=lang('maktaba_info')?></a></li><?php endif; ?>
						<?php if(is_right('settings_ist')): ?>
					<li><a href="<?=site_url("admin/settings/istiara")?>"><i data-uk-icon="icon:settings" class="uk-margin-small-left"></i><?=lang('istiara_settings')?></a></li><?php endif; ?>
					<?php if(is_right('settings_images')): ?>
					 <li><a href="<?=site_url("admin/settings/images")?>"><i data-uk-icon="icon:settings" class="uk-margin-small-left"></i><?=lang('images_and_colors')?><?=is(APP_TYPE=='f','<span class="uk-badge">'.lang('khasia_madfoa').'</span>')?></a></li>
					 <?php endif; ?>
					</ul>
				</li>
<?php endif; ?>	
			<li class="uk-parent <?=is($this->uri->segment(2)=='settings','uk-open')?>">
						
					<a href="#"><i data-uk-icon="icon: settings" class="uk-margin-small-left"></i><?=lang('tools')?></a>
					<ul class="uk-nav-sub">
					 <?php if(is_right('books_add')): ?>
					 <li><a href="<?=site_url("admin/books/add_multi")?>"><i data-uk-icon="icon:settings" class="uk-margin-small-left"></i><?=lang('add_multi_books')?></a></li>
					 <?php endif; ?>
					 <?php if(is_right_starts('backup_db')): ?>
					 <li><a href="<?=site_url("admin/backup")?>"><i data-uk-icon="icon:settings" class="uk-margin-small-left"></i><?=lang('backup_and_restore')?><?=is(APP_TYPE=='f','<span class="uk-badge">'.lang('khasia_madfoa').'</span>')?></a></li>
					 <?php endif; ?>
					 
					</ul>
				</li>	
						 

					</ul>
				