2018-08-29 15:18:15 +00:00
|
|
|
@extends('layouts.settings.layout')
|
2018-08-06 12:30:51 +00:00
|
|
|
|
|
|
|
@section('content')
|
2018-08-29 15:18:15 +00:00
|
|
|
<div class="header">
|
|
|
|
<h3 class="header-title">
|
|
|
|
<i class="fa fa-key"></i>
|
|
|
|
<span>Roles Management <span>
|
|
|
|
</h3>
|
|
|
|
</div>
|
2018-08-06 12:30:51 +00:00
|
|
|
|
2018-08-29 15:18:15 +00:00
|
|
|
<div class="pure-g box-content">
|
|
|
|
<div class="pure-u-1 pure-u-md-2-3">
|
|
|
|
<a class="pure-button button-small is-primary" href="{{ route('role.create') }}">
|
|
|
|
<i class="fa fa-plus-circle"></i>
|
|
|
|
<span>Create New Role</span>
|
|
|
|
</a>
|
|
|
|
<br>
|
|
|
|
<table class="pure-table pure-table-horizontal roles">
|
2018-08-06 12:30:51 +00:00
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>Role</th>
|
|
|
|
<th>Permissions</th>
|
|
|
|
<th width="280px">Action</th>
|
2018-08-29 15:18:15 +00:00
|
|
|
|
2018-08-06 12:30:51 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
@foreach ($roles as $role)
|
|
|
|
<tr>
|
|
|
|
<td>{{ $role->name }}</td>
|
|
|
|
<td>
|
2018-08-29 15:18:15 +00:00
|
|
|
@foreach ($role->perms()->pluck('name') as $permission)
|
2018-08-06 12:30:51 +00:00
|
|
|
<label class="badge badge-success">{{ $permission }}</label>
|
|
|
|
@endforeach
|
|
|
|
</td>
|
|
|
|
<td>
|
2018-08-29 15:18:15 +00:00
|
|
|
<a class="edit" href="{{ route('role.edit', $role->id) }}"> Edit Role</a>
|
2018-08-06 12:30:51 +00:00
|
|
|
</td>
|
2018-08-29 15:18:15 +00:00
|
|
|
|
2018-08-06 12:30:51 +00:00
|
|
|
</tr>
|
|
|
|
@endforeach
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2018-08-29 15:18:15 +00:00
|
|
|
|
2018-08-06 12:30:51 +00:00
|
|
|
</div>
|
|
|
|
|
|
|
|
</div>
|
|
|
|
@stop
|