@extends('Admin.Layouts.default') @section('content')
| {{ trans('front.permission') }} | {{ trans('front.view') }} | {{ trans('global.edit') }} | {{ trans('global.delete') }} | @foreach($grouped_permissions as $group => $permissions) @if($group !== 'main')
|---|---|---|---|
| {{ ucfirst($group) }} | |||
| @if($group !== 'main') {{ trans('validation.attributes.' . explode('.', $permission)[1]) }} @else {{ trans('front.' . $permission) }} @endif |
@if ($modes['view'])
{!! Form::checkbox("perms[$permission][view]", 1, getMainPermission($permission, 'view'), ['class' => 'perm_checkbox perm_view']) !!}
@else
{!! Form::checkbox('', 0, 0, ['disabled' => 'disabled']) !!}
@endif
{!! Form::label(null, null) !!}
|
@if ($modes['edit'])
{!! Form::checkbox("perms[$permission][edit]", 1, getMainPermission($permission, 'edit'), ['class' => 'perm_checkbox perm_edit']) !!}
@else
{!! Form::checkbox('', 0, 0, ['disabled' => 'disabled']) !!}
@endif
{!! Form::label(null, null) !!}
|
@if ($modes['remove'])
{!! Form::checkbox("perms[$permission][remove]", 1, getMainPermission($permission, 'remove'), ['class' => 'perm_checkbox perm_remove']) !!}
@else
{!! Form::checkbox('', 0, 0, ['disabled' => 'disabled']) !!}
@endif
{!! Form::label(null, null) !!}
|