@extends('layouts.admin') @section('title', '| Roles') @section('content')
{{ __('Role') }} | {{ __('Permissions') }} | {{ __('Operation') }} |
---|---|---|
{{ $role->name }} | {{ str_replace(array('[',']','"'),'', $role->permissions()->pluck('name')) }} | {{-- Retrieve array of permissions associated to a role and convert to string --}}Edit {!! Form::open(['method' => 'DELETE', 'route' => ['admin.roles.destroy', $role->id] ]) !!} {!! Form::submit('Delete', ['class' => 'btn btn-danger btn-sm']) !!} {!! Form::close() !!} |