@extends('default.layout') @section('content')

{{isset($usuario) ? 'Editar' : 'Novo'}} Usuário

@csrf
@if($errors->has('nome'))
{{ $errors->first('nome') }}
@endif
@if($errors->has('login'))
{{ $errors->first('login') }}
@endif
@if($errors->has('senha'))
{{ $errors->first('senha') }}
@endif
@if($errors->has('email'))
{{ $errors->first('email') }}
@endif
@if($errors->has('rota_acesso'))
{{ $errors->first('rota_acesso') }}
@endif
@if(session('user_logged')['tipo_representante'] == 1)
@endif
@foreach($menuAux as $m) @if($m['ativo'] == 1)
@foreach($m['subs'] as $s) @if(in_array($s['rota'], $permissoesAtivas)) @endif @endforeach
@endif @endforeach
@section('javascript') @endsection @endsection