<aside class="main-sidebar">

    <!-- sidebar: style can be found in sidebar.less -->

    <section class="sidebar">

        <!-- Sidebar user panel (optional) -->

        <div class="user-panel">

            <div class="pull-left image">

                <img src="<?php echo e(access()->user()->picture); ?>" class="img-circle" alt="User Image" />

            </div><!--pull-left-->

            <div class="pull-left info">

                <p><?php echo e(access()->user()->full_name); ?></p>

                <!-- Status -->

                <a href="#"><i class="fa fa-circle text-success"></i> <?php echo e(trans('strings.backend.general.status.online')); ?></a>

            </div><!--pull-left-->

        </div><!--user-panel-->



        <!-- search form (Optional) -->

        <!-- Sidebar Menu -->

        <ul class="sidebar-menu">

            <?php if(access()->hasRole('Administrator')): ?>

            <li class="<?php echo e(active_class(Active::checkUriPattern('admin/dashboard'))); ?>">

                <a href="<?php echo e(route('admin.dashboard')); ?>">

                    <i class="fa fa-dashboard"></i>

                    <span><?php echo e(trans('menus.backend.sidebar.dashboard')); ?></span>

                </a>

            </li>
            <?php if (access()->hasRole(1)): ?>

                <li class="<?php echo e(active_class(Active::checkUriPattern('admin/access/user*'))); ?>">

                    <a href="<?php echo e(route('admin.access.user.index')); ?>">

                        <i class="fa fa-circle-o"></i>

                        <span><?php echo e(trans('labels.backend.access.users.management')); ?></span>



                        <?php if($pending_approval > 0): ?>

                            <span class="label label-danger pull-right"><?php echo e($pending_approval); ?></span>

                        <?php endif; ?>

                    </a>

                </li>
                <li class="<?php echo e(active_class(Active::checkUriPattern('admin/access/role*'))); ?>">
                    <a href="<?php echo e(route('admin.access.role.index')); ?>">
                        <i class="fa fa-circle-o"></i>
                        <span><?php echo e(trans('labels.backend.access.roles.management')); ?></span>
                    </a>
                </li>

            <li class="<?php echo e(active_class(Active::checkUriPattern('admin/superadmin/plans'))); ?>">

                <a href="<?php echo e(route('admin.superadmin.plans.index')); ?>">

                    <i class="fa fa-cog" aria-hidden="true"></i>

                    <span><?php echo e(trans('Agencies')); ?></span>

                </a>

            </li>

            <li class="<?php echo e(active_class(Active::checkUriPattern('admin/superadmin/currency'))); ?>">

            <a href="<?php echo e(route('admin.superadmin.currency.index')); ?>">

            <i class="fa fa-cog" aria-hidden="true"></i>

            <span><?php echo e(trans('Wallet')); ?></span>

            </a>

            </li>

            <li class="<?php echo e(active_class(Active::checkUriPattern('admin/superadmin/agents'))); ?>">

                <a href="<?php echo e(route('admin.superadmin.agents.index')); ?>">

                    <i class="fa fa-user-secret" aria-hidden="true"></i>

                    <span><?php echo e(trans('menus.backend.sidebar.agents')); ?></span>

                </a>

            </li>

            <li class="<?php echo e(active_class(Active::checkUriPattern('admin/superadmin/leads'))); ?>">

                <a href="<?php echo e(route('admin.superadmin.leads.index')); ?>">

                    <i class="fa fa-file" aria-hidden="true"></i>

                    <span><?php echo e(trans('Import File')); ?></span>

                </a>

            </li>
                <li class="<?php echo e(active_class(Active::checkUriPattern('admin/customers/leads'))); ?>">

                    <a href="<?php echo e(route('admin.customers.leads.index')); ?>">

                        <i class="fa fa-close" aria-hidden="true"></i>

                        <span><?php echo e(trans('Unverified Leads')); ?></span>

                    </a>

                </li>

                <li class="<?php echo e(active_class(Active::checkUriPattern('admin/customers/validleads'))); ?>">

                    <a href="<?php echo e(route('admin.customers.validleads.index')); ?>">

                        <i class="fa fa-check" aria-hidden="true"></i>

                        <span><?php echo e(trans('Verified Leads')); ?></span>

                    </a>

                </li>

                <li class="<?php echo e(active_class(Active::checkUriPattern('admin/superadmin/reports'))); ?>">

                    <a href="<?php echo e(route('admin.superadmin.reports.index')); ?>">

                        <i class="fa fa-circle-o"></i>

                        <span><?php echo e(trans('menus.backend.sidebar.report')); ?></span>

                    </a>

                </li>

            <?php endif; ?>

            <?php endif; ?>



            <?php if(!access()->hasRole('Administrator') && access()->hasRole('Caller')): ?>

                <li class="<?php echo e(active_class(Active::checkUriPattern('admin/dashboard'))); ?>">

                    <a href="<?php echo e(route('admin.dashboard')); ?>">

                        <i class="fa fa-dashboard"></i>

                        <span><?php echo e(trans('menus.backend.sidebar.dashboard')); ?></span>

                    </a>

                </li>

                <li class="<?php echo e(active_class(Active::checkUriPattern('admin/customers/agents'))); ?>">

                    <a href="<?php echo e(route('admin.customers.agents.index')); ?>">

                        <i class="fa fa-user-secret" aria-hidden="true"></i>

                        <span><?php echo e(trans('Agents')); ?></span>

                    </a>

                </li>

                <li class="<?php echo e(active_class(Active::checkUriPattern('admin/customers/leads'))); ?>">

                    <a href="<?php echo e(route('admin.customers.leads.index')); ?>">

                        <i class="fa fa-close" aria-hidden="true"></i>

                        <span><?php echo e(trans('Unverified Leads')); ?></span>

                    </a>

                </li>

                <li class="<?php echo e(active_class(Active::checkUriPattern('admin/customers/validleads'))); ?>">

                    <a href="<?php echo e(route('admin.customers.validleads.index')); ?>">

                        <i class="fa fa-check" aria-hidden="true"></i>

                        <span><?php echo e(trans('Verified Leads')); ?></span>

                    </a>

                </li>

                <li class="<?php echo e(active_class(Active::checkUriPattern('admin/customers/settings'))); ?>">

                    <a href="<?php echo e(route('admin.customers.settings.index')); ?>">

                        <i class="fa fa-cog" aria-hidden="true"></i>

                        <span><?php echo e(trans('Setting')); ?></span>

                    </a>

                </li>

            <?php endif; ?>

                <?php if(!access()->hasRole('Administrator') && access()->hasRole('Agency')): ?>
                    <li class="<?php echo e(active_class(Active::checkUriPattern('admin/dashboard'))); ?>">

                        <a href="<?php echo e(route('admin.dashboard')); ?>">

                            <i class="fa fa-dashboard"></i>

                            <span><?php echo e(trans('menus.backend.sidebar.dashboard')); ?></span>

                        </a>

                    </li>
                    <li class="<?php echo e(active_class(Active::checkUriPattern('admin/agency/agents'))); ?>">

                        <a href="<?php echo e(route('admin.agency.agents.index')); ?>">

                            <i class="fa fa-user-secret" aria-hidden="true"></i>

                            <span><?php echo e(trans('menus.backend.sidebar.agents')); ?></span>

                        </a>

                    </li>
                <?php endif; ?>

            <?php if(!access()->hasRole('Administrator') && access()->hasRole('Agent')): ?>

                <li class="<?php echo e(active_class(Active::checkUriPattern('admin/dashboard'))); ?>">

                    <a href="<?php echo e(route('admin.dashboard')); ?>">

                        <i class="fa fa-dashboard"></i>

                        <span><?php echo e(trans('menus.backend.sidebar.dashboard')); ?></span>

                    </a>

                </li>

                <li class="<?php echo e(active_class(Active::checkUriPattern('admin/agents/leads'))); ?>">

                    <a href="<?php echo e(route('admin.agents.leads.index')); ?>">

                        <i class="fa fa-list" aria-hidden="true"></i>

                        <span><?php echo e(trans('My Leads')); ?></span>

                    </a>

                </li>

                <?php endif; ?>

            <li class="<?php echo e(active_class(Active::checkUriPattern('admin/agents/leads'))); ?>">

                <a href="<?php echo e(URL::route('admin.superadmin.chat')); ?>"

                   onclick="window.open('<?php echo e(URL::route('admin.superadmin.chat')); ?>',

                           'newwindow',

                           'width=700,height=700');

                           return false;"

                ><i class="fa fa-comments-o" aria-hidden="true"></i> Chat Now</a>

            </li>

        </ul><!-- /.sidebar-menu -->

    </section><!-- /.sidebar -->



</aside>