@extends('layout.master') @section('content')
{{ __('Create New Role') }}
{{--
--}}
@foreach ($roles as $role) @endforeach
{{ __('Role') }} {{ __('Permissions') }} {{ __('Action') }}
{{ $role->name }} @php $counter = 0; @endphp @foreach ($role->permissions()->pluck('name') as $permission) @if ($counter % 3 === 0 && $counter !== 0)
@elseif ($counter === 0)
@endif {{ $permission }} @php $counter++; @endphp @if ($loop->last)
@endif @endforeach
@can('role edit') @endcan @can('role delete') {!! Form::open([ 'method' => 'DELETE', 'route' => ['role.destroy', $role->id], 'id' => 'delete-form-' . $role->id ]) !!} @endcan
@endsection @push('scripts') @endpush