index.edge

42 lines | 1.22 kB Blame History Raw Download
@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>
      </tr>
    </thead>
    <tbody class="tbody">
      @each(submission in submissions)
      <tr>
        <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>
        <td>{{ submission.status.status }}</td>
        <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