From d75408158f15309e3ce9492c8ba177de1fbc2e7d Mon Sep 17 00:00:00 2001 From: jk Date: Thu, 24 Jun 2021 13:16:54 +0100 Subject: [PATCH] first iteration of search functionality - likely to fail hard --- app/Http/Controllers/SearchController.php | 2 +- resources/views/search/index.blade.php | 9 ++++----- 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php index 6ff766e..435b1cf 100644 --- a/app/Http/Controllers/SearchController.php +++ b/app/Http/Controllers/SearchController.php @@ -67,7 +67,7 @@ class SearchController extends Controller foreach ($adjuncts as $adjunct){ $adjunctname = Adjunct::where('id', $adjunct->id)->value('name'); $result['adjuncts'][$i]['id'] = $adjunct->id; - $result['adjuncts'][$i]['name'] = $hopname; + $result['adjuncts'][$i]['name'] = $adjunctname; $i++; }; } diff --git a/resources/views/search/index.blade.php b/resources/views/search/index.blade.php index 21a768f..ee5bf64 100644 --- a/resources/views/search/index.blade.php +++ b/resources/views/search/index.blade.php @@ -2,15 +2,14 @@ @csrf
- + - + - + - +
-