{{ $pageTitle ?? __('message.list') }}
@if($auth_user->can('permission add')) {{ __('message.add_form_title',['form' => __('message.permission') ]) }} @endif
{{ Form::open(['route' => 'permission.store','method' => 'post']) }}
@foreach($permission as $key => $data)
@foreach($roles as $role) @endforeach @foreach($data->subpermission as $p) @foreach($roles as $role) @endforeach @endforeach
{{ __('message.name') }}{{ ucwords(str_replace('_',' ',$role->name)) }}
{{ $p->name }} name)) ? 'checked' : '' }} @if($role->is_hidden) disabled @endif >
@endforeach
{{ Form::close() }}
@section('bottom_script') @endsection