102 lines
4.6 KiB
PHP
102 lines
4.6 KiB
PHP
<div id="invoice_box">
|
|
<table>
|
|
<thead>
|
|
<tr>
|
|
<th class="text-left" style="width: 10%">{{__('tables.article_no')}}</th>
|
|
<th class="text-left" style="width: 40%">{{__('tables.label')}}</th>
|
|
<th class="text-right" style="width: 10%">{{__('tables.quantity')}}</th>
|
|
<th class="text-right" style="width: 10%">{{__('tables.points')}}</th>
|
|
<th class="text-right" style="width: 10%">%</th>
|
|
<th class="text-right" style="width: 15%">{{__('tables.vk_price')}}*</th>
|
|
<th class="text-right" style="width: 15%">{{ __('tables.ek_price') }}*</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
@if($shopping_order->homeparty->homeparty_host)
|
|
@include('pdf.invoice-homeparty-detail', ['homeparty'=>$shopping_order->homeparty, 'homeparty_user' => $shopping_order->homeparty->homeparty_host, 'is_cancellation' => true])
|
|
@endif
|
|
|
|
@if($shopping_order->homeparty->homeparty_guests)
|
|
@foreach($shopping_order->homeparty->homeparty_guests as $homeparty_guest)
|
|
@include('pdf.invoice-homeparty-detail', ['homeparty'=>$shopping_order->homeparty, 'homeparty_user' => $homeparty_guest, 'is_cancellation' => true])
|
|
@endforeach
|
|
@endif
|
|
</tbody>
|
|
|
|
<tfoot>
|
|
@php($hp_order = $shopping_order->homeparty->order)
|
|
@if($hp_order['is_bonus'])
|
|
<tr class="doubleline foot-small">
|
|
<td class=""> </td>
|
|
<td colspan="5" class="border-top">
|
|
{{ $hp_order['voucher_name'] }}
|
|
</td>
|
|
<td class="border-top text-right negative-amount">-{{ Util::formatNumber($hp_order['voucher_price'])}} €</td>
|
|
</tr>
|
|
<tr class="fullline">
|
|
@else
|
|
<tr class="doubleline">
|
|
@endif
|
|
<td class=""> </td>
|
|
<td colspan="2" class="border-top">
|
|
<b>{{ __('order.sum') }}</b>
|
|
</td>
|
|
<td class="border-top text-right negative-amount"><strong>-{{ $hp_order['points'] - $hp_order['bonus_points_diff'] }}</strong></td>
|
|
<td class=""> </td>
|
|
<td class="border-top text-right negative-amount"><strong>-{{ Util::formatNumber($hp_order['price'])}} €</strong></td>
|
|
<td class="border-top text-right negative-amount"><strong>-{{ Util::formatNumber($hp_order['ek_price'])}} €</strong></td>
|
|
</tr>
|
|
<tr class="foot-small">
|
|
<td class=""> </td>
|
|
<td colspan="5" class="border-top">
|
|
{{__('email.checkout_mail_shipping')}}
|
|
</td>
|
|
<td class="border-top text-right negative-amount">-{{ $shopping_order->getFormattedShippingNet() }} €</td>
|
|
</tr>
|
|
<tr class="">
|
|
<td class=""> </td>
|
|
<td colspan="5" class="border-top">
|
|
{{ __('order.total_advisor_price') }}
|
|
</td>
|
|
<td class="border-top text-right negative-amount"><strong>-{{ Util::formatNumber($hp_order['ek_price_total'])}} €</strong></td>
|
|
</tr>
|
|
@if($shopping_order->tax_split)
|
|
@foreach ($shopping_order->tax_split as $tax_rate => $tax)
|
|
<tr class="">
|
|
<td class=""> </td>
|
|
<td colspan="5">
|
|
{{ __('order.excl') }} {{ $tax_rate }}% {{ __('order.VAT') }}
|
|
@if(isset($shopping_order->net_split[$tax_rate]))
|
|
/ {{ __('pdf.off') }} -{{ Util::formatNumber($shopping_order->net_split[$tax_rate]) }} € {{ __('pdf.net') }}
|
|
@endif
|
|
</td>
|
|
<td class="text-right negative-amount">
|
|
-{{ formatNumber($tax) }} €
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
@else
|
|
<tr class="">
|
|
<td class=""> </td>
|
|
<td colspan="5">
|
|
{{__('email.checkout_mail_tax')}}
|
|
</td>
|
|
<td class="text-right negative-amount">
|
|
-{{ $shopping_order->getFormattedTax() }} €
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
<tr class="fullline">
|
|
<td class=""> </td>
|
|
<td colspan="5" class="border-top">
|
|
<b>{{ __('pdf.total_incl_VAT') }}</b>
|
|
</td>
|
|
<td class="border-top text-right negative-amount">
|
|
<span class="no-line-break">
|
|
<b>-{{ $shopping_order->getFormattedTotalShipping() }} €</b>
|
|
</span>
|
|
</td>
|
|
</tr>
|
|
</tfoot>
|
|
</table>
|
|
</div>
|