91 lines
3.8 KiB
PHP
91 lines
3.8 KiB
PHP
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<!-- CSRF Token -->
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
<title>Laravel</title>
|
|
|
|
<!-- Styles -->
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css" integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u" crossorigin="anonymous">
|
|
<link rel="stylesheet" type="text/css" href="/css/app.css">
|
|
|
|
<!-- Scripts
|
|
<script>
|
|
window.Laravel = <?php echo json_encode([
|
|
'csrfToken' => csrf_token(),
|
|
]); ?>
|
|
</script> -->
|
|
</head>
|
|
<body>
|
|
<nav class="navbar navbar-default navbar-static-top">
|
|
<div class="container">
|
|
<div class="navbar-header">
|
|
|
|
<!-- Branding Image -->
|
|
<a class="navbar-brand" href="{{ url('/home') }}">
|
|
Elearning
|
|
</a>
|
|
</div>
|
|
|
|
<div class="collapse navbar-collapse" id="app-navbar-collapse">
|
|
<!-- Left Side Of Navbar -->
|
|
|
|
<ul class="nav navbar-nav">
|
|
<li><a href="/home">Tests</a></li>
|
|
<li><a href="/stats">Statistik</a></li>
|
|
<li><a href="/settings">Indstillinger</a></li>
|
|
</ul>
|
|
|
|
<!-- Right Side Of Navbar -->
|
|
<ul class="nav navbar-nav navbar-right">
|
|
<!-- Authentication Links -->
|
|
@if (Auth::guest())
|
|
<li><a href="{{ url('/login') }}">Login</a></li>
|
|
<!--<li><a href="{{ url('/register') }}">Register</a></li>-->
|
|
@else
|
|
<!-- Administration links -->
|
|
@if (Auth::check())
|
|
@if (Auth::user()->isModerator())
|
|
<li><a href="/mod">Moderator</a></li>
|
|
@elseif (Auth::user()->isAdministrator())
|
|
<li><a href="/admin">Admin</a></li>
|
|
@endif
|
|
@endif
|
|
<li class="dropdown">
|
|
<a href="#" class="dropdown-toggle" data-toggle="dropdown" role="button" aria-expanded="false">
|
|
{{ Auth::user()->name }} <span class="caret"></span>
|
|
</a>
|
|
|
|
<ul class="dropdown-menu" role="menu">
|
|
<li>
|
|
<a href="{{ url('/logout') }}"
|
|
onclick="event.preventDefault();
|
|
document.getElementById('logout-form').submit();">
|
|
Logout
|
|
</a>
|
|
|
|
<form id="logout-form" action="{{ url('/logout') }}" method="POST" style="display: none;">
|
|
{{ csrf_field() }}
|
|
</form>
|
|
</li>
|
|
</ul>
|
|
</li>
|
|
@endif
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
@yield('content')
|
|
|
|
<!-- Scripts -->
|
|
<script src="https://code.jquery.com/jquery-3.1.1.min.js" integrity="sha256-hVVnYaiADRTO2PzUGmuLJr8BLUSjGIZsDYGmIJLv2b8=" crossorigin="anonymous"></script>
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js" integrity="sha384-Tc5IQib027qvyjSMfHjOMaLkfuWVxZxUPnCJA7l2mCWNIpG9mGCD8wGNIcPD7Txa" crossorigin="anonymous"></script>
|
|
<script type="text/javascript" src="/js/app.js"></script>
|
|
</body>
|
|
</html>
|