

		 {!! Form::open(array('url'=>'claims', '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="col-md-12">
						<fieldset><legend> Réclamation</legend>
				{!! Form::hidden('id', $row['id']) !!}					
									  <div class="form-group row  " >
										<label for="Traité par" class=" control-label col-md-4 text-left"> Traité par <span class="asterix"> * </span></label>
										<div class="col-md-6">
										  <select name='treated_by' rows='5' id='treated_by' class='select2 '   ></select> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Clôturé par" class=" control-label col-md-4 text-left"> Clôturé par <span class="asterix"> * </span></label>
										<div class="col-md-6">
										  <select name='closed_by' rows='5' id='closed_by' class='select2 '   ></select> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Objet" class=" control-label col-md-4 text-left"> Objet <span class="asterix"> * </span></label>
										<div class="col-md-6">
										  <input  type='text' name='subject' id='subject' value='{{ $row['subject'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Description" class=" control-label col-md-4 text-left"> Description <span class="asterix"> * </span></label>
										<div class="col-md-6">
										  <textarea name='description' rows='5' id='description' class='form-control form-control-sm '  
				           >{{ $row['description'] }}</textarea> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> 					
									  <div class="form-group row  " >
										<label for="Date traitement" class=" control-label col-md-4 text-left"> Date traitement <span class="asterix"> * </span></label>
										<div class="col-md-6">
										  <textarea name='processing_date' rows='5' id='processing_date' class='form-control form-control-sm '  
				           >{{ $row['processing_date'] }}</textarea> 
										 </div> 
										 <div class="col-md-2">
										 	
										 </div>
									  </div> </fieldset>
			</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() { 
		
		
		$("#entry_by").jCombo("{!! url('claims/comboselect?filter=tb_users:id:first_name|last_name') !!}",
		{  selected_value : '{{ $row["entry_by"] }}' });
		
		$("#treated_by").jCombo("{!! url('claims/comboselect?filter=tb_users:id:first_name|last_name') !!}",
		{  selected_value : '{{ $row["treated_by"] }}' });
		
		$("#closed_by").jCombo("{!! url('claims/comboselect?filter=tb_users:id:first_name|last_name') !!}",
		{  selected_value : '{{ $row["closed_by"] }}' });
		 

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