@extends('template.index') @section('title','Adicionar Grupo') @section('content') {{-- {{ dd($errors->all()) }} --}} Cadastrar Grupo VOLTAR @csrf Nome: Descrição: Permissões @foreach ($permission as $value) @php $data_parent = $value->idFather > 0 ? "data-parent={$value->idFather}" : ''; $selected = in_array($value->id, $groupPermission) ? 'selected' : ''; @endphp {{ $value->controller . ' - ' . $value->name }} @endforeach SALVAR @endsection @section('js') @endsection