<aside class="app-sidebar sticky" id="sidebar">
    <!-- Start::main-sidebar-header -->
    <div class="main-sidebar-header">
        <a href="{{route('dashboard')}}" class="header-logo">
            <img src="{{asset('images/app/site_logo.png')}}" alt="logo" class="desktop-logo">
            <img src="{{asset('images/app/site_logo.png')}}" alt="logo" class="toggle-dark">
            <img src="{{asset('images/app/site_logo.png')}}" alt="logo" class="desktop-dark">
            <img src="{{asset('images/app/site_logo.png')}}" alt="logo" class="toggle-logo">
            <img src="{{asset('images/app/site_logo.png')}}" alt="logo" class="toggle-white">
            <img src="{{asset('images/app/site_logo.png')}}" alt="logo" class="desktop-white">
        </a>
    </div>
    <!-- End::main-sidebar-header -->

    <!-- Start::main-sidebar -->
    <div class="main-sidebar" id="sidebar-scroll">

        <!-- Start::nav -->
        <nav class="main-menu-container nav nav-pills flex-column sub-open">
            <div class="slide-left" id="slide-left">
            </div>
            <ul class="main-menu">
                <li class="slide">
                    <a href="{{route('dashboard')}}" class="side-menu__item {{ !empty($page) && $page == 'dashboard' ? 'active' : '' }}">
                        <i class="bi bi-speedometer2 w-6 h-6 side-menu__icon"></i>
                        <span class="side-menu__label">{{__('app.dashboard')}}</span>
                    </a>
                </li>
                @if(\App\Http\Helper\Helper::checkPermissions('add_new_list', false) || \App\Http\Helper\Helper::checkPermissions('lists_manage', false) || \App\Http\Helper\Helper::checkPermissions('bulk_update', false) || \App\Http\Helper\Helper::checkPermissions('suppression', false) || \App\Http\Helper\Helper::checkPermissions('custom_fields', false))
                <li class="slide has-sub {{!empty($page) &&  (strpos($page, 'lists_') !== false) ? 'open' : '' }}">
                    <a href="javascript:void(0);" class="side-menu__item {{!empty($page) &&  (strpos($page, 'lists_') !== false) ? 'active' : '' }}">
                        <i class="bi bi-list-task w-6 h-6 side-menu__icon"></i>
                        <span class="side-menu__label">{{__('app.lists')}}</span>
                        <i class="ri-arrow-down-s-line side-menu__angle"></i>
                    </a>
                    <ul class="slide-menu child1">
                        <li class="slide side-menu__label1">
                            <a href="javascript:void(0)">{{__('app.lists')}}</a>
                        </li>
                        @if(\App\Http\Helper\Helper::checkPermissions('add_new_list', false))
                        <li class="slide">
                            <a href="{{route('lists.create')}}" class="side-menu__item {{ !empty($page) && $page == 'lists_create' ? 'active' : '' }}">{{__('app.add_new_list')}}</a>
                        </li>
                        @endif
                        @if(\App\Http\Helper\Helper::checkPermissions('lists_manage', false))
                        <li class="slide">
                            <a href="{{route('lists.index')}}" class="side-menu__item {{ !empty($page) && $page == 'lists_manage' ? 'active' : '' }}">{{__('app.lists_manage')}}</a>
                        </li>
                        @endif
                        @if(\App\Http\Helper\Helper::checkPermissions('bulk_update', false))
                        <li class="slide">
                            <a href="javascript:;" onclick="viewModal('modal', '{{ route('bulk.update') }}')" class="side-menu__item">{{__('app.bulk_update')}}</a>
                        </li>
                        @endif                        
                        @if(\App\Http\Helper\Helper::checkPermissions('custom_fields', false))
                        <li class="slide">
                            <a href="{{route('custom_fields.index')}}" class="side-menu__item {{ !empty($page) && $page == 'lists_custom_fields' ? 'active' : '' }}">{{__('app.custom_fields')}}</a>
                        </li>
                        @endif
                        @if(\App\Http\Helper\Helper::checkPermissions('segmentation_list', false))
                        <li class="slide">
                            <a href="{{route('list_segmentations.index')}}" class="side-menu__item {{ !empty($page) && $page == 'lists_segmentations' ? 'active' : '' }}">{{__('app.segmentation_list')}}</a>
                        </li>
                        @endif
                        @if(\App\Http\Helper\Helper::checkPermissions('suppression', false))
                        <li class="slide">
                            <a href="{{route('suppressions.index')}}" class="side-menu__item {{ !empty($page) && $page == 'lists_suppression' ? 'active' : '' }}">{{__('app.suppression')}}</a>
                        </li>
                        @endif
                </ul>
            </li>
            @endif
            @if(\App\Http\Helper\Helper::checkPermissions('add_new_contact', false) || \App\Http\Helper\Helper::checkPermissions('contacts_manage', false) || \App\Http\Helper\Helper::checkPermissions('contacts_import', false))
            <li class="slide has-sub {{!empty($page) &&  (strpos($page, 'contacts_') !== false) ? 'open' : '' }}">
                <a href="javascript:void(0);" class="side-menu__item {{!empty($page) &&  (strpos($page, 'contacts_') !== false) ? 'active' : '' }}">
                    <i class="bi bi-people w-6 h-6 side-menu__icon"></i>
                    <span class="side-menu__label">{{__('app.contacts')}}</span>
                    <i class="ri-arrow-down-s-line side-menu__angle"></i>
                </a>
                <ul class="slide-menu child1">
                    <li class="slide side-menu__label1">
                        <a href="javascript:void(0)">{{__('app.contacts')}}</a>
                    </li>
                    @if(\App\Http\Helper\Helper::checkPermissions('add_new_contact', false))
                    <li class="slide">
                        <a href="{{route('contacts.create')}}" class="side-menu__item {{ !empty($page) && $page == 'contacts_create' ? 'active' : '' }}">{{__('app.add_new_contact')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('contacts_manage', false))
                    <li class="slide">
                        <a href="{{route('contacts.index')}}" class="side-menu__item {{ !empty($page) && $page == 'contacts_manage' ? 'active' : '' }}">{{__('app.contacts_manage')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('contacts_import', false))
                    <li class="slide">
                        <a href="{{ route('contacts.import') }}" class="side-menu__item {{ !empty($page) && $page == 'contacts_import' ? 'active' : '' }}">{{__('app.contacts_import')}}</a>
                    </li>
                    @endif
                </ul>
            </li>
            @endif
            @if(\App\Http\Helper\Helper::checkPermissions('add_new_campaign', false) || \App\Http\Helper\Helper::checkPermissions('campaigns_manage', false) || \App\Http\Helper\Helper::checkPermissions('campaigns_schedule', false) || \App\Http\Helper\Helper::checkPermissions('templates', false) || \App\Http\Helper\Helper::checkPermissions('spintags', false) || \App\Http\Helper\Helper::checkPermissions('mail_headers', false))
            <li class="slide has-sub {{!empty($page) &&  (strpos($page, 'campaigns_') !== false) ? 'open' : '' }}">
                <a href="javascript:void(0);" class="side-menu__item {{!empty($page) &&  (strpos($page, 'campaigns_') !== false) ? 'active' : '' }}">
                    <i class="bi bi-send w-6 h-6 side-menu__icon"></i>
                    <span class="side-menu__label">{{__('app.campaigns')}}</span>
                    <i class="ri-arrow-down-s-line side-menu__angle"></i>
                </a>
                <ul class="slide-menu child1">
                    <li class="slide side-menu__label1">
                        <a href="javascript:void(0)">{{__('app.campaigns')}}</a>
                    </li>
                    @if(\App\Http\Helper\Helper::checkPermissions('add_new_campaign', false))
                    <li class="slide">
                        <a href="{{route('broadcasts.create')}}" class="side-menu__item {{ !empty($page) && $page == 'campaigns_create' ? 'active' : '' }}">{{__('app.add_new_campaign')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('campaigns_manage', false))
                    <li class="slide">
                        <a href="{{route('broadcasts.index')}}" class="side-menu__item {{ !empty($page) && $page == 'campaigns_manage' ? 'active' : '' }}">{{__('app.campaigns_manage')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('campaigns_schedule', false))
                    <li class="slide">
                        <a href="{{route('schedule_campaigns.index')}}" class="side-menu__item {{ !empty($page) && $page == 'campaigns_schedule' ? 'active' : '' }}">{{__('app.campaigns_schedule')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('templates', false))
                    <li class="slide">
                        <a href="{{route('templates.index')}}" class="side-menu__item {{ !empty($page) && $page == 'campaigns_templates' ? 'active' : '' }}">{{__('app.templates')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('spintags', false))
                    <li class="slide">
                        <a href="{{route('spintags.index')}}" class="side-menu__item {{ !empty($page) && $page == 'campaigns_spintag' ? 'active' : '' }}">{{__('app.spintags')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('mail_headers', false))
                    <li class="slide">
                        <a href="{{route('broadcast.mail.headers')}}" class="side-menu__item {{ !empty($page) && $page == 'campaigns_mail_headers' ? 'active' : '' }}">{{__('app.mail_headers')}}</a>
                    </li>
                    @endif
                </ul>
            </li>
            @endif
            @if(\App\Http\Helper\Helper::checkPermissions('delivery_servers', false) || \App\Http\Helper\Helper::checkPermissions('bounce_servers', false) || \App\Http\Helper\Helper::checkPermissions('fbl_servers', false))
            <li class="slide has-sub {{!empty($page) &&  (strpos($page, '_servers') !== false) ? 'open' : '' }}">
                <a href="javascript:void(0);" class="side-menu__item {{!empty($page) &&  (strpos($page, '_servers') !== false) ? 'active' : '' }}">
                    <i class="bi bi-server w-6 h-6 side-menu__icon"></i>
                    <span class="side-menu__label">{{__('app.servers')}}</span>
                    <i class="ri-arrow-down-s-line side-menu__angle"></i>
                </a>
                <ul class="slide-menu child1">
                    <li class="slide side-menu__label1">
                        <a href="javascript:void(0)">{{__('app.servers')}}</a>
                    </li>
                    @if(\App\Http\Helper\Helper::checkPermissions('delivery_servers', false))
                    <li class="slide">
                        <a href="{{route('sending_servers.index')}}" class="side-menu__item {{ !empty($page) && $page == 'delivery_servers' ? 'active' : '' }}">{{__('app.delivery_servers')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('bounce_servers', false))
                    <li class="slide">
                        <a href="{{route('bounces.index')}}" class="side-menu__item {{ !empty($page) && $page == 'bounce_servers' ? 'active' : '' }}">{{__('app.bounce_servers')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('fbl_servers', false))
                    <li class="slide">
                        <a href="{{route('fbls.index')}}" class="side-menu__item {{ !empty($page) && $page == 'fbl_servers' ? 'active' : '' }}">{{__('app.fbl_servers')}}</a>
                    </li>
                    @endif
                </ul>
            </li>
            @endif
            @if(\App\Http\Helper\Helper::checkPermissions('sending_domains', false) || \App\Http\Helper\Helper::checkPermissions('tracking_domains', false))
            <li class="slide has-sub {{!empty($page) &&  (strpos($page, '_domains') !== false) ? 'open' : '' }}">
                <a href="javascript:void(0);" class="side-menu__item {{!empty($page) &&  (strpos($page, '_domains') !== false) ? 'active' : '' }}">
                    <i class="bi bi-globe w-6 h-6 side-menu__icon"></i>
                    <span class="side-menu__label">{{__('app.domains')}}</span>
                    <i class="ri-arrow-down-s-line side-menu__angle"></i>
                </a>
                <ul class="slide-menu child1">
                    <li class="slide side-menu__label1">
                        <a href="javascript:void(0)">{{__('app.domains')}}</a>
                    </li>
                    @if(\App\Http\Helper\Helper::checkPermissions('sending_domains', false))
                    <li class="slide">
                        <a href="{{route('sending_domains.index')}}" class="side-menu__item {{ !empty($page) && $page == 'sending_domains' ? 'active' : '' }}">{{__('app.sending_domains')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('tracking_domains', false))
                    <li class="slide">
                        <a href="{{route('tracking_domains.index')}}" class="side-menu__item {{ !empty($page) && $page == 'tracking_domains' ? 'active' : '' }}">{{__('app.tracking_domains')}}</a>
                    </li>
                    @endif
                </ul>
            </li>
            @endif
            @if(\App\Http\Helper\Helper::checkPermissions('contents_emails', false) || \App\Http\Helper\Helper::checkPermissions('contents_pages', false))
            <li class="slide has-sub {{!empty($page) &&  (strpos($page, 'contents_') !== false) ? 'open' : '' }}">
                <a href="javascript:void(0);" class="side-menu__item {{!empty($page) &&  (strpos($page, 'contents_') !== false) ? 'active' : '' }}">
                    <i class="bi bi-folder w-6 h-6 side-menu__icon"></i>
                    <span class="side-menu__label">{{__('app.contents')}}</span>
                    <i class="ri-arrow-down-s-line side-menu__angle"></i>
                </a>
                <ul class="slide-menu child1">
                    <li class="slide side-menu__label1">
                        <a href="javascript:void(0)">{{__('app.contents')}}</a>
                    </li>
                    @if(\App\Http\Helper\Helper::checkPermissions('contents_emails', false))
                    <li class="slide">
                        <a href="{{route('contents.index', ['type' => 'email'])}}" class="side-menu__item {{ !empty($page) && $page == 'contents_email' ? 'active' : '' }}">{{__('app.contents_emails')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('contents_pages', false))
                    <li class="slide">
                        <a href="{{route('contents.index', ['type' => 'page'])}}" class="side-menu__item {{ !empty($page) && $page == 'contents_page' ? 'active' : '' }}">{{__('app.contents_pages')}}</a>
                    </li>
                    @endif
                </ul>
            </li>
            @endif
            @if(\App\Http\Helper\Helper::checkPermissions('groups_grouplists', false) || \App\Http\Helper\Helper::checkPermissions('groups_groupcampaigns', false) || \App\Http\Helper\Helper::checkPermissions('groups_sending_groupservers', false) || \App\Http\Helper\Helper::checkPermissions('groups_sending_groupdomains', false) || \App\Http\Helper\Helper::checkPermissions('groups_groupsuppression', false))
            <li class="slide has-sub {{!empty($page) &&  (strpos($page, 'groups_') !== false) ? 'open' : '' }}">
                <a href="javascript:void(0);" class="side-menu__item {{!empty($page) &&  (strpos($page, 'groups_') !== false) ? 'active' : '' }}">
                    <i class="bi bi-diagram-3 w-6 h-6 side-menu__icon"></i>
                    <span class="side-menu__label">{{__('app.groups')}}</span>
                    <i class="ri-arrow-down-s-line side-menu__angle"></i>
                </a>
                <ul class="slide-menu child1">
                    <li class="slide side-menu__label1">
                        <a href="javascript:void(0)">{{__('app.groups')}}</a>
                    </li>
                    @if(\App\Http\Helper\Helper::checkPermissions('groups_grouplists', false))
                    <li class="slide">
                        <a href="{{route('groups.index', ['type' => config('custom.group_lists')])}}" class="side-menu__item {{ !empty($page) && $page == 'groups_grouplists' ? 'active' : '' }}">{{__('app.groups_lists')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('groups_campaigns', false))
                    <li class="slide">
                        <a href="{{route('groups.index', ['type' => config('custom.group_campaigns')])}}" class="side-menu__item {{ !empty($page) && $page == 'groups_groupcampaigns' ? 'active' : '' }}">{{__('app.groups_groupcampaigns')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('groups_sending_groupservers', false))
                    <li class="slide">
                        <a href="{{route('groups.index', ['type' => config('custom.group_sending_servers')])}}" class="side-menu__item {{ !empty($page) && $page == 'groups_sending_groupservers' ? 'active' : '' }}">{{__('app.deliver_servers')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('groups_sending_groupdomains', false))
                    <li class="slide">
                        <a href="{{route('groups.index', ['type' => config('custom.group_sending_domains')])}}" class="side-menu__item {{ !empty($page) && $page == 'groups_sending_groupdomains' ? 'active' : '' }}">{{__('app.sending_domains')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('groups_groupsuppression', false))
                    <li class="slide">
                        <a href="{{route('groups.index', ['type' => config('custom.group_suppression')])}}" class="side-menu__item {{ !empty($page) && $page == 'groups_groupsuppression' ? 'active' : '' }}">{{__('app.suppression')}}</a>
                    </li>
                    @endif
                </ul>
            </li>
            @endif
            @if(\App\Http\Helper\Helper::checkPermissions('analatics_campaigns', false))
            <li class="slide has-sub {{!empty($page) &&  (strpos($page, 'analatics_') !== false) ? 'open' : '' }}">
                <a href="javascript:void(0);" class="side-menu__item {{!empty($page) &&  (strpos($page, 'analatics_') !== false) ? 'active' : '' }}">
                    <i class="bi bi-graph-up-arrow w-6 h-6 side-menu__icon"></i>
                    <span class="side-menu__label">{{__('app.analatics')}}</span>
                    <i class="ri-arrow-down-s-line side-menu__angle"></i>
                </a>
                <ul class="slide-menu child1">
                    <li class="slide side-menu__label1">
                        <a href="javascript:void(0)">{{__('app.analatics')}}</a>
                    </li>
                    <li class="slide">
                        <a href="{{route('stats.campaigns.index')}}" class="side-menu__item {{ !empty($page) && $page == 'analatics_campaigns' ? 'active' : '' }}">{{__('app.campaigns')}}</a>
                    </li>
                </ul>
            </li>
            @endif
            @if(\App\Http\Helper\Helper::checkPermissions('users', false) || \App\Http\Helper\Helper::checkPermissions('roles', false))
            <li class="slide has-sub {{!empty($page) &&  (strpos($page, 'users_') !== false) ? 'open' : '' }}">
                <a href="javascript:void(0);" class="side-menu__item {{!empty($page) &&  (strpos($page, 'users_') !== false) ? 'active' : '' }}">
                    <i class="bi bi-people w-6 h-6 side-menu__icon"></i>
                    <span class="side-menu__label">{{__('app.user_management')}}</span>
                    <i class="ri-arrow-down-s-line side-menu__angle"></i>
                </a>
                <ul class="slide-menu child1">
                    <li class="slide side-menu__label1">
                        <a href="javascript:void(0)">{{__('app.user_management')}}</a>
                    </li>
                    @if(\App\Http\Helper\Helper::checkPermissions('users', false))
                    <li class="slide">
                        <a href="{{route('users.index')}}" class="side-menu__item {{ !empty($page) && $page == 'users_' ? 'active' : '' }}">{{__('app.users')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('roles', false))
                    <li class="slide">
                        <a href="{{route('roles.index', 't=1')}}" class="side-menu__item {{ !empty($page) && $page == 'users_roles' ? 'active' : '' }}">{{__('app.roles')}}</a>
                    </li>
                    @endif
                </ul>
            </li>
            @endif
            @if(\App\Http\Helper\Helper::checkPermissions('clients', false))
            <li class="slide has-sub {{!empty($page) &&  (strpos($page, 'clients_') !== false) ? 'open' : '' }}">
                <a href="javascript:void(0);" class="side-menu__item {{!empty($page) &&  (strpos($page, 'clients_') !== false) ? 'active' : '' }}">
                    <i class="bi bi-people w-6 h-6 side-menu__icon"></i>
                    <span class="side-menu__label">{{__('app.client_management')}}</span>
                    <i class="ri-arrow-down-s-line side-menu__angle"></i>
                </a>
                <ul class="slide-menu child1">
                    <li class="slide side-menu__label1">
                        <a href="javascript:void(0)">{{__('app.client_management')}}</a>
                    </li>
                    @if(\App\Http\Helper\Helper::checkPermissions('clients', false))
                    <li class="slide">
                        <a href="{{route('clients.index')}}" class="side-menu__item {{ !empty($page) && $page == 'clients_' ? 'active' : '' }}">{{__('app.clients')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('clients_roles', false))
                    <li class="slide">
                        <a href="{{route('roles.index', 't=2')}}" class="side-menu__item {{ !empty($page) && $page == 'clients_roles' ? 'active' : '' }}">{{__('app.roles')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('clients_packages', false))
                    <li class="slide">
                        <a href="{{route('packages.index')}}" class="side-menu__item {{ !empty($page) && $page == 'clients_packages' ? 'active' : '' }}">{{__('app.packages')}}</a>
                    </li>
                    @endif
                </ul>
            </li>
            @endif
            @if(\App\Http\Helper\Helper::checkPermissions('settings_applications', false))
            <li class="slide has-sub {{!empty($page) &&  (strpos($page, 'settings_') !== false) ? 'open' : '' }}">
                <a href="javascript:void(0);" class="side-menu__item {{!empty($page) &&  (strpos($page, 'settings_') !== false) ? 'active' : '' }}">
                    <i class="bi bi-gear w-6 h-6 side-menu__icon"></i>
                    <span class="side-menu__label">{{__('app.settings')}}</span>
                    <i class="ri-arrow-down-s-line side-menu__angle"></i>
                </a>
                <ul class="slide-menu child1">
                    <li class="slide side-menu__label1">
                        <a href="javascript:void(0)">{{__('app.settings')}}</a>
                    </li>
                    <li class="slide">
                        <a href="{{route('settings')}}" class="side-menu__item {{ !empty($page) && $page == 'settings_application' ? 'active' : '' }}">{{__('app.application')}}</a>
                    </li>
                    <li class="slide">
                        <a href="{{route('api')}}" class="side-menu__item {{ !empty($page) && $page == 'settings_api' ? 'active' : '' }}">{{__('app.api')}}</a>
                    </li>
                </ul>
            </li>
            @endif

            @if(\App\Http\Helper\Helper::checkPermissions('system_bounced', false) || \App\Http\Helper\Helper::checkPermissions('activity_logs', false) || \App\Http\Helper\Helper::checkPermissions('error_logs', false) || \App\Http\Helper\Helper::checkPermissions('php_info', false))
            <li class="slide has-sub {{!empty($page) &&  (strpos($page, 'miscellaneous_') !== false) ? 'open' : '' }}">
                <a href="javascript:void(0);" class="side-menu__item {{!empty($page) &&  (strpos($page, 'miscellaneous_') !== false) ? 'active' : '' }}">
                    <i class="bi bi-bookmark w-6 h-6 side-menu__icon"></i>
                    <span class="side-menu__label">{{__('app.miscellaneous')}}</span>
                    <i class="ri-arrow-down-s-line side-menu__angle"></i>
                </a>
                <ul class="slide-menu child1">
                    <li class="slide side-menu__label1">
                        <a href="javascript:void(0)">{{__('app.miscellaneous')}}</a>
                    </li>
                    @if(\App\Http\Helper\Helper::checkPermissions('system_bounced', false))
                    <li class="slide">
                        <a href="{{route('system.bounced')}}" class="side-menu__item {{ !empty($page) && $page == 'miscellaneous_system_bounced' ? 'active' : '' }}">{{__('app.system_bounced')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('activity_logs', false))
                    <li class="slide">
                        <a href="{{route('activity.logs')}}" class="side-menu__item {{ !empty($page) && $page == 'miscellaneous_activity_logs' ? 'active' : '' }}">{{__('app.activity_logs')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('error_logs', false))
                    <li class="slide">
                        <a href="{{route('error.logs')}}" class="side-menu__item {{ !empty($page) && $page == 'miscellaneous_error_logs' ? 'active' : '' }}">{{__('app.error_logs')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('php_info', false))
                    <li class="slide">
                        <a href="{{route('php.info')}}" class="side-menu__item {{ !empty($page) && $page == 'miscellaneous_php_info' ? 'active' : '' }}">{{__('app.php_info')}}</a>
                    </li>
                    @endif
                </ul>
            </li>
            @endif
            @if(\App\Http\Helper\Helper::checkPermissions('image_manager', false) || \App\Http\Helper\Helper::checkPermissions('update', false))
            <li class="slide has-sub {{!empty($page) &&  (strpos($page, 'tools_') !== false) ? 'open' : '' }}">
                <a href="javascript:void(0);" class="side-menu__item {{!empty($page) &&  (strpos($page, 'tools_') !== false) ? 'active' : '' }}">
                    <i class="bi bi-bag w-6 h-6 side-menu__icon"></i>
                    <span class="side-menu__label">{{__('app.tools')}}</span>
                    <i class="ri-arrow-down-s-line side-menu__angle"></i>
                </a>
                <ul class="slide-menu child1">
                    <li class="slide side-menu__label1">
                        <a href="javascript:void(0)">{{__('app.tools')}}</a>
                    </li>
                    @if(\App\Http\Helper\Helper::checkPermissions('image_manager', false))
                    <li class="slide">
                        <a href="{{ route('image.manager') }}" class="side-menu__item {{ !empty($page) && $page == 'tools_image_manager' ? 'active' : '' }}">{{__('app.image_manager')}}</a>
                    </li>
                    @endif
                    @if(\App\Http\Helper\Helper::checkPermissions('update', false))
                    <li class="slide">
                        <a href="javascript:;" onclick="viewModal('modal', '{{ route('update') }}')" class="side-menu__item {{ !empty($page) && $page == 'tools_update' ? 'active' : '' }}">{{__('app.update')}}</a>
                    </li>
                    @endif
                </ul>
            </li>
            @endif
        </ul>
        <div class="slide-right" id="slide-right"><svg xmlns="https://www.w3.org/2000/svg" fill="#7b8191" width="24" height="24" viewBox="0 0 24 24"><path d="M10.707 17.707 16.414 12l-5.707-5.707-1.414 1.414L13.586 12l-4.293 4.293z"></path> </svg></div>
    </nav>
    <!-- End::nav -->

</div>
<!-- End::main-sidebar -->

</aside>