diff --git a/app/helpers.php b/app/helpers.php index d1f19b5e..0d1dda04 100644 --- a/app/helpers.php +++ b/app/helpers.php @@ -2,27 +2,27 @@ if ( ! function_exists('elixir')) { - /** - * Get the path to a versioned Elixir file. - * - * @param string $file - * @return string - */ - function elixir($file) - { - static $manifest = null; + /** + * Get the path to a versioned Elixir file. + * + * @param string $file + * @return string + */ + function elixir($file) + { + static $manifest = null; - if (is_null($manifest)) - { - $manifest = json_decode(file_get_contents(public_path().'/build/rev-manifest.json'), true); - } + if (is_null($manifest)) + { + $manifest = json_decode(file_get_contents(public_path().'/build/rev-manifest.json'), true); + } - if (isset($manifest[$file])) - { - return '/build/'.$manifest[$file]; - } + if (isset($manifest[$file])) + { + return '/build/'.$manifest[$file]; + } - throw new InvalidArgumentException("File {$file} not defined in asset manifest."); - } + throw new InvalidArgumentException("File {$file} not defined in asset manifest."); + } } diff --git a/app/view-composers.php b/app/view-composers.php index b787f50c..8f5290b8 100644 --- a/app/view-composers.php +++ b/app/view-composers.php @@ -1,24 +1,24 @@ groupBy('status') - ->orderBy('status', 'desc'); + $incidents = Incident::whereRaw('DATE(created_at) = "' . $date . '"') + ->groupBy('status') + ->orderBy('status', 'desc'); - $incidentCount = $incidents->count(); + $incidentCount = $incidents->count(); - if ($incidentCount <= 1 || ($incidentCount > 1 && (int) $incidents->first()->status === 4)) { - $status = 'success'; - $message = Lang::get('overview.good'); - } else { - $status = 'danger'; - $message = Lang::get('overview.bad'); - } + if ($incidentCount <= 1 || ($incidentCount > 1 && (int) $incidents->first()->status === 4)) { + $status = 'success'; + $message = Lang::get('overview.good'); + } else { + $status = 'danger'; + $message = Lang::get('overview.bad'); + } - $view->with([ - 'systemStatus' => $status, - 'systemMessage' => $message - ]); + $view->with([ + 'systemStatus' => $status, + 'systemMessage' => $message + ]); }); diff --git a/app/views/auth/login.blade.php b/app/views/auth/login.blade.php index bf6088da..93c1c611 100644 --- a/app/views/auth/login.blade.php +++ b/app/views/auth/login.blade.php @@ -2,34 +2,34 @@ @section('content') -
{{ $component->description }}
-{{ $component->description }}
+You're logged in. This will be a link to the Dashboard.
- @endif + @if(Auth::check()) + Logout +You're logged in. This will be a link to the Dashboard.
+ @endif - @include('imports.components') + @include('imports.components') - @if(Setting::get('display_graphs')) - @include('imports.graphs') - @endif + @if(Setting::get('display_graphs')) + @include('imports.graphs') + @endif - @for($i=0; $i <= 7; $i++) - @include('imports.incident', array('i', $i)) - @endfor + @for($i=0; $i <= 7; $i++) + @include('imports.incident', array('i', $i)) + @endfor - @include('imports.support-link') + @include('imports.support-link') @stop diff --git a/app/views/layout/master.blade.php b/app/views/layout/master.blade.php index 9b0c321f..cfdfa2c4 100644 --- a/app/views/layout/master.blade.php +++ b/app/views/layout/master.blade.php @@ -1,20 +1,20 @@ - - -You'll be able to reconfigure Cachet later on.
-At least when there is a management panel…
-You'll be able to reconfigure Cachet later on.
+At least when there is a management panel…
+