@extends('layouts.app') @section('titulo') Rotas @endsection @section('scripts') @endsection @section('pagina')
@if($permEditar)

@endif
@if($permEditar || $permDelete) @endif @foreach($rotas as $rota) @if($permEditar || $permDelete) @endif @endforeach
Nome Rota Rota Pai Menu ÍconeAções
{{$rota->getNome()}} {{$rota->getRota()}} {{(empty($rota->RotaPai) ? '' : $rota->RotaPai->getNome())}} @if($rota->isMenu()) SIM @else NÃO @endif @if($permEditar) @endif @if($permDelete) @endif
@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