@if (has_feature('contacts_limit'))
    <li>

        <a href="javascript: void(0);"><i class="ti-id-badge"></i><span>{{ _lang('Customers') }}</span><span
                class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

        <ul class="nav-second-level" aria-expanded="false">

            <li class="nav-item"><a class="nav-link" href="{{ url('contacts') }}">{{ _lang('Contacts List') }}</a></li>

            <li class="nav-item"><a class="nav-link" href="{{ url('contacts/create') }}">{{ _lang('Add New') }}</a></li>

            <!--		<li class="nav-item"><a class="nav-link" href="{{ url('contact_groups') }}">{{ _lang('Contact Group') }}</a></li>-->

            <li class="nav-item"><a class="nav-link"
                    href="{{ url('sale/customer_reports') }}">{{ _lang('Customer Reports') }}</a>

        </ul>

    </li>

    <!--<li>

 <a href="javascript: void(0);"><i class="ti-id-badge"></i><span>{{ _lang('Customers Service') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

 <ul class="nav-second-level" aria-expanded="false">

  <li class="nav-item"><a class="nav-link" href="{{ url('assign_service_contact_list') }}">{{ _lang('List') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('assign_service_contact') }}">{{ _lang('Add New') }}</a></li>
  
  <li class="nav-item"><a class="nav-link" href="{{ url('service_renewals') }}">{{ _lang('Service Renewals') }}</a></li>

 </ul>

</li>-->
@endif



@if (has_feature('project_management_module'))
    {{-- <li> --}}

    {{--	<a href="javascript: void(0);"><i class="fas fa-tty"></i><span>{{ _lang('Leads') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a> --}}

    {{--	<ul class="nav-second-level" aria-expanded="false"> --}}
    {{--        <li class="nav-item"><a class="nav-link" href="{{ route('leads.index') }}">{{ _lang('Leads List') }}</a></li> --}}
    {{--		<li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/total_converted') }}">{{ 'Total Materialized' }}</a></li> --}}
    {{--		<li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/today_assigned') }}">{{ _lang('Today assigned leads') }}</a></li> --}}
    {{--		<li class="nav-item"><a class="nav-link" href="{{ url('leads/calculate') }}">{{ 'Calculate Lead' }}</a></li> --}}
    {{--		<li class="nav-item"> --}}

    {{--        	<a href="javascript: void(0);"></i><span>{{ _lang('Contact') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a> --}}
    {{--        --}}
    {{--        	<ul class="nav-second-level" aria-expanded="false"> --}}
    {{--        --}}
    {{--        		<li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/contact') }}">{{ _lang('Todays contact') }}</a></li> --}}
    {{--        		<li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/contact/month') }}">{{ 'Total Contacts' }}</a></li> --}}
    {{--        --}}
    {{--        	</ul> --}}
    {{--        --}}
    {{--        </li> --}}
    {{--        --}}
    {{--        <li class="nav-item"> --}}

    {{--        	<a href="javascript: void(0);"><span>{{ _lang('In Discussion') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a> --}}
    {{--        --}}
    {{--        	<ul class="nav-second-level" aria-expanded="false"> --}}
    {{--        --}}
    {{--        		<li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/indiscussion') }}">{{ 'Today In Discussion' }}</a></li> --}}
    {{--		        <li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/indiscussion/month') }}">{{ 'Total In Discussion' }}</a></li> --}}
    {{--        --}}
    {{--        	</ul> --}}
    {{--        --}}
    {{--        </li> --}}
    {{--        --}}
    {{--        <li class="nav-item"> --}}

    {{--        	<a href="javascript: void(0);"><span>{{ _lang('intro-Shared') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a> --}}
    {{--        --}}
    {{--        	<ul class="nav-second-level" aria-expanded="false"> --}}
    {{--        --}}
    {{--        		<li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/intro_shared') }}">{{ 'Today intro-Shared' }}</a></li> --}}
    {{--		        <li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/intro_shared/month') }}">{{ 'Total intro-Shared' }}</a></li> --}}
    {{--        --}}
    {{--        	</ul> --}}
    {{--        --}}
    {{--        </li> --}}
    {{--        --}}
    {{--        <li class="nav-item"> --}}

    {{--        	<a href="javascript: void(0);"><span>{{ _lang('FollowUp') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a> --}}
    {{--        --}}
    {{--        	<ul class="nav-second-level" aria-expanded="false"> --}}
    {{--        --}}
    {{--        		<li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/followup') }}">{{ 'Today FollowUp' }}</a></li> --}}
    {{--		        <li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/followup/month') }}">{{ 'Total FollowUp' }}</a></li> --}}
    {{--        --}}
    {{--        	</ul> --}}
    {{--        --}}
    {{--        </li> --}}
    {{--        --}}
    {{--        <li class="nav-item"> --}}

    {{--        	<a href="javascript: void(0);"><span>{{ _lang('Hot Clients') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a> --}}
    {{--        --}}
    {{--        	<ul class="nav-second-level" aria-expanded="false"> --}}
    {{--        --}}
    {{--        		<li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/hot_clients') }}">{{ 'Today Hot Clients' }}</a></li> --}}
    {{--		        <li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/hot_clients/month') }}">{{ 'Total Hot Clients' }}</a></li> --}}
    {{--        --}}
    {{--        	</ul> --}}
    {{--        --}}
    {{--        </li> --}}
    {{--        --}}
    {{--        <li class="nav-item"> --}}

    {{--        	<a href="javascript: void(0);"><span>{{ _lang('Dead Parties') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a> --}}
    {{--        --}}
    {{--        	<ul class="nav-second-level" aria-expanded="false"> --}}
    {{--        --}}
    {{--        		<li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/dead') }}">{{ 'Today Marked Dead Parties' }}</a></li> --}}
    {{--		        <li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/dead/month') }}">{{ 'Total Marked Dead Parties' }}</a></li> --}}
    {{--        --}}
    {{--        	</ul> --}}
    {{--        --}}
    {{--        </li> --}}
    {{--        --}}
    {{--        <li class="nav-item"> --}}

    {{--        	<a href="javascript: void(0);"><span>{{ _lang('Not Interested') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a> --}}
    {{--        --}}
    {{--        	<ul class="nav-second-level" aria-expanded="false"> --}}
    {{--        --}}
    {{--        		<li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/not_interested') }}">{{ 'Today Marked Not Interested Parties' }}</a></li> --}}
    {{--		        <li class="nav-item"><a class="nav-link" href="{{ url('leads/addon/not_interested/month') }}">{{ 'Total Marked Not Interested Parties' }}</a></li> --}}
    {{--        --}}
    {{--        	</ul> --}}
    {{--        --}}
    {{--        </li> --}}

    {{--		<!-- <li class="nav-item"><a class="nav-link" href="{{ url('leads/create') }}">{{ 'Deactivated User Leads' }}</a></li> -->	--}}

    {{--	</ul> --}}

    {{-- </li> --}}



    <li class="d-none">

        <a href="{{ route('projects.index') }}"><i class="ti-briefcase"></i><span>{{ _lang('Projects') }}</span></a>

    </li>



    <li class="d-none">

        <a href="{{ route('tasks.index') }}"><i class="ti-check-box"></i><span>{{ _lang('Tasks') }}</span></a>

    </li>
    <li>

        <!--	<a href="{{ route('customer.index') }}"><i class="ti-check-box"></i><span>{{ _lang('Customer List') }}</span></a>-->

    </li>
@endif









<!--<li>

 <a href="javascript: void(0);"><i class="ti-agenda"></i><span>{{ _lang('Service') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

 <ul class="nav-second-level" aria-expanded="false">

  <li class="nav-item"><a class="nav-link" href="{{ url('services/create') }}">{{ _lang('Add New') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('services') }}">{{ _lang('Service List') }}</a></li>

 </ul>

</li>-->

<!-- <li>

 <a href="javascript: void(0);"><i class="ti-shopping-cart"></i><span>{{ _lang('Products') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

 <ul class="nav-second-level" aria-expanded="false">

  <li class="nav-item"><a class="nav-link" href="{{ url('products/create') }}">{{ _lang('Add New') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('products') }}">{{ _lang('Product List') }}</a></li>

 </ul>

</li>

<li>

 <a href="javascript: void(0);"><i class="ti-truck"></i><span>{{ _lang('Supplier') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

 <ul class="nav-second-level" aria-expanded="false">

  <li class="nav-item"><a class="nav-link" href="{{ url('suppliers/create') }}">{{ _lang('Add New') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('suppliers') }}">{{ _lang('Supplier List') }}</a></li>

 </ul>

</li> -->



@if (has_feature('inventory_module'))
    <!-- <li>

 <a href="javascript: void(0);"><i class="ti-bag"></i><span>{{ _lang('Purchase') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

 <ul class="nav-second-level" aria-expanded="false">

  <li class="nav-item"><a class="nav-link" href="{{ url('purchase_orders') }}">{{ _lang('Purchase Orders') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('purchase_orders/create') }}">{{ _lang('Create Purchase Order') }}</a></li>

 </ul>

</li>



<li>

 <a href="javascript: void(0);"><i class="ti-back-left"></i><span>{{ _lang('Return') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

 <ul class="nav-second-level" aria-expanded="false">

  <li class="nav-item"><a class="nav-link" href="{{ url('purchase_returns') }}">{{ _lang('Purchase Return') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('sales_returns') }}">{{ _lang('Sales Return') }}</a></li>

 </ul>

</li>
 -->
@endif





<!--<li>

 <a href="javascript: void(0);"><i class="ti-shopping-cart-full"></i><span>{{ _lang('Invoices') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

 <ul class="nav-second-level" aria-expanded="false">

  @if (has_feature('invoice_limit'))
<li class="nav-item"><a class="nav-link" href="{{ url('invoices/create') }}">{{ _lang('Add Invoice') }}</a></li>

   <li class="nav-item"><a class="nav-link" href="{{ url('invoices') }}">{{ _lang('Invoice List') }}</a></li>
@endif



  @if (has_feature('quotation_limit'))
<li class="nav-item"><a class="nav-link" href="{{ url('quotations/create') }}">{{ _lang('Add Quotation') }}</a></li>

   <li class="nav-item"><a class="nav-link" href="{{ url('quotations') }}">{{ _lang('Quotation List') }}</a></li>
@endif

 </ul>

</li>-->



<!-- <li>

 <a href="javascript: void(0);"><i class="ti-credit-card"></i><span>{{ _lang('Accounts') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

 <ul class="nav-second-level" aria-expanded="false">

  <li class="nav-item"><a class="nav-link" href="{{ url('accounts') }}">{{ _lang('List Account') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('accounts/create') }}">{{ _lang('Add New Account') }}</a></li>

 </ul>

</li>-->





<!--<li>

 <a href="javascript: void(0);"><i class="ti-receipt"></i><span>{{ _lang('Transactions') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

 <ul class="nav-second-level" aria-expanded="false">

  <li class="nav-item"><a class="nav-link" href="{{ url('income') }}">{{ _lang('Income/Deposit') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('expense') }}">{{ _lang('Expense') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('transfer/create') }}">{{ _lang('Transfer') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('income/calendar') }}">{{ _lang('Income Calendar') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('expense/calendar') }}">{{ _lang('Expense Calendar') }}</a></li>

 </ul>

</li> -->



@if (has_feature('recurring_transaction'))
    <!-- <li>

 <a href="javascript: void(0);"><i class="ti-wallet"></i><span>{{ _lang('Recurring Transaction') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

 <ul class="nav-second-level" aria-expanded="false">

  <li class="nav-item"><a class="nav-link" href="{{ url('repeating_income/create') }}">{{ _lang('Add Repeating Income') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('repeating_income') }}">{{ _lang('Repeating Income List') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('repeating_expense/create') }}">{{ _lang('Add Repeating Expense') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('repeating_expense') }}">{{ _lang('Repeating Expense List') }}</a></li>

 </ul>

</li> -->
@endif



@if (get_option('live_chat') == 'enabled' && has_feature('live_chat'))
     <li>

       <a href="{{ url('live_chat') }}"><i class="far fa-comment"></i><span>{{ _lang('Messenger') }}</span><span class="chat-notification {{ unread_message_count() > 0 ? 'show' : 'hidden' }}">{{ unread_message_count() }}</span></a>

 </li> 
@endif



@if (has_feature('file_manager'))
    <!-- <li>

 <a href="{{ url('file_manager') }}"><i class="ti-folder"></i><span>{{ _lang('File Manager') }}</span></a>

</li> -->
@endif



@if (has_feature('staff_limit'))
    <li>

        <a href="javascript: void(0);"><i class="ti-user"></i><span>{{ _lang('Employees') }}</span><span
                class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

        <ul class="nav-second-level" aria-expanded="false">

            <li class="nav-item"><a class="nav-link" href="{{ url('staffs') }}">{{ _lang('All Employees') }}</a>
            </li>

            <li class="nav-item"><a class="nav-link" href="{{ url('staffs/create') }}">{{ _lang('Add New') }}</a>
            </li>

            <li class="nav-item"><a class="nav-link"
                    href="{{ route('roles.index') }}">{{ _lang('Emplyoee Roles') }}</a></li>

        </ul>

    </li>
@endif



<!--<li>

 <a href="javascript: void(0);"><i class="ti-bar-chart"></i><span>{{ _lang('Reports') }}</span><span class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

 <ul class="nav-second-level" aria-expanded="false">

  <li class="nav-item"><a class="nav-link" href="{{ url('reports/account_statement') }}">{{ _lang('Account Statement') }}</a></li>
  
  <!--<li class="nav-item"><a class="nav-link" href="{{ url('sale/sale_transcation') }}">{{ _lang('Subscription Payment') }}</a></li>-->

<!--<li class="nav-item"><a class="nav-link" href="{{ url('reports/leads') }}">{{ _lang('Leads') }}</a></li>
  
  <li class="nav-item"><a class="nav-link" href="{{ url('reports/day_wise_income') }}">{{ _lang('Detail Income Report') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('reports/date_wise_income') }}">{{ _lang('Date Wise Income') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('reports/day_wise_expense') }}">{{ _lang('Detail Expense Report') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('reports/date_wise_expense') }}">{{ _lang('Date Wise Expense') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('reports/transfer_report') }}">{{ _lang('Transfer Report') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('reports/income_vs_expense') }}">{{ _lang('Income VS Expense') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('reports/report_by_payer') }}">{{ _lang('Report By Payer') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('reports/report_by_payee') }}">{{ _lang('Report By Payee') }}</a></li>--

 </ul>

</li>-->



<li>

    <a href="javascript: void(0);"><i class="ti-settings"></i><span>{{ _lang('Settings') }}</span><span
            class="menu-arrow"><i class="mdi mdi-chevron-right"></i></span></a>

    <ul class="nav-second-level" aria-expanded="false">

        <li class="nav-item"><a class="nav-link"
                href="{{ url('company/general_settings') }}">{{ _lang('Company Settings') }}</a></li>

        <li class="nav-item"><a class="nav-link"
                href="{{ url('company_email_template') }}">{{ _lang('Email Template') }}</a></li>

        <li class="nav-item"><a class="nav-link"
                href="{{ url('permission/control') }}">{{ _lang('Access Control') }}</a></li>

        <!-- <li class="nav-item"><a class="nav-link" href="{{ url('chart_of_accounts') }}">{{ _lang('Income & Expense Types') }}</a></li> -->

        @if (has_feature('project_management_module'))
            <li class="nav-item"><a class="nav-link"
                    href="{{ url('company/crm_settings') }}">{{ _lang('CRM Settings') }}</a></li>
        @endif

        <!-- <li class="nav-item"><a class="nav-link" href="{{ url('payment_methods') }}">{{ _lang('Payment Methods') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('product_units') }}">{{ _lang('Product Unit') }}</a></li>

  <li class="nav-item"><a class="nav-link" href="{{ url('taxs') }}">{{ _lang('Tax Settings') }}</a></li> -->

    </ul>

</li>
