39 lines
1.5 KiB
PHP
39 lines
1.5 KiB
PHP
<x-layout.app>
|
|
<x-slot:page_title>User Administration</x-slot:page_title>
|
|
|
|
<x-card.card>
|
|
<x-table.table with_title_area>
|
|
<x-slot:title class="ml-3">Users</x-slot:title>
|
|
<x-slot:subtitle class="ml-3">Click name to edit</x-slot:subtitle>
|
|
<x-slot:title_block_right class="mr-3">
|
|
<x-form.button href="/admin/users/create">New User</x-form.button>
|
|
</x-slot:title_block_right>
|
|
|
|
<thead>
|
|
<tr>
|
|
<x-table.th>Name</x-table.th>
|
|
<x-table.th>School</x-table.th>
|
|
<x-table.th>Email</x-table.th>
|
|
<x-table.th>Cell Phone</x-table.th>
|
|
<x-table.th>Judging Preference</x-table.th>
|
|
</tr>
|
|
</thead>
|
|
<x-table.body>
|
|
@foreach($users as $user)
|
|
<tr>
|
|
<x-table.td><a href="/admin/users/{{ $user->id }}/edit">{{ $user->full_name(true) }}</a></x-table.td>
|
|
<x-table.td>{{ $user->has_school() ? $user->school->name : ' ' }}</x-table.td>
|
|
<x-table.td>{{ $user->email }}</x-table.td>
|
|
<x-table.td>{{ $user->cell_phone }}</x-table.td>
|
|
<x-table.td>{{ $user->judging_preference }}</x-table.td>
|
|
</tr>
|
|
@endforeach
|
|
</x-table.body>
|
|
</x-table.table>
|
|
</x-card.card>
|
|
</x-layout.app>
|
|
|
|
|
|
|
|
{{ $user->has_school() ? $user->school->name : 'No School' }}
|