index.edge
Home
/
resources /
views /
submissions /
index.edge
@layout('layouts.main')
@section('content')
<h1 class="is-size03">Submissions</h1>
<p>There are {{ submissions.length }} total submissions.</p>
<section class="box">
<table class="table">
<thead class="thead">
<tr>
<th>Name</th>
<th>Element</th>
<th>Theme</th>
<th>Steward</th>
<th>Date Submitted</th>
<th>Status</th>
<th>Action</th>
</tr>
</thead>
<tbody class="tbody">
@each(submission in submissions)
<tr valign="middle">
<td>{{ submission.name }}</td>
<td>{{ submission.element.name }}</td>
<td>{{ submission.element.theme.name }}</td>
<td>{{ submission.steward.contact.first_name}} {{ submission.steward.contact.last_name}}</td>
<td>{{ submission.created_at}}</td>
@if(submission.status.status == 'Completed')
<td><span class="tag is-success" style="margin: 10px;">{{ submission.status.status }}</span></td>
@elseif(submission.status.status == 'In progress')
<td><span class="tag is-warning" style="margin: 10px;">{{ submission.status.status }}</span></td>
@elseif(submission.status.status == 'Not Started')
<td><span class="tag is-dark" style="margin: 10px;">{{ submission.status.status }}</span></td>
@elseif(submission.status.status == 'Awaiting Response')
<td><span class="tag is-light" style="margin: 10px;">{{ submission.status.status }}</span></td>
@else
<td>{{ submission.status.status }}</td>
@endif
<td>
<form action="{{ route('/themes.destroy', { id: submission.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 theme?');">Delete</button>
</form>
</td>
</tr>
@endeach
</tbody>
</table>
</section>
@endsection