aboutsummaryrefslogtreecommitdiff
path: root/app/Http
diff options
context:
space:
mode:
authorMateja <mail@matejamaric.com>2020-11-17 23:24:09 +0100
committerMateja <mail@matejamaric.com>2020-11-17 23:24:09 +0100
commit88921ded1e1476ecec3325c3d73db252b53861d4 (patch)
tree65bf6f92dccf67385c4499d14112c4b1b4ba2d27 /app/Http
parente1cc7f08a06648a62a8e1cfb3135ea3f0062fd89 (diff)
downloadyota-laravel-88921ded1e1476ecec3325c3d73db252b53861d4.tar.gz
yota-laravel-88921ded1e1476ecec3325c3d73db252b53861d4.zip
Drastically improved reservation form.
Diffstat (limited to 'app/Http')
-rw-r--r--app/Http/Controllers/ReservationsController.php36
1 files changed, 35 insertions, 1 deletions
diff --git a/app/Http/Controllers/ReservationsController.php b/app/Http/Controllers/ReservationsController.php
index a11ea39..ae130fc 100644
--- a/app/Http/Controllers/ReservationsController.php
+++ b/app/Http/Controllers/ReservationsController.php
@@ -64,7 +64,41 @@ class ReservationsController extends Controller
public function create(Request $request)
{
$signs = SpecialCall::all();
- return view('pages.reserve', compact('signs'));
+
+ $freq_list = [
+ '1.8 MHz',
+ '3.5 MHz',
+ '7 MHz',
+ '10 MHz',
+ '14 MHz',
+ '18 MHz',
+ '21 MHz',
+ '24 MHz',
+ '28 MHz',
+ '50 MHz',
+ '144 MHz',
+ '432 MHz',
+ '1.2 GHz',
+ '2.3 GHz'
+ ];
+
+ $mode_list = [
+ 'CW' => 'CW',
+ 'SSB' => 'SSB',
+ 'FM' => 'FM',
+ 'RTTY' => 'RTTY',
+ 'MFSK' => 'MFSK (JT65, FT8...)',
+ 'IMAGING' => 'IMAGING (ATV, SSTV...)',
+ 'OTHER DIGITAL' => 'OTHER DIGITAL'
+ ];
+
+ $data = [
+ 'signs' => $signs,
+ 'freq_list' => $freq_list,
+ 'mode_list' => $mode_list
+ ];
+
+ return view('pages.reserve', $data);
}
public function store(Request $request)