Cachet/resources/views/single-incident.blade.php

46 lines
1.5 KiB
PHP
Raw Normal View History

@extends('layout.master')
2016-03-22 20:18:51 +00:00
@section('bodyClass', 'no-padding')
@section('outer-content')
@include('partials.nav')
@stop
@section('content')
2016-10-06 17:21:18 +01:00
<h1>{{ $incident->name }} <small>{{ formatted_date($incident->created_at) }}</small></h1>
2016-10-06 17:21:18 +01:00
<hr>
<div class="markdown-body">
{!! $incident->formattedMessage !!}
</div>
@if($incident->updates)
<div class="timeline">
<div class="content-wrapper">
2016-10-06 17:21:18 +01:00
@foreach ($incident->updates as $index => $update)
<div class="moment {{ $index === 0 ? 'first' : null }}" id="update-{{ $update->id }}">
<div class="row event clearfix">
<div class="col-sm-1">
2016-10-06 17:21:18 +01:00
<div class="status-icon status-{{ $update->status }}" data-toggle="tooltip" title="{{ $update->human_status }}" data-placement="left">
<i class="{{ $update->icon }}"></i>
2015-08-15 20:51:04 +01:00
</div>
</div>
<div class="col-xs-10 col-xs-offset-2 col-sm-11 col-sm-offset-0">
2016-10-06 17:21:18 +01:00
<div class="panel panel-message incident">
<div class="panel-body">
<div class="markdown-body">
{!! $update->formattedMessage !!}
</div>
</div>
<div class="panel-footer"><small>{{ trans('cachet.incidents.posted', ['timestamp' => $update->created_at_diff]) }}</small></div>
</div>
</div>
2015-08-15 20:51:04 +01:00
</div>
</div>
2016-10-06 17:21:18 +01:00
@endforeach
2015-08-15 20:51:04 +01:00
</div>
</div>
2016-10-06 17:21:18 +01:00
@endif
@stop