2016-02-27 00:44:02 +01:00
|
|
|
@extends('base')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
@include('settings/navbar', ['selected' => 'roles'])
|
|
|
|
|
2016-03-05 19:09:21 +01:00
|
|
|
<div class="container small">
|
2016-02-27 00:44:02 +01:00
|
|
|
|
|
|
|
<h1>User Roles</h1>
|
2016-02-27 20:24:42 +01:00
|
|
|
|
|
|
|
<p>
|
|
|
|
<a href="/settings/roles/new" class="text-pos"><i class="zmdi zmdi-lock-open"></i>Add new role</a>
|
|
|
|
</p>
|
|
|
|
|
2016-02-27 00:44:02 +01:00
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<th>Role Name</th>
|
|
|
|
<th></th>
|
|
|
|
<th class="text-right">Users</th>
|
|
|
|
</tr>
|
|
|
|
@foreach($roles as $role)
|
|
|
|
<tr>
|
|
|
|
<td><a href="/settings/roles/{{ $role->id }}">{{ $role->display_name }}</a></td>
|
|
|
|
<td>{{ $role->description }}</td>
|
|
|
|
<td class="text-right">{{ $role->users->count() }}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|