2017-10-22 23:13:21 +09:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="{{ app()->getLocale() }}">
|
|
|
|
<head>
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
|
|
<meta name="csrf-token" content="{{ csrf_token() }}">
|
|
|
|
|
|
|
|
<title>{{ config('app.name', 'Tissue') }}</title>
|
|
|
|
|
|
|
|
<link href="{{ asset('css/bootstrap.min.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ asset('css/open-iconic-bootstrap.min.css') }}" rel="stylesheet">
|
|
|
|
<link href="{{ asset('css/tissue.css') }}" rel="stylesheet">
|
|
|
|
|
2017-11-03 17:48:58 +09:00
|
|
|
@stack('head')
|
2017-10-22 23:13:21 +09:00
|
|
|
</head>
|
|
|
|
<body>
|
2017-11-06 00:49:10 +09:00
|
|
|
<nav class="navbar navbar-expand-lg navbar-light bg-light {{ !Auth::check() && Route::currentRouteName() === 'home' ? '' : 'mb-4'}}">
|
2017-10-22 23:13:21 +09:00
|
|
|
<form id="logout-form" action="{{ route('logout') }}" method="POST" style="display: none;">
|
|
|
|
{{ csrf_field() }}
|
|
|
|
</form>
|
|
|
|
|
2017-11-05 19:51:31 +09:00
|
|
|
<div class="container">
|
|
|
|
<a href="{{ route('home') }}" class="navbar-brand">{{ config('app.name', 'Tissue') }}</a>
|
|
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarNav" aria-controls="navbarNav" aria-expanded="false" aria-label="Toggle navigation">
|
|
|
|
<span class="navbar-toggler-icon"></span>
|
|
|
|
</button>
|
|
|
|
<div class="collapse navbar-collapse" id="navbarNav">
|
|
|
|
@auth
|
|
|
|
<ul class="navbar-nav mr-auto">
|
|
|
|
<li class="nav-item {{ stripos(Route::currentRouteName(), 'home') === 0 ? 'active' : ''}}">
|
|
|
|
<a class="nav-link" href="{{ route('home') }}">ホーム</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item {{ stripos(Route::currentRouteName(), 'user.profile') === 0 ? 'active' : ''}}">
|
|
|
|
<a class="nav-link" href="{{ route('user.profile', ['name' => Auth::user()->name]) }}">タイムライン</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item {{ stripos(Route::currentRouteName(), 'user.stats') === 0 ? 'active' : ''}}">
|
|
|
|
<a class="nav-link" href="{{ route('user.stats', ['name' => Auth::user()->name]) }}">グラフ</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item {{ stripos(Route::currentRouteName(), 'user.okazu') === 0 ? 'active' : ''}}">
|
|
|
|
<a class="nav-link" href="{{ route('user.okazu', ['name' => Auth::user()->name]) }}">オカズ</a>
|
|
|
|
</li>
|
|
|
|
{{--<li class="nav-item">
|
|
|
|
<a class="nav-link" href="{{ route('ranking') }}">ランキング</a>
|
|
|
|
</li>--}}
|
|
|
|
</ul>
|
|
|
|
<ul class="navbar-nav">
|
|
|
|
<li class="nav-item dropdown">
|
|
|
|
<a href="#" class="nav-link dropdown-toggle" id="navbarDropdownMenuLink" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
|
|
|
<img src="{{ Auth::user()->getProfileImageUrl(30) }}" width="30" height="30" class="rounded d-inline-block align-top mr-2">
|
|
|
|
{{ Auth::user()->display_name }} さん
|
|
|
|
</a>
|
|
|
|
<div class="dropdown-menu" aria-labelledby="navbarDropdownMenuLink">
|
|
|
|
{{--<a href="#" class="dropdown-item">設定</a>--}}
|
|
|
|
<a href="{{ route('logout') }}" class="dropdown-item" onclick="event.preventDefault(); document.getElementById('logout-form').submit();">ログアウト</a>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<form class="form-inline">
|
|
|
|
<a href="{{ route('checkin') }}" class="btn btn-outline-success">チェックイン</a>
|
|
|
|
</form>
|
|
|
|
@endauth
|
|
|
|
@guest
|
2018-03-06 23:08:37 +09:00
|
|
|
<ul class="navbar-nav ml-auto mr-2">
|
|
|
|
<li class="nav-item">
|
|
|
|
<a href="{{ route('register') }}" class="nav-link">会員登録</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<form class="form-inline">
|
2017-11-06 00:49:10 +09:00
|
|
|
<a href="{{ route('login') }}" class="btn btn-outline-secondary">ログイン</a>
|
2017-11-05 19:51:31 +09:00
|
|
|
</form>
|
|
|
|
@endguest
|
|
|
|
</div>
|
2017-10-22 23:13:21 +09:00
|
|
|
</div>
|
|
|
|
</nav>
|
2017-11-03 17:48:58 +09:00
|
|
|
@if (session('status'))
|
|
|
|
<div class="container">
|
|
|
|
<div id="status" class="alert alert-success alert-dismissible fade show" role="alert">
|
|
|
|
{{ session('status') }}
|
|
|
|
<button type="button" class="close" data-dismiss="alert" aria-label="Close">
|
|
|
|
<span aria-hidden="true">×</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2017-10-22 23:13:21 +09:00
|
|
|
@yield('content')
|
|
|
|
<footer class="tis-footer mt-4">
|
2017-11-06 00:49:10 +09:00
|
|
|
<div class="container p-3 p-md-4">
|
2017-10-22 23:13:21 +09:00
|
|
|
<p>Copyright (c) 2017 shikorism.net</p>
|
|
|
|
<ul class="list-inline">
|
|
|
|
<li class="list-inline-item"><a href="https://github.com/shibafu528" class="text-dark">Admin(@shibafu528)</a></li>
|
|
|
|
<li class="list-inline-item"><a href="https://github.com/shikorism/tissue" class="text-dark">GitHub</a></li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</footer>
|
|
|
|
|
|
|
|
<script src="https://code.jquery.com/jquery-3.2.1.min.js"></script>
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js"></script>
|
|
|
|
<script type="text/javascript" src="{{ asset('js/bootstrap.min.js') }}"></script>
|
|
|
|
<script>
|
|
|
|
$(function(){
|
|
|
|
$('[data-toggle="tooltip"]').tooltip();
|
2017-11-03 17:48:58 +09:00
|
|
|
$('.alert').alert();
|
|
|
|
@if (session('status'))
|
|
|
|
setTimeout(function () {
|
|
|
|
$('#status').alert('close');
|
|
|
|
}, 5000);
|
|
|
|
@endif
|
2017-10-22 23:13:21 +09:00
|
|
|
});
|
|
|
|
</script>
|
2017-11-03 17:48:58 +09:00
|
|
|
@stack('script')
|
2017-10-22 23:13:21 +09:00
|
|
|
</body>
|
|
|
|
</html>
|