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