104 lines
6 KiB
PHP
104 lines
6 KiB
PHP
|
|
@if($homeparty_user && isset($homeparty_user->homeparty_user_order_items))
|
|
@foreach($homeparty_user->homeparty_user_order_items as $value)
|
|
<tr class="item">
|
|
<td class="small text-left">
|
|
{{ $value->product->number }}
|
|
</td>
|
|
<td class="small text-left">
|
|
{{ maxStrLength($value->product->getLang('name') , 35) }}
|
|
</td>
|
|
<td class="text-right small">
|
|
{{ cleanIntegerFromString($value->qty) }}
|
|
</td>
|
|
<td class="text-right small">
|
|
{{ $value->getFormattedTotalPoints() }}
|
|
</td>
|
|
<td class="text-right small">
|
|
{{ $value->margin }}
|
|
</td>
|
|
<td class="text-right small">
|
|
{{ $value->getFormattedTotalPrice() }} €
|
|
</td>
|
|
<td class="text-right small">
|
|
{{ $value->getFormattedTotalEKPrice() }} €
|
|
</td>
|
|
</tr>
|
|
@endforeach
|
|
|
|
@if(isset($homeparty->order) && isset($homeparty->order['user_carts'][$homeparty_user->id]))
|
|
@php($user_cart = $homeparty->order['user_carts'][$homeparty_user->id])
|
|
@php($hp_order = $homeparty->order)
|
|
@if(!$homeparty_user->is_host)
|
|
<tr class="foot-small">
|
|
<td> </td>
|
|
<td colspan="6" class="text-left">
|
|
@if($homeparty_guest->getDelivery() === 'host')
|
|
{{ __('homeparty.delivery_to_host') }}
|
|
@endif
|
|
@if($homeparty_guest->getDelivery() === 'direct')
|
|
{{ __('homeparty.delivery_directly_to_the_guest') }}
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@if($homeparty_guest->getDelivery() === 'direct')
|
|
<tr class="foot-small">
|
|
<td> </td>
|
|
<td colspan="4" class="text-left">{{ __('order.shipping_costs') }}</td>
|
|
<td class="text-right">{{ Util::formatNumber($user_cart['shipping_price'])}} €</td>
|
|
<td class="text-right">{{ Util::formatNumber($user_cart['shipping_price'])}} €</td>
|
|
</tr>
|
|
@endif
|
|
|
|
<tr class="foot-small">
|
|
<td> </td>
|
|
<td colspan="2" class="border-top"><strong>{{ __('order.subtotal') }}:</strong></td>
|
|
<td class="border-top text-right"><strong>{{$user_cart['points']}}</strong></td>
|
|
<td> </td>
|
|
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['price'])}} €</strong></td>
|
|
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['ek_price'])}} €</strong></td>
|
|
</tr>
|
|
@else
|
|
@if(isset($hp_order['is_bonus']))
|
|
<tr class="foot-small">
|
|
<td> </td>
|
|
<td colspan="4" class="text-left">{{ __('homeparty.credit_homeparty_voucher') }}</td>
|
|
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_value']) }} €</td>
|
|
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_value']) }} €</td>
|
|
</tr>
|
|
@endif
|
|
@if(isset($hp_order['is_bonus_coupon']))
|
|
<tr class="foot-small">
|
|
<td> </td>
|
|
<td colspan="4" class="text-left">{{ __('homeparty.credit_bonus') }}</td>
|
|
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_coupon']) }} €</td>
|
|
<td class="text-right">- {{ Util::formatNumber($hp_order['bonus_coupon']) }} €</td>
|
|
</tr>
|
|
@endif
|
|
@if(isset($hp_order['is_bonus']))
|
|
<tr class="foot-small">
|
|
<td> </td>
|
|
<td colspan="2" class="text-left">{{ __('homeparty.deduct_points_by_voucher') }}</td>
|
|
<td class="text-right">- {{ $hp_order['bonus_points_diff'] }} </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
</tr>
|
|
@endif
|
|
<tr class="foot-small">
|
|
<td> </td>
|
|
<td colspan="4" class="text-left">{{ __('order.shipping_costs') }}:</td>
|
|
<td class="text-right"> </td>
|
|
<td class="text-right">{{Util::formatNumber($user_cart['shipping_price'])}} €</td>
|
|
</tr>
|
|
<tr class="foot-small">
|
|
<td> </td>
|
|
<td colspan="2" class="border-top"><strong>{{ __('order.subtotal') }}:</strong></td>
|
|
<td class="border-top text-right"><strong>{{$user_cart['points']}}</strong></td>
|
|
<td> </td>
|
|
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['price'])}} €</strong></td>
|
|
<td class="border-top text-right"><strong>{{Util::formatNumber($user_cart['ek_price'])}} €</strong></td>
|
|
</tr>
|
|
@endif
|
|
@endif
|
|
@endif
|