@can('dashboard.view')
    <li class="nk-menu-item has-sub">
        <a href="{{ route('dashboard') }}" class="nk-menu-link">
            <span class="nk-menu-icon"><em class="icon ni ni-dashboard-fill"></em></span>
            <span class="nk-menu-text">@lang('sidebar.dashboards.button')</span>
        </a>
    </li>
@endcan

@canany(['user.view', 'role.view', 'dealers.view', 'dealers.approve', 'dealers.verify_email'])
    <li class="nk-menu-item has-sub">
        <a href="javascript:void(0);" class="nk-menu-link nk-menu-toggle">
            <span class="nk-menu-icon"><em class="icon ni ni-users-fill"></em></span>
            <span class="nk-menu-text">@lang('sidebar.user_and_roles.dropdown')</span>
        </a>
        <ul class="nk-menu-sub">
            @can('user.view')
                <li class="nk-menu-item">
                    <a href="{{ route('users.index') }}" class="nk-menu-link">
                        <span class="nk-menu-text">@lang('sidebar.user_and_roles.users_button')</span>
                    </a>
                </li>
            @endcan
            @can('role.view')
                <li class="nk-menu-item">
                    <a href="{{ route('roles.index') }}" class="nk-menu-link">
                        <span class="nk-menu-text">@lang('sidebar.user_and_roles.roles_button')</span>
                    </a>
                </li>
            @endcan
            @can('dealers.view')
                <li class="nk-menu-item">
                    <a href="{{ route('dealers.index') }}" class="nk-menu-link">
                        <span class="nk-menu-text">@lang('sidebar.user_and_roles.dealers_button')</span>
                    </a>
                </li>
            @endcan
             @can('admin.buyer.view')
                <li class="nk-menu-item">
                    <a href="{{ route('buyers.index') }}" class="nk-menu-link">
                        <span class="nk-menu-text">@lang('sidebar.user_and_roles.buyers_button')</span>
                    </a>
                </li>
            @endcan
        </ul>
    </li>
@endcanany

@can('documentations.view')
    <li class="nk-menu-item has-sub">
        <a href="{{ route('documentations.index') }}" class="nk-menu-link">
            <span class="nk-menu-icon"><em class="icon ni ni-help"></em></span>
            <span class="nk-menu-text">@lang('sidebar.document_and_tickets.documentations_button')</span>
        </a>
    </li>
@endcan

@can('taxes.view')
    <li class="nk-menu-item has-sub">
        <a href="{{ route('taxes.index') }}" class="nk-menu-link">
            <span class="nk-menu-icon"><em class="icon ni ni-wallet"></em></span>
            <span class="nk-menu-text">@lang('sidebar.taxes.documentations_button')</span>
        </a>
    </li>
@endcan

@can('dex-user.view')
    <li class="nk-menu-item has-sub">
        <a href="{{ route('dex-users.index') }}" class="nk-menu-link">
            <span class="nk-menu-icon"><em class="icon ni ni-puzzle"></em></span>
            <span class="nk-menu-text">@lang('sidebar.dexUser.documentations_button')</span>
        </a>
    </li>
@endcan

@can('dx-customer.view')
    <li class="nk-menu-item has-sub">
        <a href="{{ route('dx-customers.index') }}" class="nk-menu-link">
            <span class="nk-menu-icon"><em class="icon ni ni-puzzle"></em></span>
            <span class="nk-menu-text">@lang('sidebar.dx-customers.documentations_button')</span>
        </a>
    </li>
@endcan

@can('listing.view')
    <li class="nk-menu-item has-sub">
        <a href="{{ route('admin.listings.index') }}" class="nk-menu-link">
            <span class="nk-menu-icon"><em class="icon ni ni-list"></em></span>
            <span class="nk-menu-text">Listings</span>
        </a>
    </li>
@endcan

@can('term.view')
    <li class="nk-menu-item has-sub">
        <a href="{{ route('terms.index') }}" class="nk-menu-link">
            <span class="nk-menu-icon"><em class="icon ni ni-notice"></em></span>
            <span class="nk-menu-text">@lang('sidebar.terms_and_conditions.terms_button')</span>
        </a>
    </li>
@endcan

@can('activity_log.view')
    <li class="nk-menu-item has-sub">
        <a href="{{ route('activity-logs.index') }}" class="nk-menu-link">
            <span class="nk-menu-icon"><em class="icon ni ni-user-list-fill"></em></span>
            <span class="nk-menu-text">@lang('sidebar.activity_logs.activity_logs_button')</span>
        </a>
    </li>
@endcan

@can('setting.view')
    <li class="nk-menu-item has-sub">
        <a href="{{ route('settings.index') }}" class="nk-menu-link">
            <span class="nk-menu-icon"><em class="icon ni ni-setting"></em></span>
            <span class="nk-menu-text">@lang('sidebar.settings.button')</span>
        </a>
    </li>
@endcan
