From f0b031769c30ef868b2ed0d8bbb666a785983e59 Mon Sep 17 00:00:00 2001 From: Mateja Date: Sat, 31 Oct 2020 21:32:30 +0100 Subject: Show approved reservations... --- app/Http/Controllers/SpecialCallsController.php | 2 +- resources/views/pages/activities.blade.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/SpecialCallsController.php b/app/Http/Controllers/SpecialCallsController.php index 2f3282d..153e6b9 100644 --- a/app/Http/Controllers/SpecialCallsController.php +++ b/app/Http/Controllers/SpecialCallsController.php @@ -17,7 +17,7 @@ class SpecialCallsController extends Controller { public function activities(Request $request) { - $activities = Reservation::all(); + $activities = Reservation::where('approved', '1')->get(); //$activities = Reservation::addSelect([ //'specialCall' => SpecialCall::select('sign') ////->whereColumn('reservations.specialCall', 'special_calls.id') diff --git a/resources/views/pages/activities.blade.php b/resources/views/pages/activities.blade.php index 889453c..57b5100 100644 --- a/resources/views/pages/activities.blade.php +++ b/resources/views/pages/activities.blade.php @@ -5,7 +5,7 @@ @section('navbar', View::make('inc.special_navbar')) @section('content') -@if (isset($activities)) +@if (count($activities) > 0)
-- cgit v1.2.3