@foreach ($items as $act => $ops)
@if (count($ops["options"]) > 1)
@include('helpers.form_control', [
'type' => 'select',
'class' => 'numeric',
'name' => 'permissions[' . $key . "_" . $act .']',
'value' => $permissions[$key . "_" . $act],
'label' => trans('messages.' . $act),
'options' => $ops["options"],
'help_class' => 'admin_group',
'rules' => Acelle\Model\AdminGroup::rules()
])
@else
@include('helpers.form_control', [
'type' => 'checkbox',
'class' => 'numeric',
'name' => 'permissions[' . $key . "_" . $act .']',
'value' => $permissions[$key . "_" . $act],
'label' => '',
'options' => ['no','yes'],
'help_class' => 'admin_group',
'rules' => Acelle\Model\AdminGroup::rules()
])
@endif
@endforeach