tissue/resources/views/search/base.blade.php

21 lines
903 B
PHP
Raw Normal View History

2018-09-06 23:48:54 +09:00
@extends('layouts.base')
2019-01-08 23:27:48 +09:00
@section('title', $inputs['q'] . ' の検索結果')
2018-09-06 23:48:54 +09:00
@section('content')
<div class="container">
<h2 class="mb-4"><strong>{{ $inputs['q'] }}</strong> の検索結果</h2>
<ul class="nav nav-tabs">
<li class="nav-item">
<a class="nav-link {{ Route::currentRouteName() === 'search' ? 'active' : '' }}" href="{{ route('search', $inputs) }}">チェックイン</a>
</li>
<li class="nav-item">
<a class="nav-link {{ Route::currentRouteName() === 'search.related-tag' ? 'active' : '' }}" href="{{ route('search.related-tag', $inputs) }}">関連するタグ</a>
</li>
</ul>
<div class="tab-content">
<p class="my-3 text-secondary">{{ $results->total() }} 件見つかりました</p>
@yield('tab-content')
</div>
</div>
@endsection