index.edge

38 lines | 980 B Blame History Raw Download
@layout('layouts.main')

@section('content')

<section class="box is-full-width">
  <h3 class="is-size-3">Submission Status Actions</h3>
  <ul>
    <li><a href="{{ 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="{{ 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>
          </form>
        </td>
      </tr>
      @endeach
    </tbody>
  </table>
</section>

@endsection