Skip to content
This repository has been archived by the owner on Jan 3, 2023. It is now read-only.

Commit

Permalink
roles too
Browse files Browse the repository at this point in the history
  • Loading branch information
ctf0 committed Aug 12, 2017
1 parent ba55f28 commit 4e12374
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/resources/views/admin/bulma/roles/index.blade.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,10 @@
<tr id="item-{{ $role->id }}">
<td>{{ $role->name }}</td>
<td>
@foreach ($role->permissions->pluck('name') as $permission)
<span class="tag is-medium is-medium is-info">{{ $permission }}</span>
@foreach ($role->permissions as $perm)
<span class="tag is-medium is-medium is-info">
<a href="{{ route($crud_prefix.'.permissions.edit',[$perm->id]) }}" class="is-white">{{ $perm->name }}</a>
</span>
@endforeach
</td>
<td>
Expand Down

0 comments on commit 4e12374

Please sign in to comment.