From eb87822db599e5c4dae5969d0bac72e0996e6d7a Mon Sep 17 00:00:00 2001 From: James Brooks Date: Mon, 17 Nov 2014 13:39:30 +0000 Subject: [PATCH] Fix the view composer --- app/view-composers.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/view-composers.php b/app/view-composers.php index c28ee596..78bccc6c 100644 --- a/app/view-composers.php +++ b/app/view-composers.php @@ -7,11 +7,11 @@ ->groupBy('status') ->orderBy('status', 'desc'); - if ($incidents->count() === 0 || (int) $incident->first()->status === 4) { + if ($incidents->count() === 0 || (int) $incidents->first()->status === 4) { $status = 'success'; $message = 'All systems are functional.'; } else { - $status = 'error'; + $status = 'danger'; $message = 'Some systems are experiencing issues.'; }