<nav class="navbar navbar-expand-lg navbar-light fixed-top" style="background-color: #e3f2fd;height: 80px">
    <a class="navbar-brand" href="{{route("plates")}}" style="padding-left: 15px">Police_Traffic</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">
                <a class="nav-link" href="{{route("plates")}}">違規車輛查詢 <span class="sr-only">(current)</span></a>
            </li>
            <li class="nav-item">
                <a class="nav-link" id="account" href="{{route("account")}}">人員管理</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" id="dashboard" href="{{route("dashboard")}}">操作日誌</a>
            </li>
            <li class="nav-item">
                <a class="nav-link" id="dashboard" href="{{route("device")}}">設備管理</a>
            </li>
{{--            <li class="nav-item dropdown">--}}
{{--                <a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">--}}
{{--                    Dropdown--}}
{{--                </a>--}}
{{--                <div class="dropdown-menu" aria-labelledby="navbarDropdown">--}}
{{--                    <a class="dropdown-item" href="#">Action</a>--}}
{{--                    <a class="dropdown-item" href="#">Another action</a>--}}
{{--                    <div class="dropdown-divider"></div>--}}
{{--                    <a class="dropdown-item" href="#">Something else here</a>--}}
{{--                </div>--}}
{{--            </li>--}}
{{--            <li class="nav-item">--}}
{{--                <a class="nav-link disabled" href="#" tabindex="-1" aria-disabled="true">Disabled</a>--}}
{{--            </li>--}}
        </ul>
        <form class="form-inline my-2 my-lg-0">
            <ul class="navbar-nav mr-auto">
                @if(\Illuminate\Support\Facades\Auth::check() == true)
                    <label>{{\Illuminate\Support\Facades\Auth::user()["name"]}}您好</label>
                    <li>
                        <a class="nav-link" href="{{route("logout")}}">登出 <span class="sr-only">(current)</span></a>
                    </li>
                @else
                    <li>
                        <a class="nav-link" href="{{route("loginpage")}}">登入 <span class="sr-only">(current)</span></a>
                    </li>
                @endif
            </ul>
        </form>
    </div>
</nav>
