From bf20164d5e9972c4c1f51397f1b48b9fb116c895 Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 13:11:32 +0100 Subject: [PATCH] first iteration of search functionality - likely to fail hard --- resources/views/beers/index.blade.php | 1 - resources/views/inc/navbar.blade.php | 2 ++ resources/views/search/index.blade.php | 2 +- resources/views/search/results.blade.php | 3 +-- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/resources/views/beers/index.blade.php b/resources/views/beers/index.blade.php index 98c0617..69a2262 100644 --- a/resources/views/beers/index.blade.php +++ b/resources/views/beers/index.blade.php @@ -6,7 +6,6 @@
@include('inc.navbar') -@include('search.index')
Home -> {{ __('Beer List') }}Go Back
diff --git a/resources/views/inc/navbar.blade.php b/resources/views/inc/navbar.blade.php index 167ed1d..aa94f0e 100644 --- a/resources/views/inc/navbar.blade.php +++ b/resources/views/inc/navbar.blade.php @@ -1,3 +1,5 @@ @if (Auth::user()->isAdmin())@endif + +@include('search.index') diff --git a/resources/views/search/index.blade.php b/resources/views/search/index.blade.php index 349a635..af784b3 100644 --- a/resources/views/search/index.blade.php +++ b/resources/views/search/index.blade.php @@ -10,7 +10,7 @@ - +
diff --git a/resources/views/search/results.blade.php b/resources/views/search/results.blade.php index 8b51c73..6936a12 100644 --- a/resources/views/search/results.blade.php +++ b/resources/views/search/results.blade.php @@ -6,7 +6,6 @@
@include('inc.navbar') -@include('search.index')
Home -> {{ __('Search Results') }}Go Back
@@ -16,7 +15,7 @@ @sortablelink('name') - @sortablelink('brewery') + @sortablelink('brewery' @sortablelink('type', 'Style')