mivita/resources/views/admin/sales/_detail_homparty_total.blade.php
Kevin Adametz bfa3bb1df4 08 2024
2024-08-05 12:05:24 +02:00

58 lines
No EOL
2.5 KiB
PHP

<div class="table-responsive">
<table class="table table-striped">
<thead>
<tr>
<th>{{ __('tables.total') }}</th>
<th class="text-right">{{__('tables.points')}}</th>
<th class="text-right">{{__('tables.earnings')}}</th>
<th class="text-right">{{__('tables.vk_price')}}</th>
<th class="text-right">{{__('tables.ek_price')}}</th>
</tr>
</thead>
<tbody>
</tbody>
<tfoot>
@php($hp_order = $homeparty->order)
@if($hp_order['is_bonus'])
<tr class="foot-small">
<td colspan="4" class="border-top">
{{ $hp_order['voucher_name'] }}
</td>
<td class="border-top text-right">{{ Util::formatNumber($hp_order['voucher_price'])}} &euro;</td>
</tr>
@endif
<tr class="foot-small">
<td colspan="1" class="border-top">
<strong>{{ __('order.total_sums') }}:</strong>
</td>
<td class="border-top text-right"><strong>{{ $hp_order['points'] - $hp_order['bonus_points_diff'] }}</strong></td>
<td class="border-top text-right"><strong>{{ Util::formatNumber($hp_order['income_price'])}} &euro;</strong></td>
<td class="border-top text-right"><strong>{{ Util::formatNumber($hp_order['price'])}} &euro;</strong></td>
<td class="border-top text-right"><strong>{{ Util::formatNumber($hp_order['ek_price'])}} &euro;</strong></td>
</tr>
<tr class="foot-small">
<td colspan="1" class="text-muted">
{{ __('order.total_without_VAT') }}:
</td>
<td class="">&nbsp;</td>
<td class="">&nbsp;</td>
<td class="text-muted text-right">{{ Util::formatNumber($hp_order['price_net'])}} &euro;</td>
<td class="text-muted text-right">{{ Util::formatNumber($hp_order['ek_price_net'])}} &euro;</td>
</tr>
<tr class="foot-small">
<td colspan="1" class="text-muted">
{{ __('order.included_VAT') }}:
</td>
<td class="">&nbsp;</td>
<td class="">&nbsp;</td>
<td class="text-muted text-right">{{ Util::formatNumber($hp_order['price']-$hp_order['price_net'])}} &euro;</td>
<td class="text-muted text-right">{{ Util::formatNumber($hp_order['ek_price']-$hp_order['ek_price_net'])}} &euro;</td>
</tr>
</tfoot>
</table>
</div>