<div class="sidebar">
    <div class="side-head">

        <a href="{{route('admin.dashboard')}}" class="side-logo primary-color">
            <h3>{{App_Name()}}</h3>
        </a>

        <button class="btn side-toggle">
            <span></span>
            <span></span>
            <span></span>
        </button>
    </div>

    <ul class="side-menu mt-4">
        <li class="side_line {{ request()->routeIs('admin.dashboard') ? 'active' : '' }}{{ request()->routeIs('profile*') ? 'active' : '' }}">
            <a href="{{ route('admin.dashboard')}}">
                <i class="fa-solid fa-house fa-2xl menu-icon"></i>
                <span>{{__('Label.Dashboard')}}</span>
            </a>
        </li>
        <li class="side_line {{ request()->routeIs('earning.dashboard') ? 'active' : '' }}">
            <a href="{{ route('earning.dashboard')}}">
                <i class="fa-solid fa-house fa-2xl menu-icon"></i>
                <span>{{__('Label.earning_dashboard')}}</span>
            </a>
        </li>
        <p class="partition"><span>{{__('Label.basic_element')}}</span></p>
        <li class="dropdown {{ request()->routeIs('hashtag*') ? 'active' : '' }}{{ request()->routeIs('gift*') ? 'active' : '' }}">
            <a class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <i class="fa-solid fa-sliders fa-2xl menu-icon"></i>
                <span> {{__('Label.basic_items')}} </span>
            </a>
            <ul class="dropdown-menu side-submenu {{ request()->routeIs('hashtag*') ? 'show' : '' }}{{ request()->routeIs('gift*') ? 'show' : '' }}">
                <li class="side_line {{ request()->routeIs('hashtag*') ? 'active' : '' }}">
                    <a href="{{ route('hashtag.index') }}" class="dropdown-item">
                        <i class="fa-solid fa-hashtag fa-2xl submenu-icon"></i>
                        <span>{{__('Label.Hashtag')}}</span>
                    </a>
                </li>
                <li class="side_line {{ request()->routeIs('gift*') ? 'active' : '' }}">
                    <a href="{{ route('gift.index') }}" class="dropdown-item">
                        <i class="fa-solid fa-gift fa-2xl submenu-icon"></i>
                        <span>{{__('Label.gift')}}</span>
                    </a>
                </li>
            </ul>
        </li>
        <li class="side_line {{ request()->routeIs('user*') ? 'active' : '' }}">
            <a href="{{ route('user.index') }}">
                <i class="fa-solid fa-users fa-2xl menu-icon"></i>
                <span>{{__('Label.Users')}}</span>
            </a>
        </li>
        <li class="dropdown {{ request()->routeIs('becomecreator*') ? 'active' : '' }}{{ request()->routeIs('creator.*') ? 'active' : '' }}">
            <a class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <i class="fa-solid fa-user-tie fa-2xl menu-icon"></i>
                <span>{{__('Label.Creator')}}</span>
            </a>
            <ul class="dropdown-menu side-submenu {{ request()->routeIs('becomecreator*') ? 'show' : '' }}{{ request()->routeIs('creator.*') ? 'show' : '' }}">
                <li class="side_line {{ request()->routeIs('becomecreator*') ? 'active' : '' }}">
                    <a href="{{ route('becomecreator.index') }}" class="dropdown-item">
                        <i class="fa-solid fa-user-clock fa-2xl submenu-icon"></i>
                        <span>{{__('Label.creator_request')}}</span>
                    </a>
                </li>
                <li class="side_line {{ request()->routeIs('creator.*') ? 'active' : '' }}">
                    <a href="{{ route('creator.index') }}" class="dropdown-item">
                        <i class="fa-solid fa-user-check fa-2xl submenu-icon"></i>
                        <span>{{__('Label.Creator')}}</span>
                    </a>
                </li>
            </ul>
        </li>
        <p class="partition"><span>{{__('Label.content')}}</span></p>
        <li class="{{ (request()->routeIs('post*')) ? 'active' : '' }}">
            <a href="{{ route('post.index') }}">
                <i class="fa-solid fa-square-plus fa-2xl menu-icon"></i>
                <span>{{__('Label.post')}}</span>
            </a>
        </li>
        <li class="{{ (request()->routeIs('story*')) ? 'active' : '' }}">
            <a href="{{ route('story.index') }}">
                <i class="fa-solid fa-play-circle fa-2xl menu-icon"></i>
                <span>{{__('Label.story')}}</span>
            </a>
        </li>
        <p class="partition"><span>{{__('Label.interaction')}}</span></p>
        <li class="{{ (request()->routeIs('reportreason*')) ? 'active' : '' }}">
            <a href="{{ route('reportreason.index') }}">
                <i class="fa-solid fa-exclamation-circle fa-2xl menu-icon"></i>
                <span>{{__('Label.report_reason')}}</span>
            </a>
        </li>
        <li class="{{ (request()->routeIs('report.*')) ? 'active' : '' }}">
            <a href="{{ route('report.index') }}">
                <i class="fa-solid fa-flag  fa-2xl menu-icon"></i>
                <span>{{__('Label.report')}}</span>
            </a>
        </li>
        <li class="side_line {{ request()->routeIs('comment*') ? 'active' : '' }}">
            <a href="{{ route('comment.index') }}">
                <i class="fa-solid fa-comments fa-2xl menu-icon"></i>
                <span>{{__('Label.Comment')}}</span>
            </a>
        </li>
        <li class="side_line {{ request()->routeIs('notification*') ? 'active' : '' }}">
            <a href="{{ route('notification.index') }}">
                <i class="fa-solid fa-bell fa-2xl menu-icon"></i>
                <span>{{__('Label.Notification')}}</span>
            </a>
        </li>
        <p class="partition"><span>{{__('Label.financial')}}</span></p>
        <li class="side_line {{ request()->routeIs('withdrawal*') ? 'active' : '' }}">
            <a href="{{ route('withdrawal.index') }}">
            <i class="fa-solid fa-right-left fa-2xl menu-icon"></i>
                <span>{{__('Label.withdrawal')}}</span>
            </a>
        </li>
        <li class="dropdown {{ request()->routeIs('creator_package*') ? 'active' : '' }}{{ request()->routeIs('creator_transaction*') ? 'active' : '' }}">
            <a class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <i class="fa-solid fa-money-bill-1 fa-2xl menu-icon"></i>
                <span> {{__('Label.creator_subscription')}} </span>
            </a>
            <ul class="dropdown-menu side-submenu {{ request()->routeIs('creator_package*') ? 'show' : '' }}{{ request()->routeIs('creator_transaction*') ? 'show' : '' }}">
                <li class="side_line {{ request()->routeIs('creator_package*') ? 'active' : '' }}">
                    <a href="{{ route('creator_package.index') }}" class="dropdown-item">
                        <i class="fa-solid fa-box-archive fa-2xl submenu-icon"></i>
                        <span>{{__('Label.creator_package')}}</span>
                    </a>
                </li>
                <li class="side_line {{ request()->routeIs('creator_transaction*') ? 'active' : '' }}">
                    <a href="{{ route('creator_transaction.index') }}" class="dropdown-item">
                        <i class="fa-solid fa-wallet fa-2xl submenu-icon"></i>
                        <span> {{__('Label.creator_transactions')}} </span>
                    </a>
                </li>
            </ul>
        </li>
        <li class="dropdown {{ request()->routeIs('coin_package*') ? 'active' : '' }}{{ request()->routeIs('coin_transaction*') ? 'active' : '' }}">
            <a class="dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                <i class="fa-solid fa-coins fa-2xl menu-icon"></i>
                <span> {{__('Label.coin_subscription')}} </span>
            </a>
            <ul class="dropdown-menu side-submenu {{ request()->routeIs('coin_package*') ? 'show' : '' }}{{ request()->routeIs('coin_transaction*') ? 'show' : '' }}">
                <li class="side_line {{ request()->routeIs('coin_package*') ? 'active' : '' }}">
                    <a href="{{ route('coin_package.index') }}" class="dropdown-item">
                        <i class="fa-solid fa-box fa-2xl submenu-icon"></i>
                        <span>{{__('Label.coin_package')}}</span>
                    </a>
                </li>
                <li class="side_line {{ request()->routeIs('coin_transaction*') ? 'active' : '' }}">
                    <a href="{{ route('coin_transaction.index') }}" class="dropdown-item">
                        <i class="fa-solid fa-circle-dollar-to-slot fa-2xl submenu-icon"></i>
                        <span> {{__('Label.coin_transactions')}} </span>
                    </a>
                </li>
            </ul>
        </li>
        <li class="side_line {{request()->routeIs('payment*') ? 'active' : ''}}">
            <a href="{{ route('payment.index') }}">
                <i class="fa-solid fa-money-bill-wave fa-2xl menu-icon"></i>
                <span>{{__('Label.Payment')}}</span>
            </a>
        </li>
        <p class="partition"><span>{{__('Label.ads')}}</span></p>
        <li class="side_line {{request()->routeIs('admob*') ? 'active' : ''}}">
            <a href="{{ route('admob.index') }}">
                <i class="fa-brands fa-square-google-plus fa-2xl menu-icon"></i>
                <span>{{__('Label.admob')}}</span>
            </a>
        </li>
        <!-- <li class="side_line {{ request()->routeIs('fbads*') ? 'active' : '' }}">
            <a href="{{ route('fbads.index') }}">
                <i class="fa-brands fa-square-facebook fa-2xl menu-icon"></i>
                <span>{{__('Label.facebook_ads')}}</span>
            </a>
        </li> -->
        <p class="partition"><span>{{__('Label.settings')}}</span></p>
        <li class="side_line {{ request()->routeIs('setting*') ? 'active' : '' }}">
            <a href="{{ route('setting') }}">
                <i class="fa-solid fa-gear fa-2xl menu-icon"></i>
                <span>{{__('Label.app_setting')}}</span>
            </a>
        </li>
        <li class="side_line {{ request()->routeIs('system.setting*') ? 'active' : '' }}">
            <a href="{{ route('system.setting.index') }}">
                <i class="fa-solid fa-screwdriver-wrench fa-2xl menu-icon"></i>
                <span>{{__('Label.system_settings')}}</span>
            </a>
        </li>
        <li class="side_line {{ request()->routeIs('page*') ? 'active' : '' }}">
            <a href="{{ route('page.index') }}">
                <i class="fa-solid fa-book-open-reader fa-2xl menu-icon"></i>
                <span>{{__('Label.Pages')}}</span>
            </a>
        </li>
        <p class="partition"><span>{{__('Label.Logout')}}</span></p>
        <li>
            <a href="{{ route('admin.logout') }}" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">
                <i class="fa-solid fa-arrow-right-from-bracket fa-2xl menu-icon"></i>
                <span>{{__('Label.Logout')}}</span>
            </a>

            <form id="logout-form" action="{{ route('admin.logout') }}" method="GET" class="d-none">
                @csrf
            </form>
        </li>
    </ul>
</div>