Bulletinboard/resources/views/admin/users.blade.php

29 lines
1.0 KiB
PHP
Raw Normal View History

2021-02-24 09:01:35 +00:00
<x-layout>
<div class="container">
<table class="table">
<tr>
<th>Navn</th>
<th>Rolle</th>
<th>Rediger</th>
{{-- <th>Slet</th>--}}
</tr>
@foreach($users as $user)
<tr>
<td>{{ $user->username }}</td>
<td>{{ $user->role->name }}</td>
<td>
<a href="/admin/users/{{ $user->id }}/edit"><ion-icon name="pencil-outline"></ion-icon></a>
</td>
{{-- <td>--}}
{{-- <form action="/admin/users/{{ $user->id }}/" method="post">--}}
{{-- @method('delete')--}}
{{-- @csrf--}}
{{-- <button type="submit"><ion-icon name="trash-outline"></ion-icon></button>--}}
{{-- </form>--}}
{{-- </td>--}}
</tr>
@endforeach
</table>
</div>
</x-layout>