43 lines
1.8 KiB
PHP
43 lines
1.8 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 or delete<br>(*) Head Director</x-slot:subtitle>
|
|
<x-slot:title_block_right class="mr-3">
|
|
<x-form.button href="{{ route('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>
|
|
<x-table.th>Privileges</x-table.th>
|
|
</tr>
|
|
</thead>
|
|
<x-table.body>
|
|
@foreach($users as $user)
|
|
<tr class="hover:bg-gray-50">
|
|
<x-table.td><a href="{{ route('admin.users.edit',$user) }}">{{ $user->full_name(true) }}</a>{{ $user->hasFlag('head_director') ? ' *':'' }}</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>
|
|
<x-table.td>
|
|
@if($user->is_admin)
|
|
Admin
|
|
@elseif($user->is_tab)
|
|
Tabulator
|
|
@endif
|
|
</x-table.td>
|
|
</tr>
|
|
@endforeach
|
|
</x-table.body>
|
|
</x-table.table>
|
|
</x-card.card>
|
|
</x-layout.app>
|