<?php 
	use NetSTI\System\Models\PaymentsSettings; 
	$symbol = PaymentsSettings::getCurrencyData()['symbol_native'];
?>
<script type="text/javascript" src="<?= URL::asset('plugins/netsti/system/assets/js/livequery.min.js') ?>"></script>
<div class="pull-right">
	<h4 class="text-right text-success" style="margin-top:0">
		<small>(<?= trans('netsti.system::lang.invoices.paid_status') ?>)</small> <?= $symbol ?>
		<span class="debits-widget"><?= number_format($model->total_paid, 2, '.', ',') ?></span>
	</h4>
	<h4 class="text-right" style="margin-top:0">
		<small>(<?= trans('netsti.system::lang.invoices.total') ?>)</small> <?= $symbol ?>
		<span class="total"><?= number_format($model->total, 2, '.', ',') ?></span>
	</h4>
	<div style="border-bottom: 1px solid #ddd; display: block"></div>
	<h3 class="text-right text-danger" style="margin-top:8px">
		<?= $symbol ?>
		<span class="credit"><?= number_format($model->total - $model->total_paid, 2, '.', ',') ?></span>
	</h3>
	<div class="debit" total="<?= $model->total ?>" total-paid="<?= $model->total_paid ?>" url="<?= Backend::url('netsti/system/invoices/debit-update/'.$model->id) ?>"></div>
</div>


