@extends('layouts/edit-form', [ 'createText' => trans('admin/groups/titles.create') , 'updateText' => trans('admin/groups/titles.update'), 'item' => $group, 'formAction' => ($group !== null && $group->id !== null) ? route('groups.update', ['group' => $group->id]) : route('groups.store'), ]) @section('content') @parent @stop @section('inputFields')
{!! $errors->first('name', '') !!}
@foreach ($permissions as $area => $area_permission) @if (count($area_permission) == 1) @else @foreach ($area_permission as $index => $this_permission) @if ($this_permission['display']) @endif @endforeach @endif @endforeach
{{ trans('admin/groups/titles.permission')}} {{ trans('admin/groups/titles.grant')}} {{ trans('admin/groups/titles.deny')}}
@unless (empty($localPermission['label']))

{{ $area . ': ' . $localPermission['label'] }}

@else

{{ $area }}

@endunless
{{ Form::radio('permission['.$localPermission['permission'].']', '1',(array_key_exists($localPermission['permission'], $groupPermissions) ? $groupPermissions[$localPermission['permission'] ] == '1' : null),['value'=>"grant", 'aria-label'=> 'permission['.$localPermission['permission'].']']) }} {{ Form::radio('permission['.$localPermission['permission'].']', '0',(array_key_exists($localPermission['permission'], $groupPermissions) ? $groupPermissions[$localPermission['permission'] ] == '0' : null),['value'=>"grant", 'aria-label'=> 'permission['.$localPermission['permission'].']']) }}

{{ $area }}

{{ Form::radio("$area", '1',false,['value'=>"grant", 'data-checker-group' => str_slug($area), 'aria-label'=> $area]) }} {{ Form::radio("$area", '0',false,['value'=>"deny", 'data-checker-group' => str_slug($area), 'aria-label'=> $area]) }}
{{ $this_permission['label'] }} {{ Form::radio('permission['.$this_permission['permission'].']', '1',(array_key_exists($this_permission['permission'], $groupPermissions) ? $groupPermissions[$this_permission['permission'] ] == '1' : null),['class'=>'radiochecker-'.str_slug($area), 'aria-label'=>'permission['.$this_permission['permission'].']']) }} {{ Form::radio('permission['.$this_permission['permission'].']', '0',(array_key_exists($this_permission['permission'], $groupPermissions) ? $groupPermissions[$this_permission['permission'] ] == '0' : null),['class'=>'radiochecker-'.str_slug($area), 'aria-label'=>'permission['.$this_permission['permission'].']']) }}
@stop @section('moar_scripts') @stop