]> BookStack Code Mirror - bookstack/blob - resources/views/settings/roles/index.blade.php
Update settings.php
[bookstack] / resources / views / settings / roles / index.blade.php
1 @extends('simple-layout')
2
3 @section('body')
4
5     <div class="container small">
6
7         <div class="py-m">
8             @include('settings.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>{{ $role->description }}</td>
31                         <td class="text-center">{{ $role->users->count() }}</td>
32                     </tr>
33                 @endforeach
34             </table>
35
36
37         </div>
38     </div>
39
40 @stop