Cachet/resources/views/index.blade.php

71 lines
2.2 KiB
PHP
Raw Normal View History

2014-11-16 23:17:34 +00:00
@extends('layout.master')
@section('content')
@if($subscribersEnabled)
2015-05-24 16:33:03 -05:00
<div class="pull-right">
<p><a class="btn btn-success btn-outline" href="{{ route('subscribe') }}">{{ trans('cachet.subscriber.button') }}</a></p>
</div>
@endif
2015-05-24 16:33:03 -05:00
<div class="clearfix"></div>
@include('partials.dashboard.errors')
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') ?>
@if($appUrl = Setting::get('app_domain'))
<a href="{{ $appUrl }}"><img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive"></a>
@else
2015-01-17 19:23:35 +00:00
<img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive">
@endif
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>
2015-05-18 09:46:19 +01:00
<p>{!! $aboutApp !!}</p>
</div>
@endif
2014-12-01 14:40:25 +00:00
@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>
2015-04-23 08:12:42 +01:00
@foreach($allIncidents as $date => $incidents)
@include('partials.incidents', [compact($date), compact($incidents)])
2014-12-27 23:43:31 -06:00
@endforeach
2015-01-17 19:23:35 +00:00
<hr>
<nav>
<ul class="pager">
@if($canPageBackward)
<li class="previous">
<a href="{{ route('status-page') }}?start_date={{ $previousDate }}">
<span aria-hidden="true">&larr;</span> {{ trans('cachet.incidents.previous_week') }}
</a>
</li>
@endif
@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