<?php foreach($aDetails as $aDetail): ?>
<?php if(!($aDetail->number_type==1 ||$aDetail->number_type==4) ): ?>
<?php /*<?php echo e(dd($aDetail)); ?>*/ ?>
<tr>
<td colspan="4">
<table class="innerTable">
<thead>
<tr>
<th >Номер детали</th>
<th >Кол-во в машине</th>
<th >Производство</th>
<th>аналог</th>
</tr>
</thead>
<tbody>
<?php $InfoDetails = Helper::DetailInfo($market,$model,$compl, $opt, $code,$group,$graphic,$aDetail->pnc,$vin = null,$vdate = null,$siyopt = null)?>
<?php foreach($InfoDetails as $InfoDetail): ?>
<tr>
<td><?php echo $InfoDetail->serialNumber; ?></td>
<td><?php echo $InfoDetail->quantity; ?></td>
<td><?php echo $InfoDetail->prodaction; ?></td>
<td><?php echo $InfoDetail->analog; ?></td>
</tr>
<?php endforeach; ?>
</tbody>
</table>
</td>
</tr>
<?php else: ?>
<tr>
<td>*</td>
<td><?php echo $aDetail->number; ?></td>
<td><?php echo $aDetail->number_type; ?></td>
<td><?php echo $aDetail->desc_en; ?></td>
</tr>
<?php endif; ?>
<?php endforeach; ?>