@extends('layouts.app')

@section('content')
<div class="page-header" style="background-color: #6382a6;;">
  <div class="modulo "><img class="imagenmodulo1" src="{{ URL::asset('dashboardimage/consensus2.png') }}">
  <img class="imagenmodulo2" src="{{ URL::asset('dashboardimage/linea.png') }}">&nbsp   CONTROL DE REUNIONES</div>
</div>

	{!! Form::open(array('url'=>'controlreuniones?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="{{ 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="{{ url($pageModule.'?return='.$return) }}" class="tips btn btn-secondary  btn-sm "  title="{{ __('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>
				{!! Form::hidden('ReunionID', $row['ReunionID']) !!}					
									  <div class="form-group row  " >
										<label for="Fecha" class=" control-label col-md-4 text-left"style="font-weight:600;"> Fecha :</label>
										<div class="col-md-6">
										  
				
					{!! Form::text('Fecha', $row['Fecha'],array('class'=>'form-control form-control-sm date')) !!} 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <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="Descripción" class=" control-label col-md-4 text-left"style="font-weight:600;"> Descripción :</label>
										<div class="col-md-6">
										  <input  type='text' name='Descripcion' id='Descripcion' value='{{ $row['Descripcion'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Temas" class=" control-label col-md-4 text-left"style="font-weight:600;"> Temas :</label>
										<div class="col-md-6">
										  <textarea name='Temas' rows='5' id='Temas' class='form-control form-control-sm editor'  
				           >{{ $row['Temas'] }}</textarea> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Acuerdos" class=" control-label col-md-4 text-left"style="font-weight:600;"> Acuerdos :</label>
										<div class="col-md-6">
										  <textarea name='Acuerdos' rows='5' id='Acuerdos' class='form-control form-control-sm editor'  
				           >{{ $row['Acuerdos'] }}</textarea> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " style="margin-bottom:-25px;">
										<label for="Comentarios" class=" control-label col-md-4 text-left"style="font-weight:600;"> Comentarios :</label>
										<div class="col-md-6">
										  <textarea name='Comentarios' rows='5' id='Comentarios' class='form-control form-control-sm editor'  
				           >{{ $row['Comentarios'] }}</textarea> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> </fieldset></div></div>
	
		</div>
		
		<input type="hidden" name="action_task" value="save" />
		
		
		</div>
	</div>		


	{!! Form::close() !!}
		@include('sximo.module.template.ajax.formjavascript')
   <script type="text/javascript">
	$(document).ready(function() { 
		
		
		
		$("#Condominio").jCombo("{!! url('controlreuniones/comboselect?filter=condominios:Nombre:Nombre') !!}",
		{  initial_text: "-- Seleccionar --",selected_value : '{{ $row["Condominio"] }}' });
		 	
		 	 

		$('.removeMultiFiles').on('click',function(){
			var file =  $(this).attr('url') ;
			var removeUrl = '{{ url( $pageModule."/removefiles?file=")}}'+ file;
			$(this).parent().remove();
			$.get(removeUrl,function(response){});
			$(this).parent('div').empty();	
			return false;
		});
	});
$('.date').bootstrapMaterialDatePicker({ format:'YYYY-MM-DD',lang :'es',time: false, cancelText: 'Cancelar'});	
	</script>
	<style>
  .btn:focus,.btn:active {
   outline: none !important;
   box-shadow: none;
}  
    
   .note-insert{
    display:none;
}	    
.note-view{
    display:none;
}	    	    
	      
</style>	
	
	
@stop