<!-- ============================ Template Sales Nutricell =========================== -->

<?php if (\Entrust::hasRole('Sales Nutricell') || \Entrust::hasRole('Customer')) : ?>

<div class="form-group{{ $errors->has('id') ? ' has-error' : '' }}" style="display:none;">
	{!! Form::label('id', 'Id', ['class'=>'col-md-2 control-label']) !!}
	<div class="col-md-4">
		{!! Form::text('id', null, ['class'=>'form-control']) !!}
		{!! $errors->first('id', '<p class="help-block">:message</p>') !!}
	</div>
</div>

<div class="form-group{{ $errors->has('tanggal') ? ' has-error' : '' }}">
	{!! Form::label('tanggal', 'Tanggal', ['class'=>'col-md-2 control-label']) !!}
	<div class="col-md-4">
		{!! Form::date('tanggal', null, ['class'=>'form-control']) !!}
		{!! $errors->first('tanggal', '<p class="help-block">:message</p>') !!}
	</div>
</div>


<div class="form-group{{ $errors->has('regional') ? ' has-error' : '' }}">
	{!! Form::label('regional', 'Regional', ['class'=>'col-md-2 control-label']) !!}
	<div class="col-md-4">
		{!! Form::text('regional', null, ['class'=>'form-control']) !!}
		{!! $errors->first('regional', '<p class="help-block">:message</p>') !!}
	</div>
</div>


<div class="form-group{{ $errors->has('customer') ? ' has-error' : '' }}">
	{!! Form::label('customer', 'Cutomer', ['class'=>'col-md-2 control-label']) !!}
	<div class="col-md-4">
		
		<select name="customer" id="customer" class="form-control" style="width:200px;">

	   <option value="{{ $transaksiall->customer }}">{{ $transaksiall->customer }}</option>
	   @foreach($customer as $customer)
         <option value="{{ $customer->name }}">{{ $customer->name }}</option>
       @endforeach
</select>
		
		{!! $errors->first('customer', '<p class="help-block">:message</p>') !!}
	</div>
</div>



