Nome |
Rota |
Rota Pai |
Menu |
Ícone |
@if($permEditar || $permDelete)
Ações |
@endif
@foreach($rotas as $rota)
{{$rota->getNome()}} |
{{$rota->getRota()}} |
{{(empty($rota->RotaPai) ? '' : $rota->RotaPai->getNome())}}
|
|
@if($permEditar || $permDelete)
@if($permEditar)
@endif
@if($permDelete)
@endif
|
@endif
@endforeach
@if($permEditar)
@include('partials._modal_form',
[
'idModal'=>'dlgRota',
'titulo'=> 'Nova Rota',
'icone'=>'fa-route',
'rota' => 'adm.rota.salvar',
'campos'=>
[
[
'tipo'=>'array',
'campos'=>
[
[
'largura'=>'5',
'id' =>'cbMenu',
'label'=>'Menu',
'nome'=>'menu',
'tipo'=>'slider'
]
]
],
[
'id' =>'txtNome',
'label'=>'Nome',
'nome'=>'nome',
'tamanho'=>'50',
'tipo'=>'txt',
'required'=> true,
'autofocus'=> true,
'autocomplete'=>'off'
],
[
'id' =>'txtRota',
'label'=>'Rota',
'nome'=>'rota',
'tamanho'=>'50',
'tipo'=>'txt',
'required'=> true,
'autocomplete'=>'off'
],
[
'tipo'=>'array',
'campos'=>
[
[
'largura'=>'10',
'id' =>'txtIcone',
'label'=>'icone',
'nome'=>'icone',
'tamanho'=>'50',
'tipo'=>'txt'
],
[
'largura'=>'2',
'id' =>'icnRota',
'label'=>'',
'style'=>'font-size:xx-large;padding-top:32px;',
'tipo'=>'icone'
]
]
],
[
'id' =>'cbPai',
'label'=>'Rota pai',
'nome'=>'pai',
'tipo'=>'combo',
'opcoes'=>[]
]
]
])
@endif
@if($permDelete)
@include('partials._modal_delete',
[
'rota'=>'adm.rota.delete',
'titulo'=>'Confirma Exclusão',
'mensagem_delete'=>'Tem certeza que deseja excluir a rota'
])
@endif
@endsection