]> BookStack Code Mirror - bookstack/blob - resources/views/settings/roles/index.blade.php
Added language list favourites sorting, updated styles
[bookstack] / resources / views / settings / roles / index.blade.php
1 @extends('layouts.simple')
2
3 @section('body')
4
5     <div class="container small">
6
7         @include('settings.parts.navbar', ['selected' => 'roles'])
8
9         <div class="card content-wrap auto-height">
10
11             <div class="grid half v-center">
12                 <h1 class="list-heading">{{ trans('settings.role_user_roles') }}</h1>
13
14                 <div class="text-right">
15                     <a href="{{ url("/settings/roles/new") }}" class="button outline">{{ trans('settings.role_create') }}</a>
16                 </div>
17             </div>
18
19             <table class="table">
20                 <tr>
21                     <th>{{ trans('settings.role_name') }}</th>
22                     <th></th>
23                     <th class="text-center">{{ trans('settings.users') }}</th>
24                 </tr>
25                 @foreach($roles as $role)
26                     <tr>
27                         <td><a href="{{ url("/settings/roles/{$role->id}") }}">{{ $role->display_name }}</a></td>
28                         <td>
29                             @if($role->mfa_enforced)
30                                 <span title="{{ trans('settings.role_mfa_enforced') }}">@icon('lock') </span>
31                             @endif
32                             {{ $role->description }}
33                         </td>
34                         <td class="text-center">{{ $role->users->count() }}</td>
35                     </tr>
36                 @endforeach
37             </table>
38
39
40         </div>
41     </div>
42
43 @stop