add new frontend

This commit is contained in:
TimmensOne
2023-04-06 12:17:42 +02:00
parent 50acb5fd41
commit 64c64c001b
18 changed files with 887 additions and 398 deletions

View File

@ -1,14 +1,14 @@
<div>
<ul>
<li>room_code: {{ $location->room_code }}</li>
<li>timestamp_located_since: {{ $location->timestamp_located_since }}</li>
</ul>
<tr>
<td>{{ $location->room_code }}</td>
<td>{{ $location->timestamp_located_since }}</td>
@can('admin-only')
<button><a href="locations/{{ $location->location_transaction_id }}/edit">Edit</a></button>
<form method="POST" action="locations/{{ $location->location_transaction_id }}">
@method('DELETE')
@csrf
<button>Delete</button>
</form>
<td>
<button><a href="locations/{{ $location->location_transaction_id }}/edit">Edit</a></button>
<form method="POST" action="locations/{{ $location->location_transaction_id }}">
@method('DELETE')
@csrf
<button>Delete</button>
</form>
</td>
@endcan
</div>
</tr>