2017-11-03 17:48:58 +09:00
|
|
|
@extends('layouts.base')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
<div class="container">
|
|
|
|
<div class="row">
|
|
|
|
<div class="col-lg-4">
|
2020-05-24 17:27:42 +09:00
|
|
|
@if (Route::currentRouteName() === 'user.profile')
|
|
|
|
@component('components.profile', ['user' => $user])
|
|
|
|
@endcomponent
|
|
|
|
@else
|
|
|
|
<div class="card mb-4">
|
|
|
|
<div class="card-body">
|
|
|
|
@component('components.profile-mini', ['user' => $user])
|
|
|
|
@endcomponent
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
2018-06-09 00:30:41 +09:00
|
|
|
@section('sidebar')
|
|
|
|
@show
|
2017-11-03 17:48:58 +09:00
|
|
|
</div>
|
|
|
|
<div class="col-lg-8">
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li class="nav-item">
|
2017-11-03 18:10:50 +09:00
|
|
|
<a class="nav-link {{ Route::currentRouteName() === 'user.profile' ? 'active' : '' }}" href="{{ route('user.profile', ['name' => $user->name]) }}">タイムライン</a>
|
2017-11-03 17:48:58 +09:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2020-05-24 17:27:42 +09:00
|
|
|
<a class="nav-link {{ stripos(Route::currentRouteName(), 'user.stats') === 0 ? 'active' : '' }}" href="{{ route('user.stats', ['name' => $user->name]) }}">グラフ</a>
|
2017-11-03 17:48:58 +09:00
|
|
|
</li>
|
|
|
|
<li class="nav-item">
|
2017-11-03 18:10:50 +09:00
|
|
|
<a class="nav-link {{ Route::currentRouteName() === 'user.okazu' ? 'active' : '' }}" href="{{ route('user.okazu', ['name' => $user->name]) }}">オカズ</a>
|
2017-11-03 17:48:58 +09:00
|
|
|
</li>
|
2019-04-09 23:04:42 +09:00
|
|
|
<li class="nav-item">
|
|
|
|
<a class="nav-link {{ Route::currentRouteName() === 'user.likes' ? 'active' : '' }}" href="{{ route('user.likes', ['name' => $user->name]) }}">いいね
|
|
|
|
@if ($user->isMe() || !($user->is_protected || $user->private_likes))
|
|
|
|
<span class="badge badge-primary">{{ $user->likes()->count() }}</span>
|
|
|
|
@endif
|
|
|
|
</a>
|
|
|
|
</li>
|
2017-11-03 17:48:58 +09:00
|
|
|
</ul>
|
|
|
|
<div class="tab-content">
|
|
|
|
@yield('tab-content')
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|