@if($setting['form-method'] =='native')
<div class="card">
	<div class="card-body">
@endif
		<div class="form-ajax-box">
		{!! Form::open(array('url'=>'datasppbjips?return='.$return, 'class'=>'form-horizontal  sximo-form validated','files' => true , 'parsley-validate'=>'','novalidate'=>' ','id'=> 'datasppbjipsFormAjax')) !!}

			<div class="toolbar-nav">	
				<div class="row">	
					
					<div class="col-md-6">
						<a href="javascript://ajax" onclick="ajaxViewClose('#{{ $pageModule }}')" class="tips btn btn-sm btn-danger  " title="{{ __('core.btn_back') }}" ><i class="fa  fa-times"></i></a>
					</div>
					<div class="col-sm-6 text-right">	
						<div class="btn-group">
							<button type="submit" class="btn btn-sm  btn-primary " name="apply"> {{ Lang::get('core.sb_apply') }} </button>
							<button type="submit" class="btn btn-sm btn-success" name="save">  {{ Lang::get('core.sb_save') }} </button>
						</div>	
					</div>	
							
				</div>
			</div>	
				<div class="row">

			
			<div class="col-md-12">
						<fieldset><legend> Data Sppbj IPS</legend>
				{!! Form::hidden('id', $row['id']) !!}					
									  <div class="form-group row  " >
										<label for="Sppbj No" class=" control-label col-md-4 "> Sppbj No </label>
										<div class="col-md-8">
										  <input  type='text' name='sppbj_no' id='sppbj_no' value='{{ $row['sppbj_no'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Title" class=" control-label col-md-4 "> Title </label>
										<div class="col-md-8">
										  <input  type='text' name='title' id='title' value='{{ $row['title'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Value Hps" class=" control-label col-md-4 "> Value Hps </label>
										<div class="col-md-8">
										  <input  type='text' name='value_hps' id='value_hps' value='{{ $row['value_hps'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Sppbj Date" class=" control-label col-md-4 "> Sppbj Date </label>
										<div class="col-md-8">
										  <input  type='text' name='sppbj_date' id='sppbj_date' value='{{ $row['sppbj_date'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Sppbj Status" class=" control-label col-md-4 "> Sppbj Status </label>
										<div class="col-md-8">
										  <input  type='text' name='sppbj_status' id='sppbj_status' value='{{ $row['sppbj_status'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Panitia" class=" control-label col-md-4 "> Panitia </label>
										<div class="col-md-8">
										  <input  type='text' name='panitia' id='panitia' value='{{ $row['panitia'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Pk Number" class=" control-label col-md-4 "> Pk Number </label>
										<div class="col-md-8">
										  <input  type='text' name='pk_number' id='pk_number' value='{{ $row['pk_number'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Vendor" class=" control-label col-md-4 "> Vendor </label>
										<div class="col-md-8">
										  <input  type='text' name='vendor' id='vendor' value='{{ $row['vendor'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Tgl Sppbj" class=" control-label col-md-4 "> Tgl Sppbj </label>
										<div class="col-md-8">
										  <input  type='text' name='tgl_sppbj' id='tgl_sppbj' value='{{ $row['tgl_sppbj'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="No Ref" class=" control-label col-md-4 "> No Ref </label>
										<div class="col-md-8">
										  <input  type='text' name='no_ref' id='no_ref' value='{{ $row['no_ref'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for=" Action" class=" control-label col-md-4 ">  Action </label>
										<div class="col-md-8">
										  <input  type='text' name='_action' id='_action' value='{{ $row['_action'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> </fieldset></div>									
				
			<input type="hidden" name="action_task" value="save" />				
						


			

			
		{!! Form::close() !!}
		</div>

@if($setting['form-method'] =='native')

	</div>
</div>
@endif

@include('sximo.module.template.ajax.formjavascript')

<script type="text/javascript">
$(document).ready(function() { 
	 
	
	 
				
	var form = $('#datasppbjipsFormAjax'); 
	form.parsley();
	form.submit(function(){
		
		if(form.parsley().isValid()){			
			var options = { 
				dataType:      'json', 
				beforeSubmit :  function(){
				},
				success: function(data) {
					if(data.status == 'success')
					{
						ajaxViewClose('#{{ $pageModule }}');
						var table = $('#datasppbjipsTable').DataTable();
						table.ajax.reload();
						notyMessage(data.message);	
						$('#sximo-modal').modal('hide');	
					} else {
						notyMessageError(data.message);	
						return false;
					}
				}  
			}  
			$(this).ajaxSubmit(options); 
			return false;
						
		} else {
			return false;
		}		
	
	});

});

</script>		 