<?php foreach (URL::navbar() as $type => $details) : if ($x = Menu::items($type)) : ?> <ul class="nav navbar-nav navbar-right"> <li class="dropdown"> <a href="#" class="dropdown-toggle" data-toggle="dropdown"><i class="fa <?php echo Arr::get($details,'icon','fa-asterisk'); ?>"></i> <?php echo Arr::get($details,'name','?'); ?> <b class="caret"></b></a> <?php echo Menu::ul($type,$x,$type == 'user' ? array('logout'=>'Logout') : NULL); ?> </li> </ul> <?php endif; endforeach ?>