Cachet/app/views/dashboard/index.blade.php
2014-12-31 14:30:21 +00:00

52 lines
2.3 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

@extends('layout.dashboard')
@section('content')
<div class="header">
<span class="uppercase">
<i class="icon ion-speedometer"></i> {{ Lang::get('cachet.dashboard.dashboard') }}
</span>
</div>
<div class="content-wrapper">
<div class="row">
<div class="col-md-12">
<h4 class='sub-header'>Component Statuses</h4>
<div class='panel panel-default'>
<div class='list-group'>
@forelse($components as $component)
<div class='list-group-item'>
{{ Form::open(['class' => 'component-inline']) }}
<div class='row striped-list-item'>
<div class='col-lg-2 col-xs-12'>
<strong>{{ $component->name }}</strong>
</div>
<div class='col-lg-10 col-xs-12 text-right'>
@foreach(Lang::get('cachet.component.status') as $statusID => $status)
<div class='radio-inline'>
<label>
<input type='radio' name='status' value='{{ $statusID }}' {{ $component->status === $statusID ? "checked" : null }} />
{{ $status }}
</label>
</div>
@endforeach
</div>
</div>
<input type='hidden' name='component_id' value='{{ $component->id }}' />
{{ Form::close() }}
</div>
@empty
<div class='list-group-item text-danger'>You should add a component.</div>
@endforelse
</div>
</div>
<div class='alert alert-success alert-dismissable hide fade in out' role='alert'>
<button type='button' class='close'>
<span aria-hidden='true'>×</span>
</button>
Component updated.
</div>
</div>
</div>
</div>
@stop