Cachet/app/views/index.blade.php

55 lines
1.6 KiB
PHP
Raw Normal View History

2014-11-16 23:17:34 +00:00
@extends('layout.master')
@section('content')
2014-12-31 11:45:54 +00:00
@if($bannerImage = Setting::get('app_banner'))
2015-01-06 15:44:27 -06:00
<div class="row app-banner">
<div class="col-md-12 text-center">
2014-12-31 11:45:54 +00:00
<?php $bannerType = Setting::get('app_banner_type') ?>
2015-01-17 19:23:35 +00:00
<img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive">
2014-12-31 11:45:54 +00:00
</div>
</div>
@endif
2015-01-06 15:44:27 -06:00
<div class="alert alert-{{ $systemStatus }}">{{ $systemMessage }}</div>
2015-01-01 19:44:15 +00:00
@if($aboutApp)
2015-01-06 15:44:27 -06:00
<div class="about-app">
<h1>{{ trans('cachet.about_this_site') }}</h1>
<p>{{ $aboutApp }}</p>
</div>
@endif
2014-12-01 14:40:25 +00:00
@include('partials.components')
@if($displayMetrics && Setting::get('display_graphs'))
@include('partials.graphs')
@endif
@if(!$scheduledMaintenance->isEmpty())
@include('partials.schedule')
@endif
<h1>{{ trans('cachet.incidents.past') }}</h1>
2015-01-01 21:58:27 +00:00
@foreach($allIncidents as $incidents)
@include('partials.incidents', $incidents)
2014-12-27 23:43:31 -06:00
@endforeach
2015-01-17 19:23:35 +00:00
<hr>
<nav>
<ul class="pager">
<li class="previous">
<a href="{{ route('status-page') }}?start_date={{ $previousDate }}">
<span aria-hidden="true">&larr;</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">&rarr;</span>
</a>
</li>
@endif
</ul>
</nav>
2014-11-16 23:17:34 +00:00
@stop