2017-06-10 11:19:17 +08:00
|
|
|
<!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>{{ config('app.name', 'Laravel') }}</title>
|
|
|
|
|
|
|
|
<!-- Styles -->
|
|
|
|
<link href="/css/app.css" rel="stylesheet">
|
|
|
|
|
|
|
|
<!-- Scripts -->
|
|
|
|
<script>
|
|
|
|
window.Laravel = <?php echo json_encode([
|
|
|
|
'csrfToken' => csrf_token(),
|
|
|
|
]); ?>
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
|
|
|
<div id="app">
|
|
|
|
<nav class="navbar navbar-default navbar-static-top">
|
|
|
|
<div class="container">
|
|
|
|
<div class="navbar-header">
|
|
|
|
|
|
|
|
<!-- Collapsed Hamburger -->
|
|
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#app-navbar-collapse">
|
|
|
|
<span class="sr-only">Toggle Navigation</span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
<span class="icon-bar"></span>
|
|
|
|
</button>
|
|
|
|
|
|
|
|
<!-- Branding Image -->
|
|
|
|
<a class="navbar-brand" href="{{ url('/') }}">
|
|
|
|
{{ config('app.name', 'Laravel') }}
|
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="collapse navbar-collapse" id="app-navbar-collapse">
|
|
|
|
<!-- Left Side Of Navbar -->
|
|
|
|
<ul class="nav navbar-nav">
|
|
|
|
|
|
|
|
</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
|
|
|
|
<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>
|
2017-06-22 18:23:59 +08:00
|
|
|
<a href="{{ url('/logout') }}">Logout</a>
|
2017-06-10 11:19:17 +08:00
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</li>
|
|
|
|
@endif
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</nav>
|
|
|
|
|
|
|
|
@yield('content')
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<!-- Scripts -->
|
|
|
|
<script src="/js/app.js"></script>
|
|
|
|
</body>
|
|
|
|
</html>
|