<nav class="navbar navbar-expand-lg navbar-light bg-dark">
    <a class="navbar-brand text-success"  style="font-weight: bold;font-size: larger" href="#">影像調閱系統</a>
    <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
        <span class="navbar-toggler-icon"></span>
    </button>

    <div class="collapse navbar-collapse" id="navbarSupportedContent">
        <ul class="navbar-nav mr-auto">
            <li class="nav-item active">
                <a class="nav-link text-light" href="#">攝影機回放 <span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
                <a class="nav-link text-light" href="#">攝影機現場調閱</a>
            </li>
            <li class="nav-item">
                <a class="nav-link text-light" href="#">選擇攝影機錄製</a>
            </li>
            <li class="nav-item">
                <a class="nav-link text-light" href="#">新增攝影機</a>
            </li>
        </ul>
        <ul class="nav navbar-nav navbar-right">
            <li class="nav-item">
                @if(\Illuminate\Support\Facades\Auth::check())
                <a class="nav-link text-light" style="color: white;" href="#"
                   onclick="event.preventDefault();document.getElementById('logout-form').submit();">登出
                </a>

                <form id="logout-form" action="#" method="post" style="display: none;">
                    @csrf
                </form>
                    @else
                    <a class="nav-link text-light" href="#">
                        <b>登入</b>
                    </a>
                    @endif

            </li>
        </ul>
    </div>
</nav>
