Server : Apache System : Linux 145.162.205.92.host.secureserver.net 5.14.0-611.45.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Wed Apr 1 05:56:53 EDT 2026 x86_64 User : tradze ( 1001) PHP Version : 8.1.34 Disable Function : NONE Directory : /home/tradze/www/storage-old/framework/views/ |
<?php if(!$cart_contents['is_empty']): ?>
<?php
$i = 0;
$reducecolspan = 0;
?>
<?php foreach($cart_contents['items'] as $id=>$item): ?>
<?php $i++;?>
<tr id="item_<?php echo e($id); ?>" itemid="<?php echo e($id); ?>">
<td class="text-center">
<div style="padding-top:3px; display:block;" class="pointer">
<i class="fa fa-arrows-alt"></i>
<?php echo e($i); ?>
</div>
</td>
<td>
<?php echo Form::text('name', $item['name'], array('class' => 'form-control input-sm item_update','placeholder'=>'','id'=>$id)); ?>
</td>
<td>
<?php echo Form::text('description', $item['attributes']['description'], array('class' => 'form-control input-sm item_update','placeholder'=>'','id'=>$id)); ?>
</td>
<td>
<?php echo Form::text('um', $item['attributes']['um'], array('class' => 'form-control input-sm text-center item_update','placeholder'=>'','id'=>$id)); ?>
</td>
<td>
<?php echo Form::text('quantity', $item['quantity'], array('class' => 'form-control text-center input-sm item_update tooltips','placeholder'=>'', 'id'=>$id)); ?>
</td>
<td>
<?php echo Form::text('price', round($item['price'],4), array('class' => 'form-control text-center input-sm item_update','placeholder'=>'','id'=>$id)); ?>
</td>
<td>
<?php echo Form::text('value_net', round($item['subtotal_net'],2), array('class' => 'form-control input-sm text-right','placeholder'=>'', 'disabled')); ?>
</td>
<td>
<?php echo Form::text('vat', round($item['vat'],2), array('class' => 'form-control input-sm text-right','placeholder'=>'', 'disabled')); ?>
</td>
<td>
<button type="button" class="btn btn-sm tooltips" title="update"><i class="fa fa-refresh"></i></button>
<a class="btn btn-sm btn-danger del_item pull-right" id="<?php echo $id; ?>"><i class="fa fa-times"></i></a>
</td>
</tr>
<?php endforeach; ?>
<!--total net-->
<?php $colspan = 6 - $reducecolspan;?>
<tr class="bold no-sort">
<td colspan="<?php echo e($colspan); ?>"></td>
<td class="text-right"><?php echo e(trans('invoices::invoice.form_total_net')); ?></td>
<td align="right"><?php echo e(number_format(round($cart_contents['total_net'],2),2)); ?></td>
<td></td>
</tr>
<!--end total net-->
<!--total vat-->
<tr class="bold no-sort">
<td colspan="<?php echo e($colspan); ?>"></td>
<td class="text-right"><?php echo e(trans('invoices::invoice.form_total_vat')); ?></td>
<td align="right"><?php echo e(number_format(round($cart_contents['total_vat'],2),2)); ?></td>
<td></td>
</tr>
<!--end total vat-->
<!--total with vat-->
<tr class="bold no-sort">
<td colspan="<?php echo e($colspan); ?>"></td>
<td class="text-right"><?php echo e(trans('invoices::invoice.form_total_with_vat')); ?></td>
<td align="right">
<?php echo e(number_format(round($cart_contents['total_brut'],2),2)); ?>
<?php echo Form::hidden('amount',$cart_contents['total_brut']); ?>
</td>
<td></td>
</tr>
<!--end total with vat-->
<?php else: ?>
<tr class="no-sort">
<td colspan="10" class="text-center">
<h4><i class="icon icon-info"></i> <?php echo e(trans('invoices::invoice.form_no_items')); ?></h4>
</td>
</tr>
<?php endif; ?>