

		 {!! Form::open(array('url'=>'controldetrabajo', 'class'=>'form-horizontal','files' => true , 'parsley-validate'=>'','novalidate'=>' ')) !!}

	@if(Session::has('messagetext'))
	  
		   {!! Session::get('messagetext') !!}
	   
	@endif
	<ul class="parsley-error-list">
		@foreach($errors->all() as $error)
			<li>{{ $error }}</li>
		@endforeach
	</ul>		


<div class="row"><div class="col-md-12">
						<fieldset><legend> Control de Trabajos</legend>
				{!! Form::hidden('OrdenID', $row['OrdenID']) !!}					
									  <div class="form-group row  " >
										<label for="Condominio" class=" control-label col-md-4 text-left"> Condominio </label>
										<div class="col-md-6">
										  <input  type='text' name='Condominio' id='Condominio' value='{{ $row['Condominio'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Residencia" class=" control-label col-md-4 text-left"> Residencia </label>
										<div class="col-md-6">
										  <input  type='text' name='Residencia' id='Residencia' value='{{ $row['Residencia'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Fecha" class=" control-label col-md-4 text-left"> Fecha </label>
										<div class="col-md-6">
										  
					{!! Form::text('Fecha', $row['Fecha'],array('class'=>'form-control form-control-sm datetime')) !!}
				 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Titulo" class=" control-label col-md-4 text-left"> Titulo </label>
										<div class="col-md-6">
										  <textarea name='Titulo' rows='5' id='Titulo' class='form-control form-control-sm '  
				           >{{ $row['Titulo'] }}</textarea> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Tipodeorden" class=" control-label col-md-4 text-left"> Tipodeorden </label>
										<div class="col-md-6">
										  <input  type='text' name='Tipodeorden' id='Tipodeorden' value='{{ $row['Tipodeorden'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Descripcion" class=" control-label col-md-4 text-left"> Descripcion </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="Fechadeinicio" class=" control-label col-md-4 text-left"> Fechadeinicio </label>
										<div class="col-md-6">
										  <input  type='text' name='Fechadeinicio' id='Fechadeinicio' value='{{ $row['Fechadeinicio'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Fechafinal" class=" control-label col-md-4 text-left"> Fechafinal </label>
										<div class="col-md-6">
										  <input  type='text' name='Fechafinal' id='Fechafinal' value='{{ $row['Fechafinal'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Status" class=" control-label col-md-4 text-left"> Status </label>
										<div class="col-md-6">
										  <input  type='text' name='Status' id='Status' value='{{ $row['Status'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Comentarios" class=" control-label col-md-4 text-left"> Comentarios </label>
										<div class="col-md-6">
										  <input  type='text' name='Comentarios' id='Comentarios' value='{{ $row['Comentarios'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Email" class=" control-label col-md-4 text-left"> Email </label>
										<div class="col-md-6">
										  <input  type='text' name='email' id='email' value='{{ $row['email'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Mes" class=" control-label col-md-4 text-left"> Mes </label>
										<div class="col-md-6">
										  <input  type='text' name='Mes' id='Mes' value='{{ $row['Mes'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Ano" class=" control-label col-md-4 text-left"> Ano </label>
										<div class="col-md-6">
										  <input  type='text' name='Ano' id='Ano' value='{{ $row['Ano'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Fecha2" class=" control-label col-md-4 text-left"> Fecha2 </label>
										<div class="col-md-6">
										  <input  type='text' name='Fecha2' id='Fecha2' value='{{ $row['Fecha2'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Mesano" class=" control-label col-md-4 text-left"> Mesano </label>
										<div class="col-md-6">
										  <input  type='text' name='mesano' id='mesano' value='{{ $row['mesano'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> </fieldset></div></div>

			<div style="clear:both"></div>	
				
					
				  <div class="form-group">
					<label class="col-sm-4 text-right">&nbsp;</label>
					<div class="col-sm-8">	
					<button type="submit" name="apply" class="btn btn-default btn-sm" ><i class="fa  fa-check-circle"></i> {{ Lang::get('core.sb_apply') }}</button>
					<button type="submit" name="submit" class="btn btn-default btn-sm" ><i class="fa  fa-save "></i> {{ Lang::get('core.sb_save') }}</button>
				  </div>	  
			
		</div> 
		 <input type="hidden" name="action_task" value="public" />
		 {!! Form::close() !!}
		 
   <script type="text/javascript">
	$(document).ready(function() { 
		
		 

		$('.removeCurrentFiles').on('click',function(){
			var removeUrl = $(this).attr('href');
			$.get(removeUrl,function(response){});
			$(this).parent('div').empty();	
			return false;
		});		
		
	});
	</script>		 
