index.edge
Home
/
resources /
views /
status /
index.edge
@layout('layouts.main')
@section('content')
<section class="box is-full-width">
<h3 class="is-size-3">Submission Status Actions</h3>
<ul>
<li><a href="{{ APP_URL() + route('/status/create') }}">Add Status</a></li>
</ul>
</section>
<p>There are {{ statuses.length }} total statuses.</p>
<section class="box">
<table class="table">
<thead class="thead">
<tr>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody class="tbody">
@each(status in statuses)
<tr>
<td>{{ status.status }}</td>
<td>
<form action="{{ APP_URL() + route('/status.destroy', { id: status.id }) + '?_method=DELETE'}}" method="post">
{{ csrfField() }}
<button type="submit" name="button" class="is-small button is-danger" onclick="return confirm('Are you sure you want to delete this status?');">Delete</button>
<a href="{{APP_URL() + route('/status.edit', { id: status.id })}}" class="button is-small is-warning">Edit</a>
</form>
</td>
</tr>
@endeach
</tbody>
</table>
</section>
@endsection