summaryrefslogtreecommitdiff
path: root/app/Http
diff options
context:
space:
mode:
authorhorus2021-01-07 23:57:41 +0100
committerhorus2021-01-07 23:57:41 +0100
commit98742438f33b79a3c9daa978b77088c8cab215ba (patch)
tree04fa1253a2f5a872176f1bd620885f62a43ef638 /app/Http
parentbbd59f395e162b2c80f83aa1ea3cf1a63e436ad5 (diff)
downloadkategorischeraperitif-98742438f33b79a3c9daa978b77088c8cab215ba.tar.gz
Minor improvement to search layout and labels seller.
Diffstat (limited to 'app/Http')
-rw-r--r--app/Http/Controllers/SearchController.php9
1 files changed, 7 insertions, 2 deletions
diff --git a/app/Http/Controllers/SearchController.php b/app/Http/Controllers/SearchController.php
index 48a5c2f..315b21e 100644
--- a/app/Http/Controllers/SearchController.php
+++ b/app/Http/Controllers/SearchController.php
@@ -63,8 +63,13 @@ class SearchController extends Controller {
if ( "" != $request->get('type') ) {
$query = $request->get('type');
$data = $data->where('spirit_type', '=', $request->get('type'));
- $title = "Suche nach " . ucwords($request->get('type'));
- }
+ $title = "Alle " . ucwords($request->get('type')) . "-Angebote";
+ } else
+ if ( "" != $request->get('shop') ) {
+ $query = $request->get('shop');
+ $data = $data->where('shop', '=', $request->get('shop'));
+ $title = "Alle Angebote von " . ucwords($request->get('shop'));
+ } else
if ( "" != $request->get('q') ) {
$query = $request->get("q");
$q = "%" . Utility::escapeLike($query) . "%";