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/public_html/dev/storage/framework/views/ |
<?php if(!$collected_value): ?>
<span class="label label-sm label-default"><?php echo e(trans('invoices::invoice.no_collections')); ?></span>
<?php else: ?>
<!-- Button trigger modal -->
<button type="button" class="openmodal btn btn-default btn-xs" data-toggle="modal" data-target="payments_<?php echo e($invoice->id); ?>">
£ <?php echo e($collected_value); ?>
</button>
<!-- Modal -->
<div class="modal fade" id="payments_<?php echo e($invoice->id); ?>" tabindex="-1" role="dialog" aria-labelledby="myModalLabel">
<div class="modal-dialog" role="document">
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-label="Close"><span aria-hidden="true">×</span></button>
<h4 class="modal-title" id="myModalLabel"><?php echo e(trans('invoices::invoice.receipts_for')); ?> <?php echo e($invoice->number); ?>/<?php echo e($invoice->inv_date->format('d.m.Y')); ?></h4>
</div>
<div class="modal-body">
<table class="table table-condensed table-striped">
<thead>
<tr>
<td>#</td>
<td><?php echo e(trans('invoices::payments.modal_form_payment_date')); ?></td>
<td><?php echo e(trans('invoices::payments.modal_form_amount')); ?></td>
<td></td>
</tr>
</thead>
<tbody>
<?php if($invoice->payments()->count()==0): ?>
<tr>
<td colspan="5"><?php echo e(trans('invoices::invoice.receipts_no_entries')); ?></td>
</tr>
<?php else: ?>
<?php $i=0;?>
<?php foreach($invoice->payments as $o): ?>
<?php $i++;?>
<tr>
<td><?php echo e($i); ?></td>
<td><?php echo e($o->payment_date->format('d.m.Y')); ?></td>
<td><?php echo e(number_format($o->amount,2,',','.')); ?></td>
<td align="right">
<?php if(@$can['delete_payment'] || $user->is('developer')): ?>
<a href="<?php echo e(route('admin.invoices.payments.delete',['payments'=>$o->id])); ?>" class="btn btn-xs red-stripe tooltips" title="<?php echo e(trans('general.action_delete')); ?>"><i class="fa fa-times"></i></a>
<?php endif; ?>
</td>
</tr>
<?php endforeach; ?>
<?php endif; ?>
</tbody>
</table>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal"><?php echo e(trans('general.action_close')); ?></button>
</div>
</div>
</div>
</div>
<?php endif; ?>