<aside class="main-sidebar" style="color: #ffffff">
    <!-- sidebar: style can be found in sidebar.less -->
    <section class="sidebar" style="color:#ffffff;">
        <!-- Sidebar user panel -->
        <div class="user-panel">
            <div class="pull-left image">
                <i class="fa fa-user" style="font-size: 60px"></i>
            </div>
            <div class="pull-left info">
                <p>{{ Sentinel::getUser()->first_name }} {{ Sentinel::getUser()->last_name }}</p>
                <a href="#"><i class="fa fa-circle text-success"></i> Online</a>
            </div>
        </div>
        <!-- /.search form -->
        <!-- sidebar menu: : style can be found in sidebar.less -->
        <ul class="sidebar-menu" data-widget="tree">

            <li class="@if(Request::is('dashboard')) active @endif">
                <a href="{{ url('dashboard') }}">
                    <i class="fa fa-dashboard"></i> <span>{{trans_choice('general.dashboard',1)}}</span>
                </a>
            </li>
            @if(Sentinel::hasAccess('offices'))
                <li class="treeview @if(Request::is('office/*')) active @endif">
                    <a href="#">
                        <i class="fa fa-briefcase"></i> <spanxs>{{trans_choice('general.branch',2)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('offices.view'))
                            <li><a href="{{ url('office/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.view',1)}} {{trans_choice('general.branch',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('offices.create'))
                            <li><a href="{{ url('office/create') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.add',1)}} {{trans_choice('general.branch',1)}}
                                </a></li>
                        @endif
                    </ul>
                </li>
            @endif
            @if(Sentinel::hasAccess('clients'))
                <li class="treeview @if(Request::is('client/*')) active @endif
                @if(Request::is('group/*')) active @endif">
                    <a href="#">
                        <i class="fa fa-users"></i> <span>{{trans_choice('general.client',2)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('clients.view'))
                            <li><a href="{{ url('client/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.view',1)}} {{trans_choice('general.client',2)}}
                                    <span class="pull-right-container">
                                        <span class="label label-info pull-right">{{\App\Models\Loan::where('status','disbursed')->count() }}</span>
                                    </span>
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('clients.my_clients'))
                            <li><a href="{{ url('client/my_clients') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.my',1)}} {{trans_choice('general.client',2)}}
                                    <span class="pull-right-container">
                                    <?php
                                            $staff_id = Sentinel::getUser()->id;
                                            ?>
                                        <span class="label label-danger pull-right">{{\App\Models\Client::where('staff_id',$staff_id)->where('status','active')->count() }}</span>
                                    </span>
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('clients.branch_clients'))
                            <li><a href="{{ url('client/branch_clients') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.branch',1)}} {{trans_choice('general.client',2)}}
                                    <span class="pull-right-container">
                                    <?php
                                            $office_id = Sentinel::getUser()->office_id;
                                            ?>
                                        <span class="label label-success pull-right">{{\App\Models\Client::where('office_id',$office_id)->where('status','active')->count() }}</span>
                                    </span>
                                </a></li>
                        @endif

                        @if(Sentinel::hasAccess('clients.pending_approval'))
                            <li><a href="{{ url('client/pending_approval') }}"><i
                                            class="fa fa-circle-o"></i>{{trans_choice('general.client',2)}} {{trans_choice('general.pending',1)}} {{trans_choice('general.approval',2)}}
                                            <span class="pull-right-container">
                                            <span class="label label-info pull-right">{{\App\Models\Loan::where('status','pending')->count() }}</span>
                                    </span>
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('clients.closed'))
                            <li><a href="{{ url('client/closed') }}"><i
                                            class="fa fa-circle-o"></i>{{trans_choice('general.client',2)}} {{trans_choice('general.closed',1)}}
                                            <span class="pull-right-container">
                                            <span class="label label-info pull-right">{{\App\Models\Loan::where('status','closed')->count() }}</span>
                                    </span>
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('clients.closed'))
                            <li><a href="{{ url('client/clients_inactive') }}"><i
                                            class="fa fa-circle-o"></i>{{trans_choice('general.client',2)}} {{trans_choice('general.inactive',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('clients.closed'))
                            <li><a href="{{ url('client/clients_blacklisted') }}"><i
                                            class="fa fa-circle-o"></i>{{trans_choice('general.client',2)}} {{trans_choice('general.blacklisted',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('clients.view'))
                            <li><a href="{{ url('client/declined') }}"><i
                                            class="fa fa-circle-o"></i>{{trans_choice('general.client',2)}} {{trans_choice('general.declined',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('clients.create'))
                            <li><a href="{{ url('client/create') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.add',1)}} {{trans_choice('general.client',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('groups'))
                            <li><a href="{{ url('group/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.view',1)}}  {{trans_choice('general.group',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('groups.pending_approval'))
                            <li><a href="{{ url('group/pending_approval') }}"><i
                                            class="fa fa-circle-o"></i>{{trans_choice('general.group',2)}} {{trans_choice('general.pending',1)}} {{trans_choice('general.approval',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('groups.view'))
                            <li><a href="{{ url('group/groups_declined') }}"><i
                                            class="fa fa-circle-o"></i>{{trans_choice('general.group',2)}} {{trans_choice('general.declined',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('groups.view'))
                            <li><a href="{{ url('group/groups_closed') }}"><i
                                            class="fa fa-circle-o"></i>{{trans_choice('general.group',2)}} {{trans_choice('general.closed',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('groups.create'))
                            <li><a href="{{ url('group/create') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.add',1)}}  {{trans_choice('general.group',1)}}
                                </a></li>
                        @endif
                    </ul>
                </li>
            @endif
            @if(Sentinel::hasAccess('loans'))
                <li class="treeview @if(Request::is('loan/*')) active @endif">
                    <a href="#">
                        <i class="fa fa-money"></i> <span>{{trans_choice('general.loan',2)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('loans.view'))
                            <li><a href="{{ url('loan/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.active',2)}} {{trans_choice('general.loan',2)}}
                                    <span class="pull-right-container">
                                        <span class="label label-info pull-right">{{\App\Models\Loan::where('status','disbursed')->count() }}</span>
                                    </span>
                                </a></li>
                        @endif

                        @if(Sentinel::hasAccess('loans.my_loans'))
                            <li><a href="{{ url('loan/my_loans') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.my',1)}} {{trans_choice('general.active',2)}} {{trans_choice('general.loan',2)}}
                                    <span class="pull-right-container">
                                    <?php
                                            $loan_officer_id = Sentinel::getUser()->id;
                                            ?>
                                        <span class="label label-info pull-right">{{\App\Models\Loan::where('loan_officer_id',$loan_officer_id)->where('status','disbursed')->count() }}</span>
                                    </span>
                                </a></li>
                        @endif

                        @if(Sentinel::hasAccess('loans.branch_loans'))
                            <li><a href="{{ url('loan/branch_loans') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.branch',1)}} {{trans_choice('general.active',2)}} {{trans_choice('general.loan',2)}}
                                    <span class="pull-right-container">
                                    <?php
                                            $office_id = Sentinel::getUser()->office_id;
                                            ?>
                                        <span class="label label-info pull-right">{{\App\Models\Loan::where('office_id',$office_id)->where('status','disbursed')->count() }}</span>
                                    </span>
                                </a></li>
                        @endif

                        @if(Sentinel::hasAccess('loans.pending_approval'))
                            <li>
                                <a href="{{ url('loan/pending_approval') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.pending',1)}} {{trans_choice('general.approval',1)}}
                                    <span class="pull-right-container">
                                        <span class="label label-warning pull-right">{{\App\Models\Loan::where('status','pending')->count() }}</span>
                                    </span>
                                </a>
                            </li>
                        @endif
                        @if(Sentinel::hasAccess('loans.awaiting_disbursement'))
                            <li>
                                <a href="{{ url('loan/awaiting_disbursement') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.awaiting',1)}} {{trans_choice('general.disbursement',1)}}
                                    <span class="pull-right-container">
                                        <span class="label label-info pull-right">{{\App\Models\Loan::where('status','approved')->count() }}</span>
                                    </span>
                                </a>
                            </li>
                        @endif
                        @if(Sentinel::hasAccess('loans.declined'))
                            <li>
                                <a href="{{ url('loan/loans_declined') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.loan',2)}} {{trans_choice('general.declined',1)}}
                                    <span class="pull-right-container">
                                        <span class="label label-danger pull-right">{{\App\Models\Loan::where('status','declined')->count() }}</span>
                                    </span>
                                </a>
                            </li>
                        @endif
                        @if(Sentinel::hasAccess('loans.written_off'))
                            <li>
                                <a href="{{ url('loan/loans_written_off') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.loan',2)}} {{trans_choice('general.written_off',1)}}
                                    <span class="pull-right-container">
                                        <span class="label label-danger pull-right">{{\App\Models\Loan::where('status','written_off')->count() }}</span>
                                    </span>
                                </a>
                            </li>
                        @endif
                        @if(Sentinel::hasAccess('loans.closed'))
                            <li>
                                <a href="{{ url('loan/loans_closed') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.loan',2)}} {{trans_choice('general.closed',1)}}
                                    <span class="pull-right-container">
                                        <span class="label label-success pull-right">{{\App\Models\Loan::where('status','closed')->count() }}</span>
                                    </span>
                                </a>
                            </li>
                        @endif
                        @if(Sentinel::hasAccess('loans.rescheduled'))
                            <li>
                                <a href="{{ url('loan/loans_rescheduled') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.loan',2)}} {{trans_choice('general.rescheduled',1)}}
                                    <span class="pull-right-container">
                                        <span class="label label-success pull-right">{{\App\Models\Loan::where('status','rescheduled')->count() }}</span>
                                    </span>
                                </a>
                            </li>
                        @endif
                        @if(Sentinel::hasAccess('loans.create') && \App\Models\Setting::where('setting_key','allow_client_apply')->first()->setting_value==1)
                            <li>
                                <a href="{{ url('loan/application/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.loan',2)}} {{trans_choice('general.application',2)}}
                                    <span class="pull-right-container">
                                        <span class="label label-warning pull-right">{{\App\Models\LoanApplication::where('status','pending')->count() }}</span>
                                    </span>
                                </a>
                            </li>
                        @endif
                        @if(Sentinel::hasAccess('loans.create'))
                            <li><a href="{{ url('loan/create') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.add',2)}} {{trans_choice('general.loan',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('products.loan_products.view'))
                            <li><a href="{{ url('loan/product/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.manage',1)}} {{trans_choice('general.loan',1)}} {{trans_choice('general.product',2)}}
                                </a></li>
                        @endif

                        @if(Sentinel::hasAccess('loans.create'))
                            <li><a href="{{ url('loan/calculator/create') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.loan',1)}} {{trans_choice('general.calculator',1)}}
                                </a></li>
                        @endif
                    </ul>
                </li>
            @endif
            @if(Sentinel::hasAccess('accounting'))
                <li class="treeview @if(Request::is('accounting/*')) active @endif">
                    <a href="#">
                        <i class="fa fa-money"></i> <span>{{trans_choice('general.accounting',1)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('accounting.gl_accounts.view'))
                            <li><a href="{{ url('accounting/gl_account/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.chart_of_account',2)}}
                                </a></li>
                        @endif


                        @if(Sentinel::hasAccess('accounting.journals.view'))
                            <li><a href="{{ url('accounting/journal/delete_jv') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.delete',1)}} {{trans_choice('general.journal',2)}}
                                </a></li>
                        @endif

                        @if(Sentinel::hasAccess('accounting.journals.view'))
                            <li><a href="{{ url('accounting/journal/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.journal',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('accounting.journals.create'))
                            <li><a href="{{ url('accounting/journal/create') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.add',2)}} {{trans_choice('general.journal',1)}} {{trans_choice('general.entry',1)}}
                                </a></li>
                        @endif


                        @if(Sentinel::hasAccess('accounting.journals.reconciliation.view'))
                            <li><a href="{{ url('accounting/reconciliation/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.reconciliation',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('accounting.period.view'))
                            <li><a href="{{ url('accounting/period/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.close',1)}} {{trans_choice('general.period',2)}}
                                </a></li>
                        @endif
                    </ul>
                </li>
            @endif
            @if(Sentinel::hasAccess('savings'))
                <li class="treeview @if(Request::is('savings/*')) active @endif">
                    <a href="#">
                        <i class="fa fa-bank"></i> <span>{{trans_choice('general.savings',2)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('savings.view'))
                            <li><a href="{{ url('savings/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.active',2)}} {{trans_choice('general.savings',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('savings.pending_approval'))
                            <li><a href="{{ url('savings/pending_approval') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.pending',2)}} {{trans_choice('general.approval',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('savings.closed'))
                            <li><a href="{{ url('savings/savings_closed') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.closed',2)}} {{trans_choice('general.savings',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('savings.create'))
                            <li><a href="{{ url('savings/create') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.add',2)}} {{trans_choice('general.savings',2)}} {{trans_choice('general.account',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('products.savings_products.view'))
                            <li><a href="{{ url('savings/product/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.manage',2)}} {{trans_choice('general.savings',2)}} {{trans_choice('general.product',2)}}
                                </a></li>
                        @endif

                    </ul>
                </li>
            @endif
            @if(Sentinel::hasAccess('reports'))
                <li class="treeview @if(Request::is('report/*')) active @endif">
                    <a href="#">
                        <i class="fa fa-bar-chart"></i> <span>{{trans_choice('general.report',2)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('reports.client_reports'))
                            <li><a href="{{ url('report/client_report') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.client',1)}} {{trans_choice('general.report',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('reports.loan_reports'))
                            <li><a href="{{ url('report/loan_report') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.loan',1)}} {{trans_choice('general.report',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('reports.financial_reports'))
                            <li><a href="{{ url('report/financial_report') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.financial',1)}} {{trans_choice('general.report',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('reports.company_reports'))
                            <li class="hidden"><a href="{{ url('report/company_report') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.organisation',1)}} {{trans_choice('general.report',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('reports.savings_reports'))
                            <li><a href="{{ url('report/savings_report') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.savings',2)}} {{trans_choice('general.report',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('reports.reports_scheduler.view'))
                            <li class="hidden"><a href="{{ url('report/report_scheduler/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.report',1)}} {{trans_choice('general.scheduler',1)}}
                                </a></li>
                        @endif

                    </ul>
                </li>
            @endif





            @if(Sentinel::hasAccess('communication'))
                <li class="treeview @if(Request::is('communication/*')) active @endif">
                    <a href="#">
                        <i class="fa fa-envelope"></i> <span>{{trans_choice('general.communication',2)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('communication.view'))
                            <li><a href="{{ url('communication/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.view',1)}} {{trans_choice('general.campaign',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('communication.create'))
                            <li><a href="{{ url('communication/create') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.create',1)}} {{trans_choice('general.campaign',1)}}
                                </a></li>
                        @endif
                    </ul>
                </li>
            @endif
            @if(Sentinel::hasAccess('assets'))
                <li class="treeview @if(Request::is('asset/*')) active @endif">
                    <a href="#">
                        <i class="fa fa-building"></i> <span>{{trans_choice('general.asset',2)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('assets.view'))
                            <li><a href="{{ url('asset/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.view',2)}} {{trans_choice('general.asset',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('assets.create'))
                            <li><a href="{{ url('asset/create') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.add',2)}} {{trans_choice('general.asset',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('assets.types.view'))
                            <li><a href="{{ url('asset/type/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.manage',1)}} {{trans_choice('general.asset',1)}} {{trans_choice('general.type',2)}}
                                </a></li>
                        @endif
                    </ul>
                </li>
            @endif
            @if(Sentinel::hasAccess('expenses'))
                <li class="treeview @if(Request::is('expense/*')) active @endif">
                    <a href="#">
                        <i class="fa fa-share"></i> <span>{{trans_choice('general.expense',2)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('expenses.view'))
                            <li><a href="{{ url('expense/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.view',1)}} {{trans_choice('general.expense',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('expenses.create'))
                            <li><a href="{{ url('expense/create') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.add',2)}} {{trans_choice('general.expense',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('expenses.types.view'))
                            <li><a href="{{ url('expense/type/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.manage',2)}} {{trans_choice('general.expense',1)}} {{trans_choice('general.type',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('expenses.budget.view'))
                            <li><a href="{{ url('expense/budget/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.manage',2)}} {{trans_choice('general.budget',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('expenses.budget.view'))
                            <li><a href="{{ url('expense/budget/report') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.budget',1)}} {{trans_choice('general.report',2)}}
                                </a></li>
                        @endif
                    </ul>
                </li>
            @endif
            @if(Sentinel::hasAccess('other_income'))
                <li class="treeview @if(Request::is('other_income/*')) active @endif">
                    <a href="#">
                        <i class="fa fa-plus"></i> <span>{{trans_choice('general.other_income',2)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('other_income.view'))
                            <li><a href="{{ url('other_income/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.view',2)}} {{trans_choice('general.other_income',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('other_income.create'))
                            <li><a href="{{ url('other_income/create') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.add',2)}} {{trans_choice('general.other_income',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('other_income.create'))
                            <li><a href="{{ url('other_income/type/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.manage',2)}} {{trans_choice('general.other_income',1)}} {{trans_choice('general.type',2)}}
                                </a></li>
                        @endif
                    </ul>
                </li>
            @endif
            @if(Sentinel::hasAccess('payroll'))
                <li class="treeview @if(Request::is('payroll/*')) active @endif">
                    <a href="#">
                        <i class="fa fa-paypal"></i> <span>{{trans_choice('general.payroll',1)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('payroll.view'))
                            <li><a href="{{ url('payroll/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.view',2)}} {{trans_choice('general.payroll',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('payroll.create'))
                            <li><a href="{{ url('payroll/create') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.add',1)}} {{trans_choice('general.payroll',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('payroll.update'))
                            <li><a href="{{ url('payroll/template') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.manage',1)}} {{trans_choice('general.payroll',1)}} {{trans_choice('general.template',2)}}
                                </a></li>
                        @endif
                    </ul>
                </li>
            @endif
            @if(Sentinel::hasAccess('custom_fields'))
                <li class="treeview @if(Request::is('custom_field/*')) active @endif">
                    <a href="#">
                        <i class="fa fa-list"></i> <span>{{trans_choice('general.custom_field',2)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('custom_fields.view'))
                            <li><a href="{{ url('custom_field/data') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.view',2)}} {{trans_choice('general.custom_field',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('custom_fields.create'))
                            <li><a href="{{ url('custom_field/create') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.add',2)}} {{trans_choice('general.custom_field',1)}}
                                </a></li>
                        @endif
                    </ul>
                </li>
            @endif
            @if(Sentinel::hasAccess('users'))
                <li class="treeview @if(Request::is('user/*')) active @endif">
                    <a href="{{ url('user/data') }}">
                        <i class="fa fa-users"></i> <span>{{trans_choice('general.user',2)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('users.view'))
                            <li><a href="{{ url('user/data') }}">
                                    <i class="fa fa-circle-o"></i>
                                    <span>{{trans_choice('general.view',2)}} {{trans_choice('general.user',2)}}</span>
                                </a></li>
                        @endif

                        @if(Sentinel::hasAccess('users.view'))
                            <li><a href="{{ url('user/client_users/data') }}">
                                    <i class="fa fa-circle-o"></i>
                                    <span>{{trans_choice('general.view',2)}} {{trans_choice('general.client_users',2)}}</span>
                                </a></li>
                        @endif



                        @if(Sentinel::hasAccess('users.roles.view'))
                            <li><a href="{{ url('user/role/data') }}"><i
                                            class="fa fa-circle-o"></i>{{trans_choice('general.manage',2)}} {{trans_choice('general.role',2)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('users.create'))
                            <li><a href="{{ url('user/create') }}"><i
                                            class="fa fa-circle-o"></i>{{trans_choice('general.add',2)}} {{trans_choice('general.user',1)}}
                                </a></li>
                        @endif
                    </ul>
                </li>
            @endif
            @if(Sentinel::hasAccess('audit_trail'))
                <li class="@if(Request::is('audit_trail/*')) active @endif">
                    <a href="{{ url('audit_trail/data') }}">
                        <i class="fa fa-area-chart"></i> <span>{{trans_choice('general.audit_trail',2)}}</span>
                    </a>
                </li>
            @endif
            @if(Sentinel::hasAccess('settings'))
                <li class="treeview @if(Request::is('setting/*')) active @endif">
                    <a href="#">
                        <i class="fa fa-cog"></i> <span>{{trans_choice('general.setting',2)}}</span>
                        <span class="pull-right-container">
              <i class="fa fa-angle-left pull-right"></i>
            </span>
                    </a>
                    <ul class="treeview-menu">
                        @if(Sentinel::hasAccess('settings.general.view'))
                            <li><a href="{{ url('setting/general') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.general',1)}}
                                </a></li>
                        @endif
                        @if(Sentinel::hasAccess('settings.organisation.view'))
                            <li><a href="{{ url('setting/organisation') }}"><i
                                            class="fa fa-circle-o"></i> {{trans_choice('general.organisation',1)}}
                                </a></li>
                        @endif
                    </ul>
                </li>
            @endif
        </ul>
    </section>
    <!-- /.sidebar -->
</aside>
