Switch to using Lang::get for view-composer
This commit is contained in:
6
app/lang/en/overview.php
Normal file
6
app/lang/en/overview.php
Normal file
@@ -0,0 +1,6 @@
|
||||
<?php
|
||||
|
||||
return array(
|
||||
'good' => 'All systems are functional.',
|
||||
'bad' => 'Some systems are experiencing issues.',
|
||||
);
|
||||
@@ -11,10 +11,10 @@
|
||||
|
||||
if ($incidentCount <= 1 || ($incidentCount > 1 && (int) $incidents->first()->status === 4)) {
|
||||
$status = 'success';
|
||||
$message = 'All systems are functional.';
|
||||
$message = Lang::get('overview.good');
|
||||
} else {
|
||||
$status = 'danger';
|
||||
$message = 'Some systems are experiencing issues.';
|
||||
$message = Lang::get('overview.bad');
|
||||
}
|
||||
|
||||
$view->with([
|
||||
|
||||
Reference in New Issue
Block a user