diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 008bae3..72da383 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -83,6 +83,7 @@ class SearchController extends Controller default: $msg = "You fucked up somehow!"; } - return view('search.results')->with('results',$results); + $data = array('results'=>$results, 'table'=>$table); + return view('search.results')->with($data); } } diff --git a/resources/views/search/results.blade.php b/resources/views/search/results.blade.php index 5faf550..225d33a 100644 --- a/resources/views/search/results.blade.php +++ b/resources/views/search/results.blade.php @@ -7,29 +7,55 @@
@include('inc.navbar')
Home -> {{ __('Search Results') }}Go Back
-
- - - @include('inc.messages') - - - - - - - - - - @foreach ($results as $result) - - - - - - @endforeach - -
@sortablelink('name')@sortablelink('brewery')@sortablelink('type', 'Style')
{{$result->name}} {{$result->brewery}} {{$result->type}}
+ @if ($table == "summarie") +
+ +
+
+
    +
  • + + + @include('inc.messages') + + + + + + + + + @foreach ($results as $result) + + + + + + @endforeach + +
    @sortablelink('name', 'Beer')Brewery@sortablelink('type', 'Style')
    {{$result->name}} {{$result->brewery}} {{$result->type}}
    +
  • +
+
+
+
+
+
+ @endif