You are now able to remove people who have signed up for events - With routing etc.

This commit is contained in:
Anders
2020-07-28 14:54:19 +02:00
parent cf533bb69f
commit 556e6cf25a
6 changed files with 144 additions and 4 deletions
@@ -24,6 +24,7 @@
<th>Event Navn</th>
<th>Event Beskrivelse</th>
<th>Event Dato</th>
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/eye.svg') }}" alt="Update"></th>
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/pencil.svg') }}" alt="Update"></th>
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
</tr>
@@ -32,6 +33,7 @@
<td>{{ $event->name }}</td>
<td>{{ $event->description }}</td>
<td>{{ $event->date }}</td>
<td><a href="{{ route("events.signups", [ "event" => $event ]) }}"><img class="w-100" src="{{ asset('/images/icons/eye-dark.svg') }}" alt="Update"></a></td>
<td><a href="{{ route("events.edit", [ "event" => $event ]) }}"><img class="w-100" src="{{ asset('/images/icons/pencil-dark.svg') }}" alt="Update"></a></td>
<td><form method="post" action="{{ route("events.destroy", [ "event" => $event ]) }}" class="w-100 nostyle">
@csrf