@extends('andes.zbase::layout') @section('content')
{!! Breadcrumbs::render('usuarios.editar') !!}

Usuários

Dados do usuário
{!! Form::model($usuario, ['route'=>['andes.usuarios.salvar', $usuario->id], 'class'=>'form-horizontal form-validate', 'role'=>'form']) !!}
{!! Form::email('email', null, ['class'=>'form-control', 'maxlength'=>'255', 'required']) !!} @if($errors->has('email')) {{ $errors->first('email') }} @endif
{!! Form::password('senha', ['class'=>'form-control', 'minlength'=>'6', 'maxlength'=>'255', 'placeholder'=>'Deixe em branco para manter...']) !!}
@if($errors->has('senha')) {{ $errors->first('senha') }} @endif
{!! Form::text('nome', null, ['class'=>'form-control', 'maxlength'=>'255', 'required']) !!} @if($errors->has('nome')) {{ $errors->first('nome') }} @endif
{!! Form::text('telefone', null, ['class'=>'form-control telefone', 'maxlength'=>'15', 'required']) !!} @if($errors->has('telefone')) {{ $errors->first('telefone') }} @endif
{!! Form::text('cpf', null, ['class'=>'form-control cpf', 'maxlength'=>'14', 'required']) !!} @if($errors->has('cpf')) {{ $errors->first('cpf') }} @endif
{!! Form::select('sexo', StringHelper::$sexos, null, ['class'=>'form-control select']) !!} @if($errors->has('sexo')) {{ $errors->first('sexo') }} @endif
{!! Form::text('data_nascimento', $usuario->data_nascimento?$usuario->data_nascimento->format('d/m/Y'):null, ['class'=>'form-control date-picker', 'maxlength'=>'10', 'required']) !!} @if($errors->has('data_nascimento')) {{ $errors->first('data_nascimento') }} @endif
@if($errors->has('has_pedido_externo')) {{ $errors->first('has_pedido_externo') }} @endif
{!! Form::hidden('id', $usuario->id) !!} {!! Form::submit('Salvar', ['class'=>'btn green']) !!}
{!! Form::close() !!}
@endsection @section('scripts') @endsection