2017-11-03 17:48:58 +09:00
|
|
|
@extends('layouts.base')
|
|
|
|
|
|
|
|
@section('content')
|
2020-10-24 14:32:30 +09:00
|
|
|
<div class="container-fluid border-bottom mb-4 mt-n1 mt-lg-n4 px-0">
|
|
|
|
<div class="container">
|
|
|
|
<div class="row align-items-center">
|
|
|
|
<div class="col-lg-4">
|
|
|
|
@component('components.profile-mini', ['user' => $user])
|
|
|
|
@endcomponent
|
|
|
|
</div>
|
|
|
|
<div class="col-lg-8 mt-3 mt-lg-2 px-0 px-md-2">
|
|
|
|
<ul class="nav tis-nav-underline-tabs flex-nowrap overflow-auto">
|
|
|
|
<li class="nav-item flex-shrink-0">
|
|
|
|
<a class="nav-link {{ Route::currentRouteName() === 'user.profile' ? 'active' : '' }}" href="{{ route('user.profile', ['name' => $user->name]) }}">タイムライン</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item flex-shrink-0">
|
|
|
|
<a class="nav-link {{ stripos(Route::currentRouteName(), 'user.stats') === 0 ? 'active' : '' }}" href="{{ route('user.stats', ['name' => $user->name]) }}">グラフ</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item flex-shrink-0">
|
|
|
|
<a class="nav-link {{ Route::currentRouteName() === 'user.okazu' ? 'active' : '' }}" href="{{ route('user.okazu', ['name' => $user->name]) }}">オカズ</a>
|
|
|
|
</li>
|
|
|
|
<li class="nav-item flex-shrink-0">
|
|
|
|
<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>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
2017-11-03 17:48:58 +09:00
|
|
|
<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
|
|
|
|
@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">
|
2020-10-24 14:32:30 +09:00
|
|
|
@yield('tab-content')
|
2017-11-03 17:48:58 +09:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endsection
|