<div class="row mb-3">
    <div class="col align-self-end">
        <h5>{{ $boardData->name }}</h5>
    </div>
    <div class="col">
        <select name="board_select" id="boardSelect" class="form-select w-auto float-end">
            @foreach($boardAllData as $board)
                <option value="{{ $board->id }}" @if($boardID == $board->id) selected @endif>{{ $board->name }}</option>
            @endforeach
        </select>
        <div class="clearfix"></div>
    </div>
</div>
<div class="list-board">
    <ul class="nav nav-tabs">
        <li class="nav-item"><a href="{{ route('admin.board.board.list.show', $boardID) }}" class="nav-link {{ activeUrl('admin/board/board/list/' . $boardID) }}">기본</a></li>
        <li class="nav-item"><a href="{{ route('admin.board.board.post.show', $boardID) }}" class="nav-link {{ activeUrl('admin/board/board/post/' . $boardID) }}">목록</a></li>
        <li class="nav-item"><a href="{{ route('admin.board.board.view.show', $boardID) }}" class="nav-link {{ activeUrl('admin/board/board/view/' . $boardID) }}">열람</a></li>
        <li class="nav-item"><a href="{{ route('admin.board.board.write.show', $boardID) }}" class="nav-link {{ activeUrl('admin/board/board/write/' . $boardID) }}">작성</a></li>
        <li class="nav-item"><a href="{{ route('admin.board.board.category.show', $boardID) }}" class="nav-link {{ activeUrl('admin/board/board/category/' . $boardID) }}">분류</a></li>
        <li class="nav-item"><a href="{{ route('admin.board.board.comment.show', $boardID) }}" class="nav-link {{ activeUrl('admin/board/board/comment/' . $boardID) }}">댓글</a></li>
        <li class="nav-item"><a href="{{ route('admin.board.board.general.show', $boardID) }}" class="nav-link {{ activeUrl('admin/board/board/general/' . $boardID) }}">일반</a></li>
        <li class="nav-item"><a href="{{ route('admin.board.board.notify.show', $boardID) }}" class="nav-link {{ activeUrl('admin/board/board/notify/' . $boardID) }}">알람</a></li>
        <li class="nav-item"><a href="{{ route('admin.board.board.authority.show', $boardID) }}" class="nav-link {{ activeUrl('admin/board/board/authority/' . $boardID) }}">권한</a></li>
        <li class="nav-item"><a href="{{ route('admin.board.board.exp.show', $boardID) }}" class="nav-link {{ activeUrl('admin/board/board/exp/' . $boardID) }}">경험치</a></li>
        <li class="nav-item"><a href="{{ route('admin.board.board.manager.show', $boardID) }}" class="nav-link {{ activeUrl('admin/board/board/manager/' . $boardID) }}">관리자</a></li>
    </ul>
</div>
<br/>
<script type="module">
$(document).on("change", "#boardSelect", function() {
    redirect(location.pathname.replace(/[0-9]/g, "") + this.value + location.search);
});
</script>
