tethys/resources/views/settings/role/role.blade.php
Arno Kaimbacher 8dc1f1b048 my changes
2020-06-10 21:09:10 +02:00

51 lines
1.5 KiB
PHP

@extends('layouts.app')
@section('content')
<div class="pure-g">
<div class="pure-u-1 pure-u-md-2-3">
<div class="content">
<div class="title">
<h2><i class="fa fa-key"></i> Roles Management
</h2>
</div>
<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>
<div class="table-responsive">
<table class="pure-table roles">
<thead>
<tr>
<th>Role</th>
<th>Permissions</th>
<th width="280px">Action</th>
</tr>
</thead>
<tbody>
@foreach ($roles as $role)
<tr>
<td>{{ $role->name }}</td>
<td>
@foreach ($role->permissions()->pluck('name') as $permission)
<label class="badge badge-success">{{ $permission }}</label>
@endforeach
</td>
<td>
<a class="edit" href="{{ route('role.edit', $role->id) }}">&nbsp;Edit Role</a>
</td>
</tr>
@endforeach
</tbody>
</table>
</div>
</div>
</div>
</div>
@stop