4c4a32da3d
Incidents are now pulled out via the database, grouped together via php, then missing days are added to the data
59 lines
1.9 KiB
PHP
59 lines
1.9 KiB
PHP
@extends('layout.master')
|
|
|
|
@section('content')
|
|
@if($bannerImage = Setting::get('app_banner'))
|
|
<div class="row app-banner">
|
|
<div class="col-md-12 text-center">
|
|
<?php $bannerType = Setting::get('app_banner_type') ?>
|
|
@if($appUrl = Setting::get('app_domain'))
|
|
<a href="{{ $appUrl }}"><img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive"></a>
|
|
@else
|
|
<img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive">
|
|
@endif
|
|
</div>
|
|
</div>
|
|
@endif
|
|
|
|
<div class="alert alert-{{ $systemStatus }}">{{ $systemMessage }}</div>
|
|
|
|
@if($aboutApp)
|
|
<div class="about-app">
|
|
<h1>{{ trans('cachet.about_this_site') }}</h1>
|
|
<p>{{ $aboutApp }}</p>
|
|
</div>
|
|
@endif
|
|
|
|
@include('partials.components')
|
|
|
|
@if($displayMetrics && Setting::get('display_graphs'))
|
|
@include('partials.metrics')
|
|
@endif
|
|
|
|
@if(!$scheduledMaintenance->isEmpty())
|
|
@include('partials.schedule')
|
|
@endif
|
|
|
|
<h1>{{ trans('cachet.incidents.past') }}</h1>
|
|
@foreach($allIncidents as $date => $incidents)
|
|
@include('partials.incidents', compact('date', 'incidents'))
|
|
@endforeach
|
|
<hr>
|
|
|
|
<nav>
|
|
<ul class="pager">
|
|
<li class="previous">
|
|
<a href="{{ route('status-page') }}?start_date={{ $previousDate }}">
|
|
<span aria-hidden="true">←</span> {{ trans('cachet.incidents.previous_week') }}
|
|
</a>
|
|
</li>
|
|
@if($canPageForward)
|
|
<li class="next">
|
|
<a href="{{ route('status-page') }}?start_date={{ $nextDate }}">
|
|
{{ trans('cachet.incidents.next_week') }} <span aria-hidden="true">→</span>
|
|
</a>
|
|
</li>
|
|
@endif
|
|
</ul>
|
|
</nav>
|
|
@stop
|