2016-02-27 07:44:02 +08:00
|
|
|
@extends('base')
|
|
|
|
|
|
|
|
@section('content')
|
|
|
|
|
|
|
|
@include('settings/navbar', ['selected' => 'roles'])
|
|
|
|
|
2016-03-06 02:09:21 +08:00
|
|
|
<div class="container small">
|
2016-02-27 07:44:02 +08:00
|
|
|
|
2016-05-22 17:44:31 +08:00
|
|
|
<div class="row action-header">
|
|
|
|
<div class="col-sm-8">
|
2016-12-04 22:08:04 +08:00
|
|
|
<h1>{{ trans('settings.role_user_roles') }}</h1>
|
2016-05-22 17:44:31 +08:00
|
|
|
</div>
|
|
|
|
<div class="col-sm-4">
|
|
|
|
<p></p>
|
2016-12-04 22:08:04 +08: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 17:44:31 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
2016-02-28 03:24:42 +08:00
|
|
|
|
2016-02-27 07:44:02 +08:00
|
|
|
<table class="table">
|
|
|
|
<tr>
|
2016-12-04 22:08:04 +08:00
|
|
|
<th>{{ trans('settings.role_name') }}</th>
|
2016-02-27 07:44:02 +08:00
|
|
|
<th></th>
|
2016-12-31 22:27:40 +08:00
|
|
|
<th class="text-center">{{ trans('settings.users') }}</th>
|
2016-02-27 07:44:02 +08:00
|
|
|
</tr>
|
|
|
|
@foreach($roles as $role)
|
|
|
|
<tr>
|
2016-08-14 19:29:35 +08:00
|
|
|
<td><a href="{{ baseUrl("/settings/roles/{$role->id}") }}">{{ $role->display_name }}</a></td>
|
2016-02-27 07:44:02 +08:00
|
|
|
<td>{{ $role->description }}</td>
|
2016-12-31 22:27:40 +08:00
|
|
|
<td class="text-center">{{ $role->users->count() }}</td>
|
2016-02-27 07:44:02 +08:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</table>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
@stop
|