From 3e5dc09d0010078568f8590daef1f95722a4dd05 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sun, 1 Nov 2020 15:11:39 +0100 Subject: Work on callsigns. --- app/Http/Controllers/SpecialCallsController.php | 3 +- resources/views/layouts/app.blade.php | 3 +- resources/views/pages/callsigns.blade.php | 45 ++++++++++++++++++++++++- 3 files changed, 48 insertions(+), 3 deletions(-) diff --git a/app/Http/Controllers/SpecialCallsController.php b/app/Http/Controllers/SpecialCallsController.php index 6f173b9..72da6b9 100644 --- a/app/Http/Controllers/SpecialCallsController.php +++ b/app/Http/Controllers/SpecialCallsController.php @@ -97,7 +97,8 @@ class SpecialCallsController extends Controller public function add(Request $request) { - return view('pages.callsigns'); + $data = SpecialCall::all(); + return view('pages.callsigns', compact('data')); } public function addForm(Request $request) diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php index a85d43a..8d2d01a 100644 --- a/resources/views/layouts/app.blade.php +++ b/resources/views/layouts/app.blade.php @@ -5,8 +5,8 @@ - + @yield('styles') YOTA - @yield('title') @@ -19,5 +19,6 @@ + @yield('scripts') diff --git a/resources/views/pages/callsigns.blade.php b/resources/views/pages/callsigns.blade.php index 7866a1f..19dc984 100644 --- a/resources/views/pages/callsigns.blade.php +++ b/resources/views/pages/callsigns.blade.php @@ -5,5 +5,48 @@ @section('navbar', View::make('inc.special_navbar')) @section('content') - CALLSIGNS ADMINISTRATION +

Callsigns Administration:

+ @if (count($data) > 0) +
+ + @foreach ($data as $row) + + + + + + @endforeach +
{{ $row->sign }}
+
+ @endif + +

Add Callsign:

+
+ @csrf +
+ + +
+
+ + +
+
+ +
+
+@endsection + +@section('scripts') + + @endsection -- cgit v1.2.3