123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113 |
- <!doctype html>
- <html lang="{{ str_replace('_', '-', app()->getLocale()) }}">
- <head>
- <meta charset="utf-8">
- <meta name="viewport" content="width=device-width, initial-scale=1">
- <!-- CSRF Token -->
- <meta name="csrf-token" content="{{ csrf_token() }}">
- <title>{{ __('ui.h1_title') }}</title>
- <!-- Scripts -->
- <script type="text/javascript">
- // Globals
- var scanRoute = "{{route('rescan')}}";
- var panelRoute = "{{route('home')}}";
- </script>
- <script src="{{ asset('js/app.js') }}" defer></script>
- <script src="{{ asset('js/myScript.js') }}" defer></script>
- <!-- Fonts -->
- <link rel="dns-prefetch" href="//fonts.gstatic.com">
- <link href="https://fonts.googleapis.com/css?family=Nunito" rel="stylesheet">
- <!-- Styles -->
- <link href="{{ asset('css/app.css') }}" rel="stylesheet">
- <style type="text/css">
- .controls{
- text-align: center;
- }
- div.dropdown-item{
- cursor: pointer;
- }
- .btn {
- white-space: normal;
- }
- </style>
- </head>
- <body>
- <div id="app">
- <nav class="navbar navbar-expand-md navbar-light bg-white shadow-sm">
- <div class="container">
- <a class="navbar-brand" href="{{ url('/') }}">
- {{ __('ui.h1_title') }}
- </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">
- <!-- Left Side Of Navbar -->
- <ul class="navbar-nav mr-auto">
- </ul>
- <!-- Fix for navbar collapse event -->
- <!-- https://github.com/twbs/bootstrap/issues/30553#issuecomment-612617589 -->
- <!-- Right Side Of Navbar -->
- <ul class="navbar-nav ml-auto">
- <!-- Authentication Links -->
- @guest
- <li class="nav-item">
- <a class="nav-link" href="{{ route('login') }}">{{ __('ui.login') }}</a>
- </li>
- @if (Route::has('register'))
- <li class="nav-item">
- <a class="nav-link" href="{{ route('register') }}">{{ __('ui.register') }}</a>
- </li>
- @endif
- @else
- <li class="nav-item dropdown">
- <a id="navbarDropdown" class="nav-link dropdown-toggle" href="#" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false" v-pre>
- {{ Auth::user()->name }} <span class="caret"></span>
- </a>
- <div class="dropdown-menu dropdown-menu-right" aria-labelledby="navbarDropdown">
- <a class="dropdown-item" href="{{ route('logout') }}"
- onclick="event.preventDefault();
- document.getElementById('logout-form').submit();">
- {{ __('ui.logout') }}
- </a>
- <form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
- @csrf
- </form>
- <a class="dropdown-item" href="{{ route('asknepw', [Auth::user()->id, 'home']) }}">
- {{__('ui.chpass')}}
- </a>
- </div>
- </li>
- @endguest
- </ul>
- </div>
- </div>
- </nav>
- <main class="py-4">
- @yield('content')
- @yield('modals')
- </main>
- </div>
- </body>
- </html>
|