<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('user')->check()): ?>
            <div class="pull-left image">
                <img src="<?php echo e(asset( auth()->guard('user')->user()->photo != '' ? 'assets/img/uploads/client_images/'.auth()->guard('user')->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('user')->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('clientarea/home')); ?>"><a href="<?php echo e(route('client_dashboard')); ?>"><i class="fa fa-home"></i><span><?php echo e(trans('application.dashboard')); ?></span></a></li>
            <li class="<?php echo e(HTML::menu_active('clientarea/cinvoices')); ?>"><a href="<?php echo e(route('cinvoices.index')); ?>"><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('clientarea/cestimates')); ?>"><a href="<?php echo e(route('cestimates.index')); ?>"><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('clientarea/cpayments')); ?>"><a href="<?php echo e(route('cpayments.index')); ?>"><i class="fa fa-money"></i><span><?php echo e(trans('application.payments')); ?></span></a></li>
            <li class="<?php echo e(HTML::menu_active('clientarea/reports')); ?>"><a href="<?php echo e(url('clientarea/reports')); ?>"><i class="fa fa-line-chart"></i><span><?php echo e(trans('application.reports')); ?></span></a></li>
            <li class="header"><?php echo e(trans('application.account_menu')); ?></li>
            <li class="<?php echo e(HTML::menu_active('clientarea/cprofile')); ?>"><a href="<?php echo e(url('clientarea/cprofile')); ?>"><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('clientarea/logout')); ?>"><a href="<?php echo e(route('client_logout')); ?>"><i class="fa fa-power-off"></i> <span><?php echo e(trans('application.logout')); ?></span></a></li>
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>