diff --git a/app/views/incident.blade.php b/app/views/incident.blade.php index 08602881..864512b5 100644 --- a/app/views/incident.blade.php +++ b/app/views/incident.blade.php @@ -2,19 +2,14 @@ $incidentDate = Carbon::now()->subDays($i); $incidents = Incident::whereRaw('DATE(created_at) = "' . $incidentDate->format('Y-m-d') . '"')->orderBy('created_at', 'desc')->get(); ?> -
  • -

    {{ $incidentDate->format('jS M, Y') }}

    - -
  • +

    {{ $incidentDate->format('jS M, Y') }}

    +
    +@if($incidents->count() === 0) +

    No incidents reported.

    +@else +@foreach($incidents as $incident) +

    {{ $incident->name }}, {{ $incident->humanStatus }}

    +

    {{ $incident->message }}

    +

    +@endforeach +@endif diff --git a/app/views/index.blade.php b/app/views/index.blade.php index 88b5913e..65924103 100644 --- a/app/views/index.blade.php +++ b/app/views/index.blade.php @@ -1,6 +1,15 @@ @extends('layout.master') @section('content') +
    +
    +
    +
    + SITE_NAME +
    +
    +
    +
    {{ $systemMessage }}
    @@ -22,10 +31,8 @@

    Past Incidents

    -
    @stop diff --git a/app/views/layout/master.blade.php b/app/views/layout/master.blade.php index 81f796c1..2ad84000 100644 --- a/app/views/layout/master.blade.php +++ b/app/views/layout/master.blade.php @@ -10,6 +10,40 @@ +