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

@lang('labels.escola_legislativo') / @choice('labels.curriculos', 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.escola.curriculos.salvar'], 'class' => 'form form-edit']) !!} @else {!! Form::model($model, ['route' => ['publicador.escola.curriculos.salvar'], 'method' => 'put']) !!} {{ Form::hidden('id') }} @endif
{{-- NOME --}}
{{ Form::text('nome', null, ['class' => 'form-control border-left-0 ' . ($errors->has('nome') ? 'is-invalid' : ''), 'maxlength' => 190, 'placeholder' => __('labels.nome')]) }} @if ($errors->has('nome'))
{{ $errors->first('nome') }}
@endif
{{-- EMAIL --}}
{{ Form::email('email', null, ['class' => 'form-control border-left-0' . ($errors->has('email') ? 'is-invalid' : ''), 'maxlength' => 190, 'placeholder' => __('labels.email')]) }} @if ($errors->has('email'))
{{ $errors->first('email') }}
@endif
{{-- SEXO --}}
{{ Form::select('sexo', \Config::get('constants.sexo'), \Request::query('sexo'), ['class' => 'form-control border-left-0', 'placeholder' => __('labels.sexo'), 'id' => 'sexo']) }}
@if ($errors->has('sexo'))
{{ $errors->first('sexo') }}
@endif
{{-- RG --}}
{{ Form::text('rg', null, ['class' => 'form-control border-left-0' . ($errors->has('rg') ? 'is-invalid' : ''), 'maxlength' => 20, 'placeholder' => __('labels.rg')]) }} @if ($errors->has('rg'))
{{ $errors->first('rg') }}
@endif
{{-- ESTADO --}}
{{ Form::select('estado', \Config::get('constants.estados'), \Request::query('estado'), ['class' => 'form-control border-left-0', 'placeholder' => __('labels.estado')]) }} @if ($errors->has('rg_uf'))
{{ $errors->first('rg_uf') }}
@endif
{{-- CPF --}}
{{ Form::text('cpf', null, ['class' => 'cpf form-control border-left-0' . ($errors->has('cpf') ? 'is-invalid' : ''), 'maxlength' => 14, 'placeholder' => __('labels.cpf')]) }} @if ($errors->has('cpf'))
{{ $errors->first('cpf') }}
@endif
{{-- INSTRUÇÃO --}}
{{ Form::select('instrucao', Config::get('constants.instrucao'), \Request::query('Instrucao'), ['class' => 'form-control border-left-0 ', 'placeholder' => __('labels.instrucao')]) }} @if ($errors->has('instrucao'))
{{ $errors->first('instrucao') }}
@endif
{{-- CEP --}}
{{ Form::text('cep', null, ['class' => 'cep form-control border-left-0' . ($errors->has('cep') ? 'is-invalid' : ''), 'maxlength' => 9, 'placeholder' => __('labels.cep')]) }} @if ($errors->has('cep'))
{{ $errors->first('cep') }}
@endif
{{-- ENDEREÇO --}}
{{ Form::text('logradouro', null, ['class' => 'form-control border-left-0 ' . ($errors->has('logradouro') ? 'is-invalid' : ''), 'maxlength' => 190, 'placeholder' => __('labels.logradouro')]) }} @if ($errors->has('logradouro'))
{{ $errors->first('logradouro') }}
@endif
{{-- NUMERO --}}
{{ Form::text('numero', null, ['class' => 'form-control border-left-0' . ($errors->has('numero') ? 'is-invalid' : ''), 'maxlength' => 50, 'placeholder' => __('labels.numero')]) }} @if ($errors->has('numero'))
{{ $errors->first('numero') }}
@endif
{{-- COMPLEMENTO --}}
{{ Form::text('complemento', null, ['class' => 'form-control border-left-0 ' . ($errors->has('complemento') ? 'is-invalid' : ''), 'maxlength' => 190, 'placeholder' => __('labels.complemento')]) }} @if ($errors->has('complemento'))
{{ $errors->first('complemento') }}
@endif
{{-- BAIRRO --}}
{{ Form::text('bairro', null, ['class' => 'form-control border-left-0 ' . ($errors->has('bairro') ? 'is-invalid' : ''), 'maxlength' => 50, 'placeholder' => __('labels.bairro')]) }} @if ($errors->has('bairro'))
{{ $errors->first('bairro') }}
@endif
{{-- CIDADE --}}
{{ Form::text('cidade', null, ['class' => 'form-control border-left-0 ' . ($errors->has('cidade') ? 'is-invalid' : ''), 'maxlength' => 50, 'placeholder' => __('labels.cidade')]) }} @if ($errors->has('cidade'))
{{ $errors->first('cidade') }}
@endif
{{-- ESTADO --}}
{{ Form::select('uf', \Config::get('constants.estados'), null, ['class' => 'form-control border-left-0' . ($errors->has('uf') ? 'is-invalid' : ''), 'placeholder' => __('labels.uf')]) }} @if ($errors->has('uf'))
{{ $errors->first('uf') }}
@endif
{{-- ORGÃO --}}
{{ Form::select('orgao_id', $orgaos, null, ['class' => 'form-control border-left-0' . ($errors->has('orgao_id') ? 'is-invalid' : ''), 'placeholder' => __('labels.acoes.selecione')]) }} @if ($errors->has('orgao_id'))
{{ $errors->first('orgao_id') }}
@endif
{{-- ORGAO CIDADE --}}
{{ Form::text('orgao_cidade', null, ['class' => 'form-control border-left-0' . ($errors->has('orgao_cidade') ? 'is-invalid' : ''), 'maxlength' => 50, 'placeholder' => sprintf('%s %s', trans_choice('labels.orgaos', 1), __('labels.cidade'))]) }} @if ($errors->has('orgao_cidade'))
{{ $errors->first('orgao_cidade') }}
@endif
{{-- ORGAO CARGO --}}
{{ Form::text('orgao_cargo', null, ['class' => 'form-control border-left-0' . ($errors->has('orgao_cargo') ? 'is-invalid' : ''), 'maxlength' => 50, 'placeholder' => sprintf('%s %s', trans_choice('labels.orgaos', 1), __('labels.cargo'))]) }} @if ($errors->has('orgao_cargo'))
{{ $errors->first('orgao_cargo') }}
@endif
{{-- ORGAO FUNÇÃO --}}
{{ Form::text('orgao_funcao', null, ['class' => 'form-control border-left-0' . ($errors->has('orgao_cidade') ? 'is-invalid' : ''), 'maxlength' => 50, 'placeholder' => sprintf('%s %s', trans_choice('labels.orgaos', 1), __('labels.funcao'))]) }} @if ($errors->has('orgao_funcao'))
{{ $errors->first('orgao_funcao') }}
@endif
{{-- FONE COMERCIAL --}}
{{ Form::text('fone_comercial', null, ['class' => 'fone_comercial form-control border-left-0' . ($errors->has('fone_comercial') ? 'is-invalid' : ''), 'maxlength' => 25, 'placeholder' => sprintf('%s %s', trans_choice('labels.telefones', 1), __('labels.comercial'))]) }} @if ($errors->has('fone_comercial'))
{{ $errors->first('fone_comercial') }}
@endif
{{-- FONE RESIDENCIAL --}}
{{ Form::text('fone_residencial', null, ['class' => 'fone_residencial form-control border-left-0' . ($errors->has('fone_residencial') ? 'is-invalid' : ''), 'maxlength' => 25, 'placeholder' => sprintf('%s %s', trans_choice('labels.telefones', 1), __('labels.residencial'))]) }} @if ($errors->has('fone_residencial'))
{{ $errors->first('fone_residencial') }}
@endif
{{-- FONE CELULAR --}}
{{ Form::text('fone_celular', null, ['class' => 'fone_celular form-control border-left-0' . ($errors->has('fone_celular') ? 'is-invalid' : ''), 'maxlength' => 25, 'placeholder' => sprintf('%s %s', trans_choice('labels.telefones', 1), __('labels.celular'))]) }} @if ($errors->has('fone_celular'))
{{ $errors->first('fone_celular') }}
@endif
{{-- SITE --}}
{{ Form::text('www', null, ['class' => 'form-control border-left-0' . ($errors->has('www') ? 'is-invalid' : ''), 'maxlength' => 190, 'placeholder' => __('labels.link')]) }} @if ($errors->has('www'))
{{ $errors->first('www') }}
@endif
{{ Form::label('curriculo', trans_choice('labels.curriculos', 1)) }} {{ Form::textarea('curriculo', null, ['style' => 'height: 500px', 'class' => 'form-control border-left-0 ' . ($errors->has('curriculo') ? 'is-invalid' : ''), 'placeholder' => __('labels.curriculo')]) }} @if ($errors->has('curriculo'))
{{ $errors->first('curriculo') }}
@endif

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

{!! Form::close() !!}
@include('layouts.publicador.tinymce') @endsection