<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
	{!! Form::label('nama', 'Nama', ['class'=>'col-md-2 control-label']) !!}
	<div class="col-md-4">
		{!! Form::text('nama', null, ['class'=>'form-control']) !!}
		{!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
	</div>
</div>




<div class="table-responsive" style="width:97%; padding-left:20px;">

<!-- ================================= INFORMATION ========================= -->
<table class="" id="data" style="font-size: 0.9em; border: 0px solid;width:100%;">
				<thead>
					<tr style="display:none;">
						<th>Pilih</th>
                        
						<th>Nama Parameter</th>
						<th>Value</th>
						<th>Satuan</th>
						
                       
					
</tr>
				</thead>
				<tbody id="kategorisam">

<tr style="border: 0px solid;background-color:#872522;height:25px;color:#ffffff;">
<td style="padding-left:20px;"><div class="form-group">INFORMATION </div></td>
<td></td>
<td></td>

</tr>
<tr style="border: 0px solid;background-color:#FDF4E3;height:15px;">
<td style="padding-left:20px;"><div class="form-group"> </div></td>
<td></td>
<td></td>

</tr>   

					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($population as $parameter)
					<tr style="border: 0px solid;background-color:#FDF4E3;">
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                        <td style="width:100px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
                        <td style="width:200px;text-align:right;padding-left:10px;"> 


<input style="width:170px;display:none;" class="" type='text' name=tanggal_[] id=tanggal_' value="{{ $parameter->tanggal}}">
 </input> 

<input style="width:170px;display:none;" class="" type='text' name=nama_calc[] id=nama_calc' value="{{ $parameter->nama_calc}}">
 </input>

<input style="width:170px;display:none;" class="" type='text' name=regional_[] id=regional_' value="{{ $parameter->regional}}">
 </input>  

<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<input style="width:170px;" class="form-control" type='text' name=value[] id=value' value="{{ $parameter->value}}">
 </input> 

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach

					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($list_parameter as $parameter)
					<tr style="border: 0px solid;background-color:#FDF4E3;">
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                        <td style="width:100px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
                        <td style="width:200px;text-align:right;padding-left:10px;"> 


<input style="width:170px;display:none;" class="" type='text' name=tanggal_[] id=tanggal_' value="{{ $parameter->tanggal}}">
 </input> 

<input style="width:170px;display:none;" class="" type='text' name=nama_calc[] id=nama_calc' value="{{ $parameter->nama_calc}}">
 </input>

<input style="width:170px;display:none;" class="" type='text' name=regional_[] id=regional_' value="{{ $parameter->regional}}">
 </input>  

<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<input style="width:170px;" class="form-control" type='text' name=value[] id=value' value="{{ $parameter->value}}">
 </input> 

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach

					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($electrict as $parameter)
					<tr style="border: 0px solid;background-color:#FDF4E3;">
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                        <td style="width:100px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
                        <td style="width:200px;text-align:right;padding-left:10px;"> 


<input style="width:170px;display:none;" class="" type='text' name=tanggal_[] id=tanggal_' value="{{ $parameter->tanggal}}">
 </input> 

<input style="width:170px;display:none;" class="" type='text' name=nama_calc[] id=nama_calc' value="{{ $parameter->nama_calc}}">
 </input>

<input style="width:170px;display:none;" class="" type='text' name=regional_[] id=regional_' value="{{ $parameter->regional}}">
 </input>  

<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<select class="form-control" name="value[]" id="value" style="width:170px;">
					    <option value="{{ $parameter->value }}">{{ $parameter->value }}</option>	    
                        @foreach($electricity as $electricity)
                        <option value="{{ $electricity->nama }}">{{ $electricity->nama }}</option>
						@endforeach
	</select>

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach


<tr style="border: 0px solid;background-color:#FDF4E3;height:10px;">
    <td></td>
    <td></td>
    <td></td>    
</tr>			

				</tbody>
                
             </table>




<table class="" id="data" style="font-size: 0.9em; border: 0px solid;width:100%;background-color:#FDF4E3;">
<tr>
<td style="width:30%">

<!-- ============================= FEED ============================== -->

<table class="" id="data" style="font-size: 0.9em; border: 0px solid;width:100%;">
				<thead>
					<tr style="display:none;">
						<th>Pilih</th>
                        
						<th>Nama Parameter</th>
						<th>Value</th>
						<th>Satuan</th>
						
                       
					
</tr>
				</thead>
				<tbody id="kategorisam">

<tr style="border: 0px solid;background-color:#FDF4E3;height:25px;">
<td style="padding-left:20px;"><div class="form-group">FEED: </div></td>
<td></td>
<td></td>

</tr>   

<tr style="border: 0px solid;background-color:#FDF4E3;height:15px;">
<td style="padding-left:20px;"><div class="form-group"> </div></td>
<td></td>
<td></td>

</tr>   


					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($feed as $parameter)
					<tr style="border: 0px solid;background-color:#FDF4E3;">
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                        <td style="width:200px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
                        <td style="width:200px;text-align:right;padding-left:10px;"> 


<input style="width:170px;display:none;" class="" type='text' name=tanggal_[] id=tanggal_' value="{{ $parameter->tanggal}}">
 </input> 

<input style="width:170px;display:none;" class="" type='text' name=nama_calc[] id=nama_calc' value="{{ $parameter->nama_calc}}">
 </input>

<input style="width:170px;display:none;" class="" type='text' name=regional_[] id=regional_' value="{{ $parameter->regional}}">
 </input>  

<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<input style="width:170px;" class="form-control" type='text' name=value[] id=value' value="{{ $parameter->value}}">
 </input> 

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach

<tr style="border: 0px solid;background-color:#FDF4E3;height:10px;">
    <td></td>
    <td></td>
    <td></td>    
</tr>			

<tr style="border: 0px solid;background-color:#FDF4E3;height:45px;">
<td style="padding-left:6px;">
<a href="#" id="toggle" onClick="toggle_it('datadetail')">| Detail | </a>
</td>
<td></td>
    <td></td>
    <td></td>   
</tr>


				</tbody>
                
             </table>
    
</td>

<td style="width:70%">

<!-- ============================ FEED PRICE ============================= -->
 
<table class="" id="data" style="font-size: 0.9em; border: 0px solid;width:100%;">
				<thead>
					<tr style="display:none;">
						<th>Pilih</th>
                        
						<th>Nama Parameter</th>
						<th>Value</th>
						<th>Satuan</th>
						
                       
					
</tr>
				</thead>
				<tbody id="kategorisam">

<tr style="border: 0px solid;background-color:#FDF4E3;height:25px;">
<td style="padding-left:20px;"><div class="form-group">PRICE : </div></td>
<td></td>
<td></td>

</tr>   

<tr style="border: 0px solid;background-color:#FDF4E3;height:15px;">
<td style="padding-left:20px;"><div class="form-group"> </div></td>
<td></td>
<td></td>

</tr>   


					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($feedprice as $parameter)
					<tr style="border: 0px solid;background-color:#FDF4E3;">
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                        <td style="width:100px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
                        <td style="width:200px;text-align:right;padding-left:10px;"> 


<input style="width:170px;display:none;" class="" type='text' name=tanggal_[] id=tanggal_' value="{{ $parameter->tanggal}}">
 </input> 

<input style="width:170px;display:none;" class="" type='text' name=nama_calc[] id=nama_calc' value="{{ $parameter->nama_calc}}">
 </input>

<input style="width:170px;display:none;" class="" type='text' name=regional_[] id=regional_' value="{{ $parameter->regional}}">
 </input>  

<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<input style="width:170px;" class="form-control" type='text' name=value[] id=value' value="{{ $parameter->value}}">
 </input> 

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach

<tr style="border: 0px solid;background-color:#FDF4E3;height:10px;">
    <td></td>
    <td></td>
    <td></td>    
</tr>			

<tr style="border: 0px solid;background-color:#FDF4E3;height:45px;">
<td style="padding-left:3px;">

</td>
<td></td>
    <td></td>
    <td></td>   
</tr>

				</tbody>
                
             </table>    
    
</td>
</table>

<table class="" id="datadetail" style="font-size: 0.9em; border: 0px solid;width:100%;background-color:#FDF4E3;display:none;">
<tr>

<!-- ================= FEED DETAIL ============= -->


<td style="width:20%">

<table class="" id="data" style="font-size: 0.9em; border: 0px solid;width:100%;">
				<thead>
					<tr style="display:none;">
						<th>Pilih</th>
                        
						<th>Nama Parameter</th>
						<th>Value</th>
						<th>Satuan</th>
						
                       
					
</tr>
				</thead>
				<tbody id="kategorisam">


<tr style="border: 0px solid;background-color:#FDF4E3;height:15px;">
<td style="padding-left:20px;"><div class="form-group"> </div></td>
<td></td>
<td></td>

</tr>   


					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($feeddetail as $parameter)
					<tr style="border: 0px solid;background-color:#FDF4E3;">
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                        <td style="width:100px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
                        <td style="width:200px;text-align:right;padding-left:10px;"> 


<input style="width:170px;display:none;" class="" type='text' name=tanggal_[] id=tanggal_' value="{{ $parameter->tanggal}}">
 </input> 

<input style="width:170px;display:none;" class="" type='text' name=nama_calc[] id=nama_calc' value="{{ $parameter->nama_calc}}">
 </input>

<input style="width:170px;display:none;" class="" type='text' name=regional_[] id=regional_' value="{{ $parameter->regional}}">
 </input>  

<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<input style="width:170px;" class="form-control" type='text' name=value[] id=value' value="{{ $parameter->value}}">
 </input> 

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach

<tr style="border: 0px solid;background-color:#FDF4E3;height:10px;">
    <td></td>
    <td></td>
    <td></td>    
</tr>			

				</tbody>
                
             </table>     
    
</td>
    
<td style="width:80%">

<table class="" id="data" style="font-size: 0.9em; border: 0px solid;width:100%;">
				<thead>
					<tr style="display:none;">
						<th>Pilih</th>
                        
						<th>Nama Parameter</th>
						<th>Value</th>
						<th>Satuan</th>
						
                       
					
</tr>
				</thead>
				<tbody id="kategorisam">



<tr style="border: 0px solid;background-color:#FDF4E3;height:15px;">
<td style="padding-left:20px;"><div class="form-group"> </div></td>
<td></td>
<td></td>

</tr>   


					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($feedpricedetail as $parameter)
					<tr style="border: 0px solid;background-color:#FDF4E3;">
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                        <td style="width:100px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
                        <td style="width:200px;text-align:right;padding-left:10px;"> 


<input style="width:170px;display:none;" class="" type='text' name=tanggal_[] id=tanggal_' value="{{ $parameter->tanggal}}">
 </input> 

<input style="width:170px;display:none;" class="" type='text' name=nama_calc[] id=nama_calc' value="{{ $parameter->nama_calc}}">
 </input>

<input style="width:170px;display:none;" class="" type='text' name=regional_[] id=regional_' value="{{ $parameter->regional}}">
 </input>  

<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<input style="width:170px;" class="form-control" type='text' name=value[] id=value' value="{{ $parameter->value}}">
 </input> 

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach

<tr style="border: 0px solid;background-color:#FDF4E3;height:10px;">
    <td></td>
    <td></td>
    <td></td>    
</tr>			

				</tbody>
                
             </table> 

</td>    

</tr>

</table>


<table class="" id="data" style="font-size: 0.9em; border: 0px solid;width:100%;background-color:#FDF4E3;">
<tr style="border: 0px solid;background-color:#872522;height:25px;color:#ffffff;">
<td colspan="2" style="padding-left:20px;"><div class="form-group">PRODUCTION </div></td>
</tr>
</table>    


<table class="" id="datadetail" style="font-size: 0.9em; border: 0px solid;width:100%;background-color:#FDF4E3;">
<tr>

<!-- ================= PERFORMANCE ============= -->

<td style="width:20%">

<table class="" id="data" style="font-size: 0.9em; border: 0px solid;width:100%;">
				<thead>
					<tr style="display:none;">
						<th>Pilih</th>
                        
						<th>Nama Parameter</th>
						<th>Value</th>
						<th>Satuan</th>
						
                       
					
</tr>
				</thead>
				<tbody id="kategorisam">



<tr style="border: 0px solid;background-color:#FDF4E3;height:15px;">
<td style="padding-left:20px;"><div class="form-group">PERFROMANCE: </div></td>
<td></td>
<td></td>

</tr>   


					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($performance as $parameter)
					<tr style="border: 0px solid;background-color:#FDF4E3;">
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                        <td style="width:100px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
                        <td style="width:200px;text-align:right;padding-left:10px;"> 


<input style="width:170px;display:none;" class="" type='text' name=tanggal_[] id=tanggal_' value="{{ $parameter->tanggal}}">
 </input> 

<input style="width:170px;display:none;" class="" type='text' name=nama_calc[] id=nama_calc' value="{{ $parameter->nama_calc}}">
 </input>

<input style="width:170px;display:none;" class="" type='text' name=regional_[] id=regional_' value="{{ $parameter->regional}}">
 </input>  

<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<input style="width:170px;" class="form-control" type='text' name=value[] id=value' value="{{ $parameter->value}}">
 </input> 

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach

<tr style="border: 0px solid;background-color:#FDF4E3;height:20px;">
    <td colspan="2" style="padding-left:6px;">
        <a href="#" id="toggle" onClick="toggle_it('performance')">| Detail Performance | </a>
    </td>
    
    <td></td>    
</tr>			

<tr style="border: 0px solid;background-color:#FDF4E3;height:15px;">
    <td></td>
    <td></td>
    <td></td>    
</tr>


				</tbody>
                
             </table> 

</td>    



<!-- ================= WEIGHTPRICE ============= -->

<td style="width:80%">

<table class="" id="data" style="font-size: 0.9em; border: 0px solid;width:100%;">
				<thead>
					<tr style="display:none;">
						<th>Pilih</th>
                        
						<th>Nama Parameter</th>
						<th>Value</th>
						<th>Satuan</th>
						
                       
					
</tr>
				</thead>
				<tbody id="kategorisam">



<tr style="border: 0px solid;background-color:#FDF4E3;height:25px;">
<td style="padding-left:20px;"><div class="form-group"> PRICE :</div></td>
<td></td>
<td></td>

</tr>

<tr style="border: 0px solid;background-color:#FDF4E3;height:25px;">
<td style="padding-left:20px;"><div class="form-group"></div></td>
<td></td>
<td></td>

</tr>   


					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($weightprice as $parameter)
					<tr style="border: 0px solid;background-color:#FDF4E3;">
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                        <td style="width:100px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
                        <td style="width:200px;text-align:right;padding-left:10px;height:25px;"> 


<input style="width:170px;display:none;" class="" type='text' name=tanggal_[] id=tanggal_' value="{{ $parameter->tanggal}}">
 </input> 

<input style="width:170px;display:none;" class="" type='text' name=nama_calc[] id=nama_calc' value="{{ $parameter->nama_calc}}">
 </input>

<input style="width:170px;display:none;" class="" type='text' name=regional_[] id=regional_' value="{{ $parameter->regional}}">
 </input>  

<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<input style="width:170px;" class="form-control" type='text' name=value[] id=value' value="{{ $parameter->value}}">
 </input> 

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach

<tr style="border: 0px solid;background-color:#FDF4E3;height:25px;">
    <td></td>
    <td></td>
    <td></td>    
</tr>			

<tr style="border: 0px solid;background-color:#FDF4E3;height:25px;">
    <td></td>
    <td></td>
    <td></td>    
</tr>

<tr style="border: 0px solid;background-color:#FDF4E3;height:35px;">
    <td></td>
    <td></td>
    <td></td>    
</tr>

<tr style="border: 0px solid;background-color:#FDF4E3;height:15px;">
    <td></td>
    <td></td>
    <td></td>    
</tr>
				</tbody>
                
             </table> 

</td>    

</tr>

</table>
    
<table class="" id="performance" style="font-size: 0.9em; border: 0px solid;width:100%;background-color:#FDF4E3;display:none;">
<tr>

<!-- ================= WEIGHT DETAIL ============= -->


<td style="width:30%">

<table class="" id="data" style="font-size: 0.9em; border: 0px solid;width:100%;">
				<thead>
					<tr style="display:none;">
						<th>Pilih</th>
                        
						<th>Nama Parameter</th>
						<th>Value</th>
						<th>Satuan</th>
						
                       
					
</tr>
				</thead>
				<tbody id="kategorisam">



<tr style="border: 0px solid;background-color:#FDF4E3;height:15px;">
<td style="padding-left:20px;"><div class="form-group"></div></td>
<td></td>
<td></td>

</tr>   


					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($weightdetail as $parameter)
					<tr style="border: 0px solid;background-color:#FDF4E3;">
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                        <td style="width:200px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
                        <td style="width:200px;text-align:right;padding-left:10px;"> 


<input style="width:170px;display:none;" class="" type='text' name=tanggal_[] id=tanggal_' value="{{ $parameter->tanggal}}">
 </input> 

<input style="width:170px;display:none;" class="" type='text' name=nama_calc[] id=nama_calc' value="{{ $parameter->nama_calc}}">
 </input>

<input style="width:170px;display:none;" class="" type='text' name=regional_[] id=regional_' value="{{ $parameter->regional}}">
 </input>  

<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<input style="width:170px;" class="form-control" type='text' name=value[] id=value' value="{{ $parameter->value}}">
 </input> 

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach

<tr style="border: 0px solid;background-color:#FDF4E3;height:20px;">
    <td colspan="2" style="padding-left:6px;">
        
    </td>
    
    <td></td>    
</tr>			

<tr style="border: 0px solid;background-color:#FDF4E3;height:15px;">
    <td></td>
    <td></td>
    <td></td>    
</tr>


				</tbody>
                
             </table> 
 
</td>

<td style="width:70%">

<table class="" id="data" style="font-size: 0.9em; border: 0px solid;width:100%;">
				<thead>
					<tr style="display:none;">
						<th>Pilih</th>
                        
						<th>Nama Parameter</th>
						<th>Value</th>
						<th>Satuan</th>
						
                       
					
</tr>
				</thead>
				<tbody id="kategorisam">



<tr style="border: 0px solid;background-color:#FDF4E3;height:15px;">
<td style="padding-left:20px;"><div class="form-group"> </div></td>
<td></td>
<td></td>

</tr>   


					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($weightdetailprice as $parameter)
					<tr style="border: 0px solid;background-color:#FDF4E3;">
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                        <td style="width:100px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
                        <td style="width:200px;text-align:right;padding-left:10px;"> 


<input style="width:170px;display:none;" class="" type='text' name=tanggal_[] id=tanggal_' value="{{ $parameter->tanggal}}">
 </input> 

<input style="width:170px;display:none;" class="" type='text' name=nama_calc[] id=nama_calc' value="{{ $parameter->nama_calc}}">
 </input>

<input style="width:170px;display:none;" class="" type='text' name=regional_[] id=regional_' value="{{ $parameter->regional}}">
 </input>  

<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<input style="width:170px;" class="form-control" type='text' name=value[] id=value' value="{{ $parameter->value}}">
 </input> 

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach

<tr style="border: 0px solid;background-color:#FDF4E3;height:20px;">
    <td colspan="2" style="padding-left:6px;">
        
    </td>
    
    <td></td>    
</tr>			

<tr style="border: 0px solid;background-color:#FDF4E3;height:15px;">
    <td></td>
    <td></td>
    <td></td>    
</tr>


				</tbody>
                
             </table> 
 
</td>

</tr>
</table>


<table class="" id="performance" style="font-size: 0.9em; border: 0px solid;width:100%;background-color:#FDF4E3;">
    
<tr style="border: 0px solid;background-color:#FDF4E3;height:25px;">
    
<td colspan="2" style="padding-left:6px;">
    
<a href="#" id="toggle" onClick="toggle_it('produk')">| Gunakan Produk | </a>
</td>

</tr>
</table>

<!-- ================================= PRODUK ========================= -->
<table class="" id="produk" style="font-size: 0.9em; border: 0px solid;width:100%;display:none;">
				<thead>
					<tr style="display:none;">
						<th>Pilih</th>
                        
						<th>Nama Parameter</th>
						<th>Value</th>
						<th>Satuan</th>
						
                       
					
</tr>
				</thead>
				<tbody id="kategorisam">

<tr style="border: 0px solid;background-color:#872522;height:25px;color:#ffffff;">
<td style="padding-left:20px;"><div class="form-group">PRODUK </div></td>
<td></td>
<td></td>

</tr>

<tr style="border: 0px solid;background-color:#FDF4E3;height:15px;">
<td style="padding-left:20px;"><div class="form-group"> </div></td>
<td></td>
<td></td>

</tr>   

					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($produk1 as $parameter)
					<tr style="border: 0px solid;background-color:#FDF4E3;">
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                        <td style="width:100px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
                        <td style="width:200px;text-align:right;padding-left:10px;"> 


<input style="width:170px;display:none;" class="" type='text' name=tanggal_[] id=tanggal_' value="{{ $parameter->tanggal}}">
 </input> 

<input style="width:170px;display:none;" class="" type='text' name=nama_calc[] id=nama_calc' value="{{ $parameter->nama_calc}}">
 </input>

<input style="width:170px;display:none;" class="" type='text' name=regional_[] id=regional_' value="{{ $parameter->regional}}">
 </input>  

<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


	<select class="form-control" name="value[]" id="value" style="width:170px;">
					    
					    @foreach($isiproduk as $data)
                        <option value="{{ $data->value }}">{{ $data->value }}</option>
						@endforeach
					    
					    <option value="">Pilih Produk</option>
					    
                        @foreach($dataproduk as $dataproduk)
                        <option value="{{ $dataproduk->nama_produk }}">{{ $dataproduk->nama_produk }}</option>
						@endforeach
	</select>

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach

				</tbody>
                
             </table> 

<!-- ================= LIST PARAMETER BACK ============= -->



<table class="" id="data" style="font-size: 0.9em; border: 0px solid;width:100%;display:none;">
				<thead>
					<tr style="display:none;">
						<th>Pilih</th>
                        
						<th>Nama Parameter</th>
						<th>Value</th>
						<th>Satuan</th>
						
                       
					
</tr>
				</thead>
				<tbody id="kategorisam">

                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($list_parameterback as $parameter)
					<tr style="border: 0px solid;background-color:#FDF4E3;">
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                        <td style="width:100px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
                        <td style="width:200px;text-align:right;padding-left:10px;"> 


<input style="width:170px;display:none;" class="" type='text' name=tanggal_[] id=tanggal_' value="{{ $parameter->tanggal}}">
 </input> 

<input style="width:170px;display:none;" class="" type='text' name=nama_calc[] id=nama_calc' value="{{ $parameter->nama_calc}}">
 </input>

<input style="width:170px;display:none;" class="" type='text' name=regional_[] id=regional_' value="{{ $parameter->regional}}">
 </input>  

<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<input style="width:170px;" class="form-control" type='text' name=value[] id=value' value="{{ $parameter->value}}">
 </input> 

</td>		
<td> {{ $parameter->satuan }} </td>					                               
                         
					</tr>
					@endforeach                    		
					
                    
				</tbody>
                
             </table>

</div>

@endrole

<!-- ============================ Template Teknis =========================== -->

<?php if (\Entrust::hasRole('Teknis')) : ?>


<div class="form-group{{ $errors->has('id') ? ' has-error' : '' }}">
	{!! Form::label('id', 'Id', ['class'=>'col-md-2 control-label']) !!}
	<div class="col-md-4">
		{!! Form::text('id', null, ['class'=>'form-control']) !!}
		{!! $errors->first('id', '<p class="help-block">:message</p>') !!}
	</div>
</div>

<div class="form-group{{ $errors->has('tanggal') ? ' has-error' : '' }}">
	{!! Form::label('tanggal', 'Tanggal', ['class'=>'col-md-2 control-label']) !!}
	<div class="col-md-4">
		{!! Form::date('tanggal', null, ['class'=>'form-control']) !!}
		{!! $errors->first('tanggal', '<p class="help-block">:message</p>') !!}
	</div>
</div>


<div class="form-group{{ $errors->has('regional') ? ' has-error' : '' }}">
	{!! Form::label('regional', 'Regional', ['class'=>'col-md-2 control-label']) !!}
	<div class="col-md-4">
		{!! Form::text('regional', null, ['class'=>'form-control']) !!}
		{!! $errors->first('regional', '<p class="help-block">:message</p>') !!}
	</div>
</div>


<div class="form-group{{ $errors->has('nama') ? ' has-error' : '' }}">
	{!! Form::label('nama', 'Nama', ['class'=>'col-md-2 control-label']) !!}
	<div class="col-md-4">
		{!! Form::text('nama', null, ['class'=>'form-control']) !!}
		{!! $errors->first('nama', '<p class="help-block">:message</p>') !!}
	</div>
</div>





<div class="table-responsive" style="width:90%; padding-left:20px;">

			<table class="table table-hover table-condensed" id="data" style="font-size: 0.9em;">
				<thead>
					<tr style="display:none;">
						<th>Pilih</th>
                        
						<th>Nama Parameter</th>
						<th>Value</th>
						<th>Satuan</th>
						
                       
					
</tr>
				</thead>
				<tbody id="kategorisam">

				<tr style="border: 0px solid;background-color:#872522;height:25px;color:#ffffff;">
                <td><div class="form-group">L A B O U R : </div></td>
                <td></td>
                <td></td>
                </tr>	

					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($list_parameter as $parameter)
					<tr>
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                            						    			<td style="width:150px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
           <td style="width:200px;text-align:right;"> 



<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<input style="width:170px;" class="" type='text' name=value[] id=value' value="{{ $parameter->value}}">
 </input> 

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach
					
				<tr style="border: 0px solid;background-color:#872522;height:25px;color:#ffffff;">
                <td colspan="2" ><div class="form-group">D E P R E C I A T I O N : </div></td>
                <td></td>
                </tr>	
      		
					
                    @php
					$no=1;
					$no1=1;
					@endphp
					@foreach($depreciation as $parameter)
					<tr>
						<td style="display:none;">
							{!! Form::checkbox('paramaterchecked[]',$parameter->idparameter,
							in_array($parameter->idparameter,$list_parameterchecked) ? 'checked' : '',['class' => 'paramcheck']); !!}
						</td>
							
                            						    			<td style="width:150px;text-align:right;"> {{ $parameter->namaparameter}} </td>
		
				   
           <td style="width:200px;text-align:right;"> 



<input style="width:170px;display:none;" class="" type='text' name=jenisparameter[] id=jenisparameter_' value="{{ $parameter->jenisparameter}}">
 </input>  


<input style="width:170px;display:none;" class="" type='text' name=namaparameter[] id=namaparameter' value="{{ $parameter->namaparameter}}">
 </input> 


<input style="width:170px;" class="" type='text' name=value[] id=value' value="{{ $parameter->value}}">
 </input> 

</td>		
<td> {{ $parameter->satuan }} </td>	 				                               
                         
					</tr>
					@endforeach					
                    
				</tbody>
                
             </table>

</div>

@endrole









