v0.9.4 - Added remove function to feedback admin page

Added - You can now see if you're participating an event on event.index and yourevents.blade.php
Fixed `Tilbage` buttons
This commit is contained in:
Anders
2020-08-13 09:08:34 +02:00
parent 4a46817265
commit 0300a6a76b
10 changed files with 151 additions and 183 deletions
@@ -27,11 +27,19 @@
<tr>
<th>Feedback Besked</th>
<th>Ris el. Ros</th>
<th style="width: 1em;"><img class="w-100" src="{{ asset('/images/icons/trashcan.svg') }}" alt="Delete"></th>
</tr>
@foreach($feedback as $fb)
<tr>
<td>{{ $fb->message }}</td>
<td>{{ $fb->suggestion_form }}</td>
<td>{{ $fb->message }}</td>
<td>{{ $fb->suggestion_form }}</td>
<td><form method="post" action="{{ route("feedbacks.destroy", [ "feedback" => $fb ]) }}" class="w-100 nostyle">
@csrf
@method("delete")
<button onclick="return confirm('Are you sure you want to delete?');" class="w-100 nostyle" type="submit"><img class="w-100 cursor-pointer" src="{{ asset('/images/icons/trashcan-dark.svg') }}" alt="Delete"></button>
</form>
</td>
</tr>
@endforeach
</table>