@php
if (!isset($active_menu)) $active_menu = '';
$management = session('management');
$management_code = $management ? $management->management_code : '';
@endphp
<section id="my-menu" class="bg-success">
    <style>
        .navbar-toggler::after,
        .nav-link::after,
        .nav-item::after {
            display: none !important;
            content: none !important;
        }
    </style>
    <div class="container-fluid">
        <nav class="navbar navbar-expand-lg navbar-dark">
            <a id="my-menu-btn" class="navbar-toggler text-center" href="#navbarSupportedContent" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation"> マイメニューを開く </a>
            <div class="collapse navbar-collapse justify-content-around" id="navbarSupportedContent">
                <ul class="navbar-nav">
                    <li class="nav-item {{ $active_menu == 'SWO-4-1' ? 'active' : '' }}"><a class="nav-link" href="{{ route('mypage', ['management_code' => $management_code]) }}">マイページトップ</a></li>
                    <li class="nav-item {{ $active_menu == 'SWC-1-1' ? 'active' : '' }}"><a class="nav-link" href="{{ route('user.info', ['management_code' => $management_code]) }}">ユーザー情報確認</a></li>
                    <li class="nav-item {{ $active_menu == 'SWC-3-1' ? 'active' : '' }}"><a class="nav-link" href="{{ route('regular_contract.info', ['management_code' => $management_code]) }}">定期契約情報</a></li>
                    <li class="nav-item {{ $active_menu == 'SWC-4-1' ? 'active' : '' }}"><a class="nav-link" href="{{ route('regular_contract.update', ['management_code' => $management_code]) }}">契約更新</a></li>
                    <li class="nav-item {{ $active_menu == 'SWC-6-1' ? 'active' : '' }}"><a class="nav-link" href="{{ route('regular_contract.history', ['management_code' => $management_code]) }}">契約履歴</a></li>
                    <li class="nav-item {{ $active_menu == 'SWC-8-1' ? 'active' : '' }}"><a class="nav-link" href="{{ route('regular_contract.create', ['management_code' => $management_code]) }}">新規定期契約</a></li>
                    <li class="nav-item {{ $active_menu == 'SWC-11-1' ? 'active' : '' }}"><a class="nav-link" href="{{ route('park_waitlist.index', ['management_code' => $management_code]) }}">空き待ち状況確認</a></li>
                    <li class="nav-item {{ $active_menu == 'SWC-10-1' ? 'active' : '' }}"><a class="nav-link" href="{{ route('park_search', ['management_code' => $management_code]) }}">駐輪場検索</a></li>
                    <li class="nav-item"><a class="nav-link" href="{{ route('guide', ['management_code' => $management_code]) }}" target="_blank">このページの使い方</a></li>
                </ul>
            </div>
        </nav>
    </div>
</section>