@if($setting['form-method'] =='native')
<div class="card">
	<div class="card-body">
@endif
		<div class="form-ajax-box">
		{!! Form::open(array('url'=>'dataprips?return='.$return, 'class'=>'form-horizontal  sximo-form validated','files' => true , 'parsley-validate'=>'','novalidate'=>' ','id'=> 'datapripsFormAjax')) !!}

			<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 PR IPS</legend>
				{!! Form::hidden('id', $row['id']) !!}					
									  <div class="form-group row  " >
										<label for="Company Id" class=" control-label col-md-4 "> Company Id </label>
										<div class="col-md-8">
										  <input  type='text' name='company_id' id='company_id' value='{{ $row['company_id'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Plant Id" class=" control-label col-md-4 "> Plant Id </label>
										<div class="col-md-8">
										  <input  type='text' name='plant_id' id='plant_id' value='{{ $row['plant_id'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="No Pr" class=" control-label col-md-4 "> No Pr </label>
										<div class="col-md-8">
										  <input  type='text' name='no_pr' id='no_pr' value='{{ $row['no_pr'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Tgl Pr" class=" control-label col-md-4 "> Tgl Pr </label>
										<div class="col-md-8">
										  
					{!! Form::text('tgl_pr', $row['tgl_pr'],array('class'=>'form-control form-control-sm datetime')) !!}
				 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Pri Purchasing Org" class=" control-label col-md-4 "> Pri Purchasing Org </label>
										<div class="col-md-8">
										  <input  type='text' name='pri_purchasing_org' id='pri_purchasing_org' value='{{ $row['pri_purchasing_org'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Plant" class=" control-label col-md-4 "> Plant </label>
										<div class="col-md-8">
										  <input  type='text' name='plant' id='plant' value='{{ $row['plant'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Tgl Verif Pr" class=" control-label col-md-4 "> Tgl Verif Pr </label>
										<div class="col-md-8">
										  
					{!! Form::text('tgl_verif_pr', $row['tgl_verif_pr'],array('class'=>'form-control form-control-sm datetime')) !!}
				 
										 </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="Pk Bersama" class=" control-label col-md-4 "> Pk Bersama </label>
										<div class="col-md-8">
										  <input  type='text' name='pk_bersama' id='pk_bersama' value='{{ $row['pk_bersama'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Pk Konsolidasi" class=" control-label col-md-4 "> Pk Konsolidasi </label>
										<div class="col-md-8">
										  <input  type='text' name='pk_konsolidasi' id='pk_konsolidasi' value='{{ $row['pk_konsolidasi'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Tgl Pk" class=" control-label col-md-4 "> Tgl Pk </label>
										<div class="col-md-8">
										  <input  type='text' name='tgl_pk' id='tgl_pk' value='{{ $row['tgl_pk'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Tgl Pk Bersama" class=" control-label col-md-4 "> Tgl Pk Bersama </label>
										<div class="col-md-8">
										  <input  type='text' name='tgl_pk_bersama' id='tgl_pk_bersama' value='{{ $row['tgl_pk_bersama'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Tgl Verif Pk" class=" control-label col-md-4 "> Tgl Verif Pk </label>
										<div class="col-md-8">
										  
					{!! Form::text('tgl_verif_pk', $row['tgl_verif_pk'],array('class'=>'form-control form-control-sm datetime')) !!}
				 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Pp No" class=" control-label col-md-4 "> Pp No </label>
										<div class="col-md-8">
										  <input  type='text' name='pp_no' id='pp_no' value='{{ $row['pp_no'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Tgl Pp" class=" control-label col-md-4 "> Tgl Pp </label>
										<div class="col-md-8">
										  
					{!! Form::text('tgl_pp', $row['tgl_pp'],array('class'=>'form-control form-control-sm datetime')) !!}
				 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Tgl Pelaksanaan Pp" class=" control-label col-md-4 "> Tgl Pelaksanaan Pp </label>
										<div class="col-md-8">
										  <input  type='text' name='tgl_pelaksanaan_pp' id='tgl_pelaksanaan_pp' value='{{ $row['tgl_pelaksanaan_pp'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Tgl Award" class=" control-label col-md-4 "> Tgl Award </label>
										<div class="col-md-8">
										  <input  type='text' name='tgl_award' id='tgl_award' value='{{ $row['tgl_award'] }}' 
						     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="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="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="Tgl Approval Sppbj" class=" control-label col-md-4 "> Tgl Approval Sppbj </label>
										<div class="col-md-8">
										  <input  type='text' name='tgl_approval_sppbj' id='tgl_approval_sppbj' value='{{ $row['tgl_approval_sppbj'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Perikatan No" class=" control-label col-md-4 "> Perikatan No </label>
										<div class="col-md-8">
										  <input  type='text' name='perikatan_no' id='perikatan_no' value='{{ $row['perikatan_no'] }}' 
						     class='form-control form-control-sm ' /> 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Tgl Kontrak" class=" control-label col-md-4 "> Tgl Kontrak </label>
										<div class="col-md-8">
										  
					{!! Form::text('tgl_kontrak', $row['tgl_kontrak'],array('class'=>'form-control form-control-sm datetime')) !!}
				 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Tgl Release Kontrak" class=" control-label col-md-4 "> Tgl Release Kontrak </label>
										<div class="col-md-8">
										  
					{!! Form::text('tgl_release_kontrak', $row['tgl_release_kontrak'],array('class'=>'form-control form-control-sm datetime')) !!}
				 
										 </div> 
										 
									  </div> 					
									  <div class="form-group row  " >
										<label for="Purchasing Organization" class=" control-label col-md-4 "> Purchasing Organization </label>
										<div class="col-md-8">
										  <input  type='text' name='purchasing_organization' id='purchasing_organization' value='{{ $row['purchasing_organization'] }}' 
						     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 = $('#datapripsFormAjax'); 
	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 = $('#datapripsTable').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>		 