<aside class="main-sidebar">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <?php if(auth()->guard('admin')->check()): ?>
            <div class="pull-left image">
                <img src="<?php echo e(asset( auth()->guard('admin')->user()->photo != '' ? 'assets/img/uploads/'.auth()->guard('admin')->user()->photo : 'assets/img/uploads/defaultavatar.png')); ?>" class="img-circle" alt="User Image" />
            </div>
            <div class="pull-left info">
                <p> <?php echo e(auth()->guard('admin')->user()->name); ?> </p>
                <a href="#"><i class="fa fa-circle text-success"></i> <?php echo e(trans('application.online')); ?></a>
            </div>
            <?php endif; ?>
        </div>
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu">
            <li class="header"><?php echo e(trans('application.main_menu')); ?></li>
            <li class="<?php echo e(HTML::menu_active('/')); ?>"><a href="<?php echo e(url('/')); ?>"><i class="fa fa-home"></i><span><?php echo e(trans('application.dashboard')); ?></span></a></li>
            <li class="<?php echo e(HTML::menu_active('clients')); ?>"><a href="<?php echo e(url('clients')); ?>"><i class="fa fa-users"></i><span><?php echo e(trans('application.clients')); ?></span></a></li>
            <li class="<?php echo e(HTML::menu_active('invoices')); ?>"><a href="<?php echo e(url('invoices')); ?>"><i class="fa fa-file-pdf-o"></i><span><?php echo e(trans('application.invoices')); ?></span></a></li>
            <li class="<?php echo e(HTML::menu_active('estimates')); ?>"><a href="<?php echo e(url('estimates')); ?>"><i class="fa fa-list-alt"></i><span><?php echo e(trans('application.estimates')); ?></span> </a></li>
            <li class="<?php echo e(HTML::menu_active('payments')); ?>"><a href="<?php echo e(url('payments')); ?>"><i class="fa fa-money"></i><span><?php echo e(trans('application.payments')); ?></span></a></li>
            <li class="<?php echo e(HTML::menu_active('expenses')); ?> <?php echo e(HTML::menu_active('expense_category')); ?>"><a href="<?php echo e(url('expenses')); ?>"><i class="fa fa-credit-card "></i><span><?php echo e(trans('application.expenses')); ?></span></a></li>
            <li class="<?php echo e(HTML::menu_active('products')); ?> <?php echo e(HTML::menu_active('product_category')); ?>"><a href="<?php echo e(url('products')); ?>"><i class="fa fa-puzzle-piece"></i> <span><?php echo e(trans('application.products')); ?></span></a></li>
            <li class="<?php echo e(HTML::menu_active('reports')); ?>"><a href="<?php echo e(url('reports')); ?>"><i class="fa fa-line-chart"></i> <span><?php echo e(trans('application.reports')); ?></span></a></li>
            <li class="<?php echo e(HTML::menu_active('users')); ?>"><a href="<?php echo e(route('users.index')); ?>"><i class="fa fa-user "></i> <span><?php echo e(trans('application.users')); ?></span></a></li>
            <?php if(auth()->guard('admin')->check() && (auth()->guard('admin')->user()->can('edit_setting') || auth()->guard('admin')->user()->HasRole('admin'))): ?>
            <li class="<?php echo e(HTML::menu_active('settings')); ?>"><a href="<?php echo e(url('settings/company')); ?>"><i class="fa fa-cogs"></i> <span><?php echo e(trans('application.settings')); ?></span></a></li>
            <?php endif; ?>
            <li class="header"><?php echo e(trans('application.account_menu')); ?></li>
            <li class="<?php echo e(HTML::menu_active('profile')); ?>"><a href="<?php echo e(url('profile')); ?>"><i class="fa fa-user-md "></i> <span><?php echo e(trans('application.profile')); ?></span></a></li>
            <li class="<?php echo e(HTML::menu_active('logout')); ?>"><a href="<?php echo e(route('admin_logout')); ?>"><i class="fa fa-power-off"></i> <span><?php echo e(trans('application.logout')); ?></span></a></li>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>