Fix the view composer

This commit is contained in:
James Brooks
2014-11-17 13:39:30 +00:00
parent 929a9fc91d
commit eb87822db5

View File

@@ -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.';
}