2014-11-16 23:17:34 +00:00
|
|
|
@extends('layout.master')
|
|
|
|
|
|
|
|
@section('content')
|
2015-06-10 21:29:35 +01:00
|
|
|
@if($subscribersEnabled)
|
2015-05-24 16:33:03 -05:00
|
|
|
<div class="pull-right">
|
2015-08-13 22:28:30 +01:00
|
|
|
<p><a class="btn btn-success btn-outline" href="{{ route('subscribe.subscribe') }}">{{ trans('cachet.subscriber.button') }}</a></p>
|
2015-05-24 16:33:03 -05:00
|
|
|
</div>
|
2015-06-10 21:29:35 +01:00
|
|
|
@endif
|
2015-05-24 16:33:03 -05:00
|
|
|
|
|
|
|
<div class="clearfix"></div>
|
|
|
|
|
2015-06-15 21:47:35 +01:00
|
|
|
<div class="section-messages">
|
2015-08-13 22:34:26 +01:00
|
|
|
@include('dashboard.partials.errors')
|
2015-06-15 21:47:35 +01:00
|
|
|
</div>
|
2015-05-24 16:33:03 -05:00
|
|
|
|
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-08-03 22:32:36 +01:00
|
|
|
@if($app_url = Setting::get('app_domain'))
|
|
|
|
<a href="{{ $app_url }}"><img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive"></a>
|
2015-03-12 23:56:08 +00:00
|
|
|
@else
|
2015-01-17 19:23:35 +00:00
|
|
|
<img src="data:{{ $bannerType }};base64, {{ $bannerImage}}" class="banner-image img-responsive">
|
2015-03-12 23:56:08 +00:00
|
|
|
@endif
|
2014-12-31 11:45:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2015-06-15 21:47:35 +01:00
|
|
|
<div class="section-status">
|
|
|
|
<div class="alert alert-{{ $systemStatus }}">{{ $systemMessage }}</div>
|
|
|
|
</div>
|
2014-12-23 21:03:02 +00:00
|
|
|
|
2015-08-03 22:32:36 +01:00
|
|
|
@if($about_app)
|
2015-01-06 15:44:27 -06:00
|
|
|
<div class="about-app">
|
2015-01-01 15:15:07 -06:00
|
|
|
<h1>{{ trans('cachet.about_this_site') }}</h1>
|
2015-08-03 22:32:36 +01:00
|
|
|
<p>{!! $about_app !!}</p>
|
2014-12-31 14:59:46 +00:00
|
|
|
</div>
|
|
|
|
@endif
|
|
|
|
|
2015-08-03 22:32:36 +01:00
|
|
|
@if(!$component_groups->isEmpty() || !$ungrouped_components->isEmpty())
|
2015-06-15 21:47:35 +01:00
|
|
|
<div class="section-components">
|
|
|
|
@include('partials.components')
|
|
|
|
</div>
|
2015-06-18 20:50:43 +01:00
|
|
|
@endif
|
2014-11-16 23:34:46 +00:00
|
|
|
|
2015-08-03 22:32:36 +01:00
|
|
|
@if($display_metrics && Setting::get('display_graphs'))
|
2015-06-15 21:47:35 +01:00
|
|
|
<div class="section-metrics">
|
|
|
|
@include('partials.metrics')
|
|
|
|
</div>
|
2015-01-21 02:32:18 -06:00
|
|
|
@endif
|
2014-12-01 08:39:45 +00:00
|
|
|
|
2015-08-03 22:32:36 +01:00
|
|
|
@if(!$scheduled_maintenance->isEmpty())
|
2015-06-15 21:47:35 +01:00
|
|
|
<div class="section-scheduled">
|
|
|
|
@include('partials.schedule')
|
|
|
|
</div>
|
2015-02-28 20:18:30 +00:00
|
|
|
@endif
|
|
|
|
|
2015-06-15 21:47:35 +01:00
|
|
|
<div class="section-timeline">
|
|
|
|
<h1>{{ trans('cachet.incidents.past') }}</h1>
|
2015-08-03 22:32:36 +01:00
|
|
|
@foreach($all_incidents as $date => $incidents)
|
2015-06-15 21:47:35 +01:00
|
|
|
@include('partials.incidents', [compact($date), compact($incidents)])
|
|
|
|
@endforeach
|
|
|
|
</div>
|
2015-01-03 00:36:27 -06:00
|
|
|
|
|
|
|
<nav>
|
|
|
|
<ul class="pager">
|
2015-08-03 22:32:36 +01:00
|
|
|
@if($can_page_backward)
|
2015-01-03 00:36:27 -06:00
|
|
|
<li class="previous">
|
2015-08-03 22:32:36 +01:00
|
|
|
<a href="{{ route('status-page') }}?start_date={{ $previous_date }}">
|
2015-01-05 11:12:34 +00:00
|
|
|
<span aria-hidden="true">←</span> {{ trans('cachet.incidents.previous_week') }}
|
2015-01-03 00:36:27 -06:00
|
|
|
</a>
|
|
|
|
</li>
|
2015-05-08 11:06:02 +01:00
|
|
|
@endif
|
2015-08-03 22:32:36 +01:00
|
|
|
@if($can_page_forward)
|
2015-02-06 14:24:53 +00:00
|
|
|
<li class="next">
|
2015-08-03 22:32:36 +01:00
|
|
|
<a href="{{ route('status-page') }}?start_date={{ $next_date }}">
|
2015-01-05 11:12:34 +00:00
|
|
|
{{ trans('cachet.incidents.next_week') }} <span aria-hidden="true">→</span>
|
2015-01-03 00:36:27 -06:00
|
|
|
</a>
|
|
|
|
</li>
|
2015-02-06 14:24:53 +00:00
|
|
|
@endif
|
2015-01-03 00:36:27 -06:00
|
|
|
</ul>
|
|
|
|
</nav>
|
2014-11-16 23:17:34 +00:00
|
|
|
@stop
|