This commit is contained in:
2021-12-25 23:17:47 -03:00
parent 7e01974ec8
commit d7d671fb51
68 changed files with 2991 additions and 160 deletions

View File

@ -6,19 +6,19 @@
</div>
<div class="section-heading row">
<div class="col-md-6 h4">Usuarios</div>
<div class="col-md-6 h4 text-right"><a href="{{url('', ['p' => 'admin', 'a' => 'add_user_role', 'role' => $role->id])}}"><span class="glyphicon glyphicon-plus"></span></a></div>
<div class="col-md-6 h4 text-right"><a href="{{$urls->base}}/admin/role/{{$role->id}}/users/add"><span class="glyphicon glyphicon-plus"></span></a></div>
</div>
<table class="table">
@foreach ($role->users() as $user)
<tr>
<td><a href="{{nUrl('admin', 'user', ['user' => $user->id])}}">{{$user->name}}</a></td>
<td><a href="{{url('', ['p' => 'admin', 'a' => 'remove_user_role', 'user' => $user->id, 'role' => $role->id])}}"><span class="glyphicon glyphicon-minus"></span></a></td>
<td><a href="{{$urls->base}}/admin/user/{{$user->id}}">{{$user->name}}</a></td>
<td><a href="{{$urls->base}}/admin/role/{{$role->id}}/user/{{$user->id}}/remove"><span class="glyphicon glyphicon-minus"></span></a></td>
</tr>
@endforeach
</table>
<div class="row section-heading">
<div class="col-md-6 h4">Permisos</div>
<div class="col-md-6 h4 text-right"><a href="{{nUrl('admin', 'add_role_permissions', ['role' => $role->id])}}"><span class="glyphicon glyphicon-plus"></span></a></div>
<div class="col-md-6 h4 text-right"><a href="{{$urls->base}}/admin/role/{{$role->id}}/permissions"><span class="glyphicon glyphicon-plus"></span></a></div>
</div>
@if ($role->permissions())
<table class="table table-striped">