]> BookStack Code Mirror - bookstack/blob - resources/views/users/index.blade.php
Actually include the Queueable namespace...
[bookstack] / resources / views / users / index.blade.php
1 @extends('base')
2
3
4 @section('content')
5
6     @include('settings/navbar', ['selected' => 'users'])
7
8
9     <div class="container small" ng-non-bindable>
10         <div class="row action-header">
11             <div class="col-sm-8">
12                 <h1>{{ trans('settings.users') }}</h1>
13             </div>
14             <div class="col-sm-4">
15                 <p></p>
16                 @if(userCan('users-manage'))
17                     <a href="{{ baseUrl("/settings/users/create") }}" class="pos button float right"><i class="zmdi zmdi-account-add"></i>{{ trans('settings.users_add_new') }}</a>
18                 @endif
19             </div>
20         </div>
21
22         <div class="row">
23             <div class="col-sm-8">
24                 <div class="compact">
25                     {{ $users->links() }}
26                 </div>
27             </div>
28             <div class="col-sm-4">
29                 <form method="get" class="float right" action="{{ baseUrl("/settings/users") }}">
30                     @foreach(collect($listDetails)->except('search') as $name => $val)
31                         <input type="hidden" name="{{ $name }}" value="{{ $val }}">
32                     @endforeach
33                     <input type="text" name="search" placeholder="{{ trans('settings.users_search') }}" @if($listDetails['search']) value="{{$listDetails['search']}}" @endif>
34                 </form>
35             </div>
36         </div>
37
38         <table class="table">
39             <tr>
40                 <th></th>
41                 <th><a href="{{ sortUrl('/settings/users', $listDetails, ['sort' => 'name']) }}">{{ trans('auth.name') }}</a></th>
42                 <th><a href="{{ sortUrl('/settings/users', $listDetails, ['sort' => 'email']) }}">{{ trans('auth.email') }}</a></th>
43                 <th>{{ trans('settings.role_user_roles') }}</th>
44             </tr>
45             @foreach($users as $user)
46                 <tr>
47                     <td style="line-height: 0;"><img class="avatar med" src="{{ $user->getAvatar(40)}}" alt="{{ $user->name }}"></td>
48                     <td>
49                         @if(userCan('users-manage') || $currentUser->id == $user->id)
50                             <a href="{{ baseUrl("/settings/users/{$user->id}") }}">
51                                 @endif
52                                 {{ $user->name }}
53                                 @if(userCan('users-manage') || $currentUser->id == $user->id)
54                             </a>
55                         @endif
56                     </td>
57                     <td>
58                         @if(userCan('users-manage') || $currentUser->id == $user->id)
59                             <a href="{{ baseUrl("/settings/users/{$user->id}") }}">
60                                 @endif
61                                 {{ $user->email }}
62                                 @if(userCan('users-manage') || $currentUser->id == $user->id)
63                             </a>
64                         @endif
65                     </td>
66                     <td>
67                         @foreach($user->roles as $index => $role)
68                             <small><a href="{{ baseUrl("/settings/roles/{$role->id}") }}">{{$role->display_name}}</a>@if($index !== count($user->roles) -1),@endif</small>
69                         @endforeach
70                     </td>
71                 </tr>
72             @endforeach
73         </table>
74
75         <div>
76             {{ $users->links() }}
77         </div>
78     </div>
79
80 @stop