<?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/deal2.png')); ?>">
  <img class="imagenmodulo2" src="<?php echo e(URL::asset('dashboardimage/linea.png')); ?>">&nbsp   CONTROL DE RESERVACIONES </div>
</div>

	<?php echo Form::open(array('url'=>'reservacionesadmin?return='.$return, 'class'=>'form-horizontal 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="apply" style="border-color:#f29f41;">APLICAR CAMBIOS</button>-->
				<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 General</legend>
				<?php echo Form::hidden('id', $row['id']); ?>	
				
				                       <div class="form-group row  " >
										<label for="Condominio" class=" control-label col-md-4 text-left" style="font-weight:600;"> Condominio :</label>
										<div class="col-md-6">
										  <select name='Condominio' rows='5' id='Condominio' class='select2 '   ></select> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 	 
				
				
									  <div class="form-group row  " >
										<label for="Localización" class=" control-label col-md-4 text-left" style="font-weight:600;"> Localización :</label>
										<div class="col-md-6">
										   <select name='title' rows='5' id='title' class='select2 '   ></select> 
										 </div>
										 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  			
									  <div class="form-group row  " >
										<label for="Residencia" class=" control-label col-md-4 text-left" style="font-weight:600;"> Residencia :</label>
										<div class="col-md-6">
										  <select name='Residencia' rows='5' id='Residencia' class='select2 '   ></select> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Descrición" class=" control-label col-md-4 text-left" style="font-weight:600;"> Descrición :</label>
										<div class="col-md-6">
										  <textarea name='description' rows='5' id='description' class='form-control form-control-sm '  
				           ><?php echo e($row['description']); ?></textarea>  
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Estatus" class=" control-label col-md-4 text-left" style="font-weight:600;"> Estatus :</label>
										<div class="col-md-6">
										  
					<?php $status = explode(',',$row['status']);
					$status_opt = array( 'En Revision' => 'En Revision' ,  'Pagar' => 'Para Pago' ,  'No Aprobada' => 'No Aprobada' ,  'Reservar' => 'Reservar' , ); ?>
					<select name='status' rows='5'   class='select2 '  > 
						<?php 
						foreach($status_opt as $key=>$val)
						{
							echo "<option  value ='$key' ".($row['status'] == $key ? " selected='selected' " : '' ).">$val</option>"; 						
						}						
						?></select> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Fecha de inicio" class=" control-label col-md-4 text-left" style="font-weight:600;"> Fecha de inicio :</label>
										<div class="col-md-6">
										  
					<?php echo Form::text('fechadeinicio', $row['fechadeinicio'],array('class'=>'form-control form-control-sm datetime')); ?>

				 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Fecha final" class=" control-label col-md-4 text-left" style="font-weight:600;"> Fecha final :</label>
										<div class="col-md-6">
										  
					<?php echo Form::text('fechafinal', $row['fechafinal'],array('class'=>'form-control form-control-sm datetime')); ?>

				 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Pago" class=" control-label col-md-4 text-left" style="font-weight:600;"> Pago :</label>
										<div class="col-md-6">
										 	<?php $Pago = explode(',',$row['Pago']);
					$Pago_opt = array( 'No' => 'No' ,  'Si' => 'Si' , ); ?>
					<select name='Pago' rows='5'   class='select2 '  > 
						<?php 
						foreach($Pago_opt as $key=>$val)
						{
							echo "<option  value ='$key' ".($row['Pago'] == $key ? " selected='selected' " : '' ).">$val</option>"; 						
						}						
						?></select> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " style="margin-bottom:-25px;" >
										<label for="Cantidad" class=" control-label col-md-4 text-left" style="font-weight:600;"> Cantidad :</label>
										<div class="col-md-6">
										  <input  type='text' name='Cantidad' id='Cantidad' value='<?php echo e($row['Cantidad']); ?>' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> </fieldset></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('reservacionesadmin/comboselect?filter=condominios:Nombre:Nombre'); ?>",
		{ initial_text: "-- Seleccionar --",selected_value : '<?php echo e($row["Condominio"]); ?>' });
		
	   $("#Residencia").jCombo("<?php echo url('reservacionesadmin/comboselect?filter=residencia:Nombre:Nombre'); ?>&parent=Condominio:",
		{  parent: '#Condominio',initial_text: "-- Seleccionar --", selected_value : '<?php echo e($row["Residencia"]); ?>' });
		
		 $("#title").jCombo("<?php echo url('reservacionesadmin/comboselect?filter=localizacion:Nombre:Nombre'); ?>&parent=Condominio:",
		{  parent: '#Condominio',initial_text: "-- Seleccionar --", selected_value : '<?php echo e($row["title"]); ?>' });
		 
		 	
		 	 

		$('.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;
		});
	});
	
$('.datetime').bootstrapMaterialDatePicker({ format:'YYYY-MM-DD hh:mm A',lang : 'es', cancelText: 'Cancelar'});	
	</script>
	
<style>
    
 .btn:focus,.btn:active {
   outline: none !important;
   box-shadow: none;
}      
    
    
label{ font-weight: 600;}      
    
    
</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/reservacionesadmin/form.blade.php ENDPATH**/ ?>