aboutsummaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-08 20:17:01 +0100
committerMateja <mail@matejamaric.com>2020-11-08 20:17:01 +0100
commitde0600b75c3eeff15352f58e2631f2e19da4b252 (patch)
treedde19872d13b29a946dde312b50a971bdde17643 /app
parentd5691453f708ff5a288daeec21a00a19e888ca40 (diff)
downloadyota-laravel-de0600b75c3eeff15352f58e2631f2e19da4b252.tar.gz
yota-laravel-de0600b75c3eeff15352f58e2631f2e19da4b252.zip
Show special call description.
Diffstat (limited to 'app')
-rw-r--r--app/Http/Controllers/SpecialCallsController.php7
1 files changed, 7 insertions, 0 deletions
diff --git a/app/Http/Controllers/SpecialCallsController.php b/app/Http/Controllers/SpecialCallsController.php
index b99b7ac..025d955 100644
--- a/app/Http/Controllers/SpecialCallsController.php
+++ b/app/Http/Controllers/SpecialCallsController.php
@@ -39,6 +39,13 @@ class SpecialCallsController extends Controller
return Redirect::back()->with('status', "Special callsign added.");
}
+ public function show($sign)
+ {
+ $call = SpecialCall::where('sign', $sign)->first();
+ return $call->description ?? '<p><i>This special callsign doesn\'t have a description.</i></p>';
+ }
+
+
public function edit(Request $request, int $id)
{
$data = SpecialCall::findOrFail($id);