@extends('layouts.app')

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

	{!! Form::open(array('url'=>'gestioncomunicacion?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 name="apply" class="tips btn btn-sm btn-primary   "  title="{{ __('core.btn_back') }}" > {{ __('core.sb_apply') }} </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">
		<div class="card-body">
			
		
	<div class="row"><div class="col-md-12">
						<fieldset style="border-color:#7fb3e3;"><legend> Información General</legend>
				{!! Form::hidden('ComID', $row['ComID']) !!}					
									  <div class="form-group row  " >
										<label for="Pregunta" class=" control-label col-md-4 text-left" style="font-weight:600;"> Pregunta :</label>
										<div class="col-md-6">
										  <textarea name='Pregunta' rows='5' id='Pregunta' class='form-control form-control-sm '  
				           >{{ $row['Pregunta'] }}</textarea> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " style="margin-bottom:-25px;"> 
										<label for="Respuesta" class=" control-label col-md-4 text-left" style="font-weight:600;"> Respuesta :</label>
										<div class="col-md-6">
										  <textarea name='Respuesta' rows='5' id='Respuesta' class='form-control form-control-sm '  
				           >{{ $row['Respuesta'] }}</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() { 
		
		
		 	
		 	 

		$('.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;
		});
	});
	</script>
	
	<style>
  .btn:focus,.btn:active {
   outline: none !important;
   box-shadow: none;
}  
    
    
</style>	
	
@stop