<?php $__env->startSection('content'); ?>
<div class="page-header" style="background-color: #6382a6;;">
  <div class="modulo"><img class="imagenmodulo1" src="<?php echo e(URL::asset('dashboardimage/residentes3.png')); ?>">
  <img class="imagenmodulo2" src="<?php echo e(URL::asset('dashboardimage/linea.png')); ?>">&nbsp   residentes </div>
</div>


	<?php echo Form::open(array('url'=>'residentes?return='.$return, 'class'=>'form-vertical form-material validated sximo-form','files' => true ,'id'=> 'FormTable' )); ?>

	<div class="toolbar-nav">
		<div class="row">
			
			<div class="col-md-6 " >
				
					<button type="submit" class="btn btn-sm  " name="save" style="border-color:#7fb3e3;">GUARDAR</button>
					<a href="<?php echo e(url($pageModule.'?return='.$return)); ?>" class="tips btn btn-sm " style="border-color:#ff7a7a;" >SALIR</a>	 
				
			</div>
			<div class="col-md-6 text-right " >
				<!--<a href="<?php echo e(url($pageModule.'?return='.$return)); ?>" class="tips btn btn-secondary  btn-sm "  title="<?php echo e(__('core.btn_back')); ?>" ><i class="fa  fa-times"></i></a>--> 
			</div>
		</div>
	</div>	


	<div class="card"style="margin-bottom:320px;">
			<div class="card-body" style="overflow-y: scroll;">
		
		
	<div class="row"><div class="col-md-12">
						<fieldset style="border-color:#7fb3e3;"><legend> Información del Residente</legend>
				<?php echo Form::hidden('Residentesid', $row['Residentesid']); ?>					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label "style="font-weight:600;" > Nombres :   </label>									
										  <input  type='text' name='Nombres' id='Nombres' value='<?php echo e($row['Nombres']); ?>' 
						     class='form-control form-control-sm ' /> 						
									  </div> 					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;" > Apellidos :   </label>									
										  <input  type='text' name='Apellidos' id='Apellidos' value='<?php echo e($row['Apellidos']); ?>' 
						     class='form-control form-control-sm ' /> 						
									  </div> 					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;"> Tel. Casa :   </label>									
										  <input  type='text' name='TelefonoCasa' id='TelefonoCasa' value='<?php echo e($row['TelefonoCasa']); ?>' 
						     class='form-control form-control-sm ' /> 						
									  </div> 					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;"> Tel. Oficina :   </label>									
										  <input  type='text' name='TelefonoOficina' id='TelefonoOficina' value='<?php echo e($row['TelefonoOficina']); ?>' 
						     class='form-control form-control-sm ' /> 						
									  </div> 					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;"> Celular :   </label>									
										  <input  type='text' name='Celular' id='Celular' value='<?php echo e($row['Celular']); ?>' 
						     class='form-control form-control-sm ' /> 						
									  </div> 					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;"> Email :  </label>									
										  <input  type='text' name='Email' id='Email' value='<?php echo e($row['Email']); ?>' 
						     class='form-control form-control-sm ' /> 						
									  </div> 
				</div>
				
				<div class="col-md-12">
						<fieldset style="border-color:#7fb3e3;margin-top:-30px;" ><legend> Información de la Residencia</legend>
									
									  <div class="form-group  " >
										<label for="ipt" class=" control-label "style="font-weight:600;" > Condominio :   </label>									
										  <select name='Condominio' rows='5' id='Condominio' class='select2 '   ></select> 						
									  </div> 					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;"> Residencia :   </label>									
										  <select name='Residencia' rows='5' id='Residencia' class='select2 '   ></select> 						
									  </div> 					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;" > Cuota ($) :   </label>									
										  <input  type='text' name='Cuota' id='Cuota' value='<?php echo e($row['Cuota']); ?>' 
						     class='form-control form-control-sm ' /> 						
									  </div> 					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;"> Tipo :   </label>									
										  <!--<input  type='text' name='Tipo' id='Tipo' value='<?php echo e($row['Tipo']); ?>' 
						     class='form-control form-control-sm ' />-->
						     
						     <?php $Tipo = explode(',',$row['Tipo']);
					$Tipo_opt = array( 'Porpietario' => 'Propietario' ,  'Alquilado' => 'Alquilado' , ); ?>
					<select name='Tipo' rows='5' required  class='select2 '  > 
						<?php 
						foreach($Tipo_opt as $key=>$val)
						{
							echo "<option  value ='$key' ".($row['Tipo'] == $key ? " selected='selected' " : '' ).">$val</option>"; 						
						}						
						?></select> 
						     
						     
						     
						     
									  </div> 					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;"> Estatus :   </label>									
										  
					<?php $Estatus = explode(',',$row['Estatus']);
					$Estatus_opt = array( 'Activo' => 'Activo' ,  'Inactivo' => 'Inactivo' , ); ?>
					<select name='Estatus' rows='5'   class='select2 '  > 
						<?php 
						foreach($Estatus_opt as $key=>$val)
						{
							echo "<option  value ='$key' ".($row['Estatus'] == $key ? " selected='selected' " : '' ).">$val</option>"; 						
						}						
						?></select> 						
									  </div> 
				</div>
				
				<div class="col-md-12">
						<fieldset style="border-color:#7fb3e3; margin-top:-30px;" ><legend> Información del Propietario</legend>
									
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;"> Nombre del Propietario :   </label>									
										  <input  type='text' name='NombresdelPropietario' id='NombresdelPropietario' value='<?php echo e($row['NombresdelPropietario']); ?>' 
						     class='form-control form-control-sm ' /> 						
									  </div> 					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;"> Apellidos del Propietario :</label>									
										  <input  type='text' name='ApellidosdelPropietario' id='ApellidosdelPropietario' value='<?php echo e($row['ApellidosdelPropietario']); ?>' 
						     class='form-control form-control-sm ' /> 						
									  </div> 					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;"> Telefono del Propietario :   </label>									
										  <input  type='text' name='TelefonodelPropietario' id='TelefonodelPropietario' value='<?php echo e($row['TelefonodelPropietario']); ?>' 
						     class='form-control form-control-sm ' /> 						
									  </div> 					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;"> Email del Propietario :</label>									
										  <input  type='text' name='Emaildelpropietario' id='Emaildelpropietario' value='<?php echo e($row['Emaildelpropietario']); ?>' 
						     class='form-control form-control-sm ' /> 						
									  </div> 
				</div>
				
				<div class="col-md-12">
						<fieldset style="border-color:#7fb3e3;margin-top:-30px;" ><legend> Información Bancaria</legend>
									
									  <div class="form-group  " >
										<label for="ipt" class=" control-label "style="font-weight:600;" > Banco : </label>									
										  <!--<input  type='text' name='Banco' id='Banco' value='<?php echo e($row['Banco']); ?>' 
										  
						     class='form-control form-control-sm ' /> -->
						     <select name='Banco' rows='5' id='Banco' class='select2 '   ></select> 
									  </div> 					
									  <div class="form-group  " >
										<label for="ipt" class=" control-label " style="font-weight:600;"> Cuenta Principal :  </label>									
										  <input  type='text' name='Cuentaprincipal' id='Cuentaprincipal' value='<?php echo e($row['Cuentaprincipal']); ?>' 
						     class='form-control form-control-sm ' /> 						
									  </div> 					
									  <div class="form-group  " style="margin-bottom:-25px;">
										<label for="ipt" class=" control-label " style="font-weight:600;" > Cuenta Secundaria :   </label>									
										  <input  type='text' name='Cuentasecundaria' id='Cuentasecundaria' value='<?php echo e($row['Cuentasecundaria']); ?>' 
						     class='form-control form-control-sm ' /> 						
									  </div> 
				</div>
				
				</div>
	
		</div>
		
		<input type="hidden" name="action_task" value="save" />
		
		
		</div>
	</div>		


	<?php echo Form::close(); ?>

	<?php echo $__env->make('sximo.module.template.ajax.formjavascript', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?>
   <script type="text/javascript">
	$(document).ready(function() { 
		
		
		
		$("#Condominio").jCombo("<?php echo url('residentes/comboselect?filter=condominios:Nombre:Nombre'); ?>",
		{ initial_text: "-- Seleccionar --",selected_value : '<?php echo e($row["Condominio"]); ?>' });
		
	$("#Residencia").jCombo("<?php echo url('residentes/comboselect?filter=residencia:Nombre:Nombre'); ?>&parent=Condominio:",
		{  parent: '#Condominio',initial_text: "-- Seleccionar --", selected_value : '<?php echo e($row["Residencia"]); ?>' });
		
		
		$("#Banco").jCombo("<?php echo url('residentes/comboselect?filter=suplidor:Nombre:Nombre'); ?>",
		{ initial_text: "-- Seleccionar --", selected_value : '<?php echo e($row["Banco"]); ?>' });
		 	
		 	 

		$('.removeMultiFiles').on('click',function(){
			var file =  $(this).attr('url') ;
			var removeUrl = '<?php echo e(url( $pageModule."/removefiles?file=")); ?>'+ file;
			$(this).parent().remove();
			$.get(removeUrl,function(response){});
			$(this).parent('div').empty();	
			return false;
		});
	});
	</script>
	<style>
	
select {
  // A reset of styles, including removing the default dropdown arrow
  appearance: none;
  background-color: transparent;
  height: 40px; 
  padding: 0 1em 0 0;
  margin: 0;
  width: 100%;
  font-family: inherit;
  font-size: inherit;
  cursor: inherit;
  line-height: inherit;
   border-radius: 8px;
  margin-top:7px;
  border-color: #cccccc;
  padding:5px;
}	
	
	
	
	
	
  .btn:focus,.btn:active {
   outline: none !important;
   box-shadow: none;
}  
    
    
</style>	
	
	
<?php $__env->stopSection(); ?>
<?php echo $__env->make('layouts.app', \Illuminate\Support\Arr::except(get_defined_vars(), ['__data', '__path']))->render(); ?><?php /**PATH /home/tempdpe5/public_html/intelpropertyrd/aplicacionmobile/resources/views/residentes/form.blade.php ENDPATH**/ ?>