2016-02-26 18:44:02 -05:00
|
|
|
@extends('base')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
@include('settings/navbar', ['selected' => 'roles'])
|
|
|
|
|
2016-03-05 13:09:21 -05:00
|
|
|
<div class="container small">
|
2016-02-26 18:44:02 -05:00
|
|
|
|
2016-05-22 05:44:31 -04:00
|
|
|
<div class="row action-header">
|
|
|
|
<div class="col-sm-8">
|
|
|
|
<h1>User Roles</h1>
|
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<p></p>
|
2016-08-14 07:29:35 -04:00
|
|
|
<a href="{{ baseUrl("/settings/roles/new") }}" class="button float right pos"><i class="zmdi zmdi-lock-open"></i>Add new role</a>
|
2016-05-22 05:44:31 -04:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-02-27 14:24:42 -05:00
|
|
|
|
2016-02-26 18:44:02 -05:00
|
|
|
<table class="table">
|
|
|
|
<tr>
|
|
|
|
<th>Role Name</th>
|
|
|
|
<th></th>
|
|
|
|
<th class="text-right">Users</th>
|
|
|
|
</tr>
|
|
|
|
@foreach($roles as $role)
|
|
|
|
<tr>
|
2016-08-14 07:29:35 -04:00
|
|
|
<td><a href="{{ baseUrl("/settings/roles/{$role->id}") }}">{{ $role->display_name }}</a></td>
|
2016-02-26 18:44:02 -05:00
|
|
|
<td>{{ $role->description }}</td>
|
|
|
|
<td class="text-right">{{ $role->users->count() }}</td>
|
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|