@extends('layouts.publicador.novo_padrao') @section('content')

@choice('labels.titulos.usuarios', 0) {{ empty($model->id) ? __('labels.acoes.adicionar') : __('labels.acoes.alterar') }}

@if ($errors->any())
@lang('labels.msg.verifique')
@endif @if (empty($model)) {!! Form::open(['route' => ['publicador.usuarios.salvar'], 'class' => 'form form-edit']) !!} @else {!! Form::model($model, ['route' => ['publicador.usuarios.salvar'], 'method' => 'put']) !!} {{ Form::hidden('id') }} @endif
{{ Form::label('name', __('labels.nome'), ['class' => 'form-label']) }} {{ Form::text('name', null, [ 'class' => 'form-control ' . ($errors->has('name') ? 'is-invalid' : ''), 'maxlength' => 50, 'placeholder' => __('labels.nome'), ]) }} @if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
{{ Form::label('email', __('labels.email'), ['class' => 'form-label']) }} {{ Form::email('email', null, [ 'class' => 'form-control ' . ($errors->has('email') ? 'is-invalid' : ''), 'maxlength' => 50, 'placeholder' => __('labels.email'), ]) }} @if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
@if (auth()->user()->isSuperAdmin())
{{ Form::label('is_admin', __('labels.e_admin'), ['class' => 'form-label']) }} {{ Form::select('is_admin', Config::get('constants.boolean'), null, [ 'class' => 'form-control ' . ($errors->has('is_admin') ? 'is-invalid' : ''), 'placeholder' => __('labels.acoes.selecione'), ]) }} @if ($errors->has('is_admin'))
@foreach ($errors->get('is_admin') as $error) {{ $error }}
@endforeach
@endif
@else {{ Form::hidden('is_admin', 0) }} @endif
{{ Form::label('password', __('Setor'), ['class' => 'form-label']) }} {{ Form::select('setor', $unidades->pluck('descricao', 'id_unidade')->toArray(), \Request::query('setor'), [ 'class' => 'form-control', 'placeholder' => __('Selecione o setor'), ]) }} @if ($errors->has('setor'))
@foreach ($errors->get('setor') as $error) {{ $error }}
@endforeach
@endif
@if (empty($model->password) || auth()->user()->isSuperAdmin())
{{ Form::label('password', __('labels.senha'), ['class' => 'form-label']) }} {{ Form::password('password', [ 'class' => 'form-control ' . ($errors->has('password') ? 'is-invalid' : ''), 'placeholder' => __('labels.senha'), ]) }} @if ($errors->has('password'))
@foreach ($errors->get('password') as $error) {{ $error }}
@endforeach
@endif
{{ Form::label('password_confirmation', __('labels.confirmar_senha'), ['class' => 'form-label']) }} {{ Form::password('password_confirmation', [ 'class' => 'form-control', 'placeholder' => __('labels.confirmar_senha'), ]) }}
@endif
Tabela de @choice('labels.permissoes', 0)
Sistema
@choice('labels.noticias', 0)
@choice('labels.podcasts', 0)
@choice('labels.imagens', 0)
Agenda Antigo
Calendário
Agenda Gerencial
@choice('labels.deputados', 0)
@choice('labels.comissoes', 0)
Conselho de Ética
@choice('labels.ordens_dia', 0)
@lang('labels.ccj')
Pautas Comissões
Atas Das Sessões Plenárias
@choice('labels.questoes_ordem', 0)
@lang('labels.orcamento')
@choice('labels.diarios', 0)
@lang('labels.mailing')
@choice('labels.audiencias', 0) @choice('labels.publicas', 0)
@choice('labels.agora_lei', 0)
@choice('labels.campanhas', 1) Home
@choice('labels.campanhas', 0)
@lang('labels.transmissao')
@lang('labels.titulos.entrenos')
@choice('labels.links', 0) Corona
@choice('labels.publicacao', 0) PROMU
Itinerante
Orçamento do Estado
Perguntas Frequentes
PROMU
Códigos Legislativos
Eventos (gabinete militar)
@lang('labels.geracao_atitude')
@choice('labels.imagens', 0)
@choice('labels.noticias', 0)
@choice('labels.projetos', 0)
@choice('labels.links', 0)
Conteúdo
@choice('labels.textos', 0)
@lang('labels.escola_legislativo')
@choice('labels.imagens', 0)
@choice('labels.noticias', 0)
@choice('labels.links', 0)
@choice('labels.cursos', 0) / @choice('labels.palestras', 0)
@lang('labels.universitarios_ccj')
@lang('labels.parlamento_universitario')
@choice('labels.curriculos', 0)
DTI
Contratos e Suporte
@choice('labels.usuarios', 0)
Exportar Agenda
Licenças
Máquinas
Sessões DTI
Ramais
Menu Pesquisa
@lang('labels.acoes.cancelar')
{!! Form::close() !!}
@endsection {{-- @extends('layouts.publicador.default') @section('content')

@choice('labels.titulos.usuarios', 0) {{ empty($model->id) ? __('labels.acoes.adicionar') : __('labels.acoes.alterar') }}

@if ($errors->any())
@lang('labels.msg.verifique')
@endif @if (empty($model)) {!! Form::open(['route' => ['publicador.usuarios.salvar'], 'class' => 'form form-edit']) !!} @else {!! Form::model($model, ['route' => ['publicador.usuarios.salvar'], 'method' => 'put']) !!} {{ Form::hidden('id') }} @endif
{{ Form::label('name', __('labels.nome')) }} {{ Form::text('name', null, ['class' => 'form-control form-control-sm ' . ($errors->has('name') ? 'is-invalid' : ''), 'maxlength' => 50, 'placeholder' => __('labels.nome')]) }} @if ($errors->has('name'))
{{ $errors->first('name') }}
@endif
{{ Form::label('email', __('labels.email')) }} {{ Form::email('email', null, ['class' => 'form-control form-control-sm ' . ($errors->has('email') ? 'is-invalid' : ''), 'maxlength' => 50, 'placeholder' => __('labels.email')]) }} @if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
@if (empty($model->password) || auth()->user()->isSuperAdmin())
{{ Form::label('password', __('labels.senha')) }} {{ Form::password('password', ['class' => 'form-control form-control-sm ' . ($errors->has('password') ? 'is-invalid' : ''), 'placeholder' => __('labels.senha')]) }} @if ($errors->has('password'))
@foreach ($errors->get('password') as $error) {{ $error }}
@endforeach
@endif
{{ Form::label('password_confirmation', __('labels.confirmar_senha')) }} {{ Form::password('password_confirmation', ['class' => 'form-control form-control-sm', 'placeholder' => __('labels.confirmar_senha')]) }}
@endif @if (auth()->user()->isSuperAdmin())
{{ Form::label('is_admin', __('labels.e_admin')) }} {{ Form::select('is_admin', Config::get('constants.boolean'), null, ['class' => 'form-control form-control-sm ' . ($errors->has('is_admin') ? 'is-invalid' : ''), 'placeholder' => __('labels.acoes.selecione')]) }} @if ($errors->has('is_admin'))
@foreach ($errors->get('is_admin') as $error) {{ $error }}
@endforeach
@endif
@else {{ Form::hidden('is_admin', 0) }} @endif
@if ($errors->has('permissions')) @endif {{--
@choice('labels.modulo', 1) @choice('labels.permissoes', 0)
@choice('labels.noticias', 0)
@choice('labels.podcasts', 0)
@choice('labels.imagens', 0)
Agenda Antigo
Calendário
Agenda Gerencial
@choice('labels.deputados', 0)
@choice('labels.comissoes', 0)
@choice('labels.ordens_dia', 0)
@lang('labels.ccj')
@choice('labels.questoes_ordem', 0)
@lang('labels.orcamento')
@choice('labels.diarios', 0)
@lang('labels.mailing')
@lang('labels.disco_virtual')
@choice('labels.palestras', 0)
@choice('labels.audiencias', 0) @choice('labels.publicas', 0)
@choice('labels.agora_lei', 0)
@choice('labels.campanhas', 1) Home
@choice('labels.campanhas', 0)
@lang('labels.transmissao')
@lang('labels.titulos.entrenos')
@choice('labels.links', 0) Corona
@choice('labels.publicacao', 0) PROMU
Itinerante
Orçamento do Estado
@lang('labels.geracao_atitude')
@choice('labels.imagens', 0)
@choice('labels.noticias', 0)
@choice('labels.projetos', 0)
@choice('labels.links', 0)
@choice('labels.textos', 0)
@lang('labels.escola_legislativo')
@choice('labels.imagens', 0)
@choice('labels.noticias', 0)
@choice('labels.links', 0)
@choice('labels.cursos', 0) / @choice('labels.palestras', 0)
@lang('labels.universitarios_ccj')
@lang('labels.parlamento_universitario')
@choice('labels.curriculos', 0)
DTI
Contratos e Suporte
@choice('labels.usuarios', 0)
Exportar Agenda
Licenças
Máquinas
Sessões DTI

@lang('labels.acoes.cancelar') {{ Form::submit(__('labels.acoes.salvar'), ['class' => 'btn btn-success']) }}

{!! Form::close() !!}
@endsection --}}