

		 {!! Form::open(array('url'=>'footermenu/savepublic', 'class'=>'form-vertical','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="sbox1"><div class="col-md-6">
						<fieldset class="sbox" style="border-top:0; border-radius: 5px;"><legend> Footer Menu</legend>
				<?php if( !isset($row['id']))  $row['id'] = null;   ?>
		<input  type='hidden' name='id' id='id' value='{{$row['id']}}' />
									
									  <div class="form-group  depen-  wrap-title  " >
										<label for="ipt" class=" control-label "> Title  <span class="asterix"> * </span>  </label>
										
										
										  <?php if( !isset($row['title']))  $row['title'] = null;   ?>
		 <?php $val = json_decode($row['title']); $is_first = true; ?>	
				<ul class='editor-nav nav nav-tabs'>

				@foreach(explode(',', config('website.cnf_langs')) as $ilang )<li class='{{$is_first ? "active" : null}} '><a  href='#title_{{$ilang}}_{{$curTime}}' data-toggle='tab'>{{$ilang}}</a></li>
				<?php  $is_first = false;?>
				@endforeach </ul>
				
				<div class="tab-content ">
				<?php $is_first = true; ?>
				@foreach(explode(',', config('website.cnf_langs')) as $ilang )
				<div class='tab-pane tab_{{$ilang}}  {{$is_first ? "active" : null}}' id='title_{{$ilang}}_{{$curTime}}'>
				<input  type='text' name="title[{{$ilang}}]" id='title' value='{{   isset($val->{$ilang}) ? $val->{$ilang} : ''   }}' 
						required  placeholder='Title - {{$ilang}}'     class='form-control input-sm ' />
						</div>
						<?php  $is_first = false;?>
						@endforeach
						</div>
						 						
									  </div> 					
									  <div class="form-group  depen-  wrap-footer_type  " >
										<label for="ipt" class=" control-label "> Footer Type  <span class="asterix"> * </span>  </label>
										
										
										  <?php if( !isset($row['footer_type']))  $row['footer_type'] = null;   ?>
		<input  type='text' name='footer_type' id='footer_type' value='{{ $row['footer_type'] }}' 
						required       class='form-control input-sm ' /> 						
									  </div> </fieldset>
			</div>
			
			<div class="col-md-6">
						<fieldset class="sbox" style="border-top:0; border-radius: 5px;"><legend> Additional Information</legend>
									
									  <div class="form-group  depen-  wrap-footer_value  " >
										<label for="ipt" class=" control-label "> Footer Value    </label>
										
										
										  <?php if( !isset($row['footer_value']))  $row['footer_value'] = null;   ?>
		<input  type='text' name='footer_value' id='footer_value' value='{{ $row['footer_value'] }}' 
						       class='form-control input-sm ' /> 						
									  </div> 					
									  <div class="form-group  depen-  wrap-sort_order  " >
										<label for="ipt" class=" control-label "> Sort Order  <span class="asterix"> * </span>  </label>
										
										
										  <?php if( !isset($row['sort_order']))  $row['sort_order'] = null;   ?>
		<input  type='number' name='sort_order' id='sort_order' value='{{ $row['sort_order'] }}' 
						required       class='form-control is_number'  /> 						
									  </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-info btn-sm" ><i class="fa  fa-check-circle"></i> {{ Lang::get('core.sb_apply') }}</button>
					<button type="submit" name="submit" class="btn btn-primary 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>		 
