
<div  class="card">
	<div class="card-body">
		<div class="toolbar-nav">
			<div class="row">
				<div class="col-md-12">
						<div class="form-group  " >
						<label for="problem_group" class="control-label">Problem Group</label>
						<input type="text" name="problem_group" id="problem_group" class="form-control text-dark" value="{{ $pi->problem_group }}" readonly />
						</div> 

																<div class="form-group  " >
						<label for="area_problem" class="control-label">Area Problem</label>
						<input type="text" name="area_problem" id="area_problem" class="form-control text-dark" value="{{ $pi->area_problem }}" readonly />
						</div> 
</div>
			</div>
		<div >

	



		 <div class="table-responsive" style="min-height:300px;">
	    <table class="table table-hover table-striped  ">
	        <thead>
				<tr>
					<th class="number"> No </th>			
					@foreach ($tableGrid as $t)
						@if($t['view'] =='1')
							<th>{{ $t['label'] }}</th>
						@endif
					@endforeach
				  </tr>
	        </thead>

	        <tbody>
							
	            @foreach ($rowData as $row)
	                <tr>
						<td width="30"> {{ ++$i }} </td>	
					@foreach ($tableGrid as $field)
						 @if($field['view'] =='1')
						 	<?php $limited = isset($field['limited']) ? $field['limited'] :''; ?>
						 	@if(SiteHelpers::filterColumn($limited ))
							 <td>					 
							 	{!! SiteHelpers::formatRows($row->{$field['field']},$field ,$row ) !!}						 
							 </td>
							@endif	
						 @endif					 
					 @endforeach				 
					<td>					 
						@if(empty($row->tgl_penyelesaian))
							 	<button onclick="SximoModal2('correctiveactiondone/create?id={{ $row->id_corrective }}','Penyelesaian Target')" class="btn btn-xs btn-primary"> Penyelesaian <i class="fa fa-check"></i> </button>						 
						@endif
							</td>
	                </tr>
					
	            @endforeach
	              
	        </tbody>
	      
	    </table>
		<input type="hidden" name="md" value="" />
		</div>

		
		
		@include('footer')
	</div>  
</div>
