@extends('layouts.app') @section('content')
Cliente -{{ isset($edit) ? 'Actualizar (' . $edit->cliente_nombres . ' ' . $edit->cliente_apellido1 . ' ' . $edit->cliente_apellido2 . ')' : 'Nuevo' }}
@if (isset($edit)) {!! Form::model($edit, [ 'url' => ['cliente/editar/' . $edit->cliente_id], 'method' => 'PATCH', 'enctype' => 'multipart/form-data', 'id' => 'frmClientes', ]) !!} @else {!! Form::open([ 'url' => 'cliente', 'method' => 'POST', 'enctype' => 'multipart/form-data', 'role' => 'form', 'id' => 'frmClientes', ]) !!} @endif
{!! Form::mselect( 'sede', $sede, isset($edit) ? $edit->cliente_entidad_id : session()->get('data_entidad')->entidad_id, 'Sede', $errors, 6, ) !!} {!! Form::mselect( 'tipo_identificacion', $tipo_identificacion, isset($edit) ? $edit->cliente_tipo_identificaicon : null, 'Tipo Identificación', $errors, 6, true, ) !!}
{!! Form::mtext( 'documento', isset($edit) ? $edit->cliente_documento : null, 'Documento', $errors, 6, true, true, [['onkeypress' => 'return event.charCode > 47 && event.charCode < 58;'], ['onchange' => 'validarDocumento()']], ) !!} {!! Form::mtext( 'documento1', isset($edit) ? $edit->cliente_documento_2 : null, 'Documento 2', $errors, 6, false, true, ) !!}
{!! Form::mtext( 'documento3', isset($edit) ? $edit->cliente_documento_3 : null, 'Documento 3', $errors, 6, false, true, ) !!} {!! Form::mtext( 'documento4', isset($edit) ? $edit->cliente_documento_4 : null, 'Documento 4', $errors, 6, false, true, ) !!}
{!! Form::mtext('nombre', isset($edit) ? $edit->cliente_nombres : null, 'Nombres', $errors, 6, true, true, [ ['onkeyup' => 'javascript:this.value=this.value.toUpperCase()'], ]) !!} {!! Form::mtext( 'paterno', isset($edit) ? $edit->cliente_apellido1 : null, 'Primer Apellido', $errors, 6, true, true, [['onkeyup' => 'javascript:this.value=this.value.toUpperCase()']], ) !!}
{!! Form::mtext( 'materno', isset($edit) ? $edit->cliente_apellido2 : null, 'Segundo Apellido', $errors, 6, false, true, [['onkeyup' => 'javascript:this.value=this.value.toUpperCase()']], ) !!}
{{-- {!! Form::mEmail('email',isset($edit) ? $edit->cliente_email : null,'Correo',$errors,6,false,false, [['onkeyup'=>'javascript:this.value=this.value.toLowerCase()']]) !!} --}}
{!! Form::mselect('sexo', $genero, isset($edit) ? $edit->cliente_sexo : null, 'Sexo', $errors, 6) !!} {!! Form::mselect( 'estado_civil', $estado, isset($edit) ? $edit->cliente_estado_civil : null, 'Estado Civil', $errors, 6, ) !!}
{!! Form::mtext( 'nacionalidad', isset($edit) ? $edit->cliente_nacionalidad : null, 'Nacionalidad', $errors, 6, false, true, [['onkeyup' => 'javascript:this.value=this.value.toUpperCase()']], ) !!} {!! Form::mDate( 'fecha_nacimiento', isset($edit) ? $edit->cliente_fecha_nacimiento : null, 'Fecha de Nacimiento', $errors, 6, true ) !!}
{!! Form::mselect( 'localidad', $localidad, isset($edit) ? $edit->cliente_localidad_id : null, 'Localidad', $errors, 6, ) !!} {!! Form::mtextAr( 'direccion', isset($edit) ? $edit->cliente_direccion : null, 'Dirección', $errors, 6, false, false, 'onkeyup="javascript:this.value=this.value.toUpperCase()"', ) !!}
{!! Form::mtext('celular', isset($edit) ? $edit->cliente_celular : null, 'Celular', $errors, 6, true, true, [ ['onkeypress' => 'return event.charCode > 47 && event.charCode < 58;'], ['maxlength' => '8'], ]) !!} @php $telefonos = isset($edit) ? str_replace(']','',str_replace('"]','',str_replace('"','',str_replace('["','',$edit->cliente_telefonos)))) : null; @endphp {!! Form::mtextTags('telefonos', $telefonos, 'Otros Teléfonos', $errors, 6, false, true, [ ['onkeyup' => 'return event.charCode > 47 && event.charCode < 58;'], ]) !!}

cliente_autoriza_envio_email ? 'checked' : '') : '' }} data-toggle="toggle" data-onstyle="primary" data-offstyle="danger">

cliente_autoriza_envio_sms ? 'checked' : '') : '' }} data-toggle="toggle" data-onstyle="primary" data-offstyle="danger">
{!! Form::close() !!}
@endsection @section('script') @endsection