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
|
|
|
|
2016-05-22 11:44:31 +02:00
|
|
|
<div class="row action-header">
|
|
|
|
<div class="col-sm-8">
|
2016-12-04 15:08:04 +01:00
|
|
|
<h1>{{ trans('settings.role_user_roles') }}</h1>
|
2016-05-22 11:44:31 +02:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<p></p>
|
2016-12-04 15:08:04 +01:00
|
|
|
<a href="{{ baseUrl("/settings/roles/new") }}" class="button float right pos"><i class="zmdi zmdi-lock-open"></i>{{ trans('settings.role_create') }}</a>
|
2016-05-22 11:44:31 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-02-27 20:24:42 +01:00
|
|
|
|
2016-02-27 00:44:02 +01:00
|
|
|
<table class="table">
|
|
|
|
<tr>
|
2016-12-04 15:08:04 +01:00
|
|
|
<th>{{ trans('settings.role_name') }}</th>
|
2016-02-27 00:44:02 +01:00
|
|
|
<th></th>
|
2016-12-31 15:27:40 +01:00
|
|
|
<th class="text-center">{{ trans('settings.users') }}</th>
|
2016-02-27 00:44:02 +01:00
|
|
|
</tr>
|
|
|
|
@foreach($roles as $role)
|
|
|
|
<tr>
|
2016-08-14 13:29:35 +02:00
|
|
|
<td><a href="{{ baseUrl("/settings/roles/{$role->id}") }}">{{ $role->display_name }}</a></td>
|
2016-02-27 00:44:02 +01:00
|
|
|
<td>{{ $role->description }}</td>
|
2016-12-31 15:27:40 +01:00
|
|
|
<td class="text-center">{{ $role->users->count() }}</td>
|
2016-02-27 00:44:02 +01:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|