95 lines
4.9 KiB
PHP
95 lines
4.9 KiB
PHP
|
|
@php($user_cart = \App\Services\HomepartyCart::getUserCartHost())
|
|
@php($homeparty = \App\Services\HomepartyCart::$homeparty)
|
|
@if(!$user_cart->isPrice() && (\App\Services\HomepartyCart::$is_bonus || \App\Services\HomepartyCart::$is_bonus_coupon))
|
|
<tr class="foot-small">
|
|
<td colspan="8" class="text-left bg-danger text-white">
|
|
<strong>{{ __('homeparty.voucher_bonus_cannot_be_applied') }} </strong>
|
|
</td>
|
|
|
|
</tr>
|
|
@endif
|
|
|
|
@if(\App\Services\HomepartyCart::$is_bonus)
|
|
<tr class="foot-small">
|
|
<td colspan="5" class="text-left">{{ __('homeparty.credit_homeparty_voucher') }}</td>
|
|
<td> </td>
|
|
<td class="text-right">
|
|
<div class="no-line-break">- {{ \App\Services\HomepartyCart::getFormattedBonusValue() }} €</div>
|
|
@if($homeparty->isPriceCurrency())
|
|
<span class="small">~{{ \App\Services\HomepartyCart::getCurrencyByKey('BonusValue') }} {{ $homeparty->getPriceCurrencyUnit() }} </span>
|
|
@endif
|
|
|
|
</td>
|
|
<td class="text-right">
|
|
<div class="no-line-break">- {{ \App\Services\HomepartyCart::getFormattedBonusValue() }} €</div>
|
|
@if($homeparty->isPriceCurrency())
|
|
<span class="small">~{{ \App\Services\HomepartyCart::getCurrencyByKey('BonusValue') }} {{ $homeparty->getPriceCurrencyUnit() }} </span>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
@if(\App\Services\HomepartyCart::$is_bonus_coupon)
|
|
<tr class="foot-small">
|
|
<td colspan="5" class="text-left">{{ __('homeparty.credit_bonus') }}</td>
|
|
<td> </td>
|
|
<td class="text-right">
|
|
<div class="no-line-break">- {{ \App\Services\HomepartyCart::getFormattedBonusCoupon() }} €</div>
|
|
@if($homeparty->isPriceCurrency())
|
|
<span class="small">~{{ \App\Services\HomepartyCart::getCurrencyByKey('BonusCoupon') }} {{ $homeparty->getPriceCurrencyUnit() }} </span>
|
|
@endif
|
|
</td>
|
|
<td class="text-right">
|
|
<div class="no-line-break">- {{ \App\Services\HomepartyCart::getFormattedBonusCoupon() }} €</div>
|
|
@if($homeparty->isPriceCurrency())
|
|
<span class="small">~{{ \App\Services\HomepartyCart::getCurrencyByKey('BonusCoupon') }} {{ $homeparty->getPriceCurrencyUnit() }} </span>
|
|
@endif
|
|
</td>
|
|
</tr>
|
|
@endif
|
|
@if(\App\Services\HomepartyCart::$is_bonus)
|
|
<tr class="foot-small">
|
|
<td colspan="4" class="text-left">{{ __('homeparty.deduct_points_by_voucher') }}</td>
|
|
<td class="text-right">- {{ \App\Services\HomepartyCart::getFormattedBonusPointsDiff() }} </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
<td> </td>
|
|
</tr>
|
|
@endif
|
|
|
|
|
|
{{-- <tr class="foot-small">
|
|
<td colspan="5" class="text-left bg-warning-light">{{ __('order.shipping_costs') }}:</td>
|
|
<td class="bg-warning-light"> </td>
|
|
<td class="text-right bg-warning-light"> </td>
|
|
<td class="text-right bg-warning-light">
|
|
<div class="no-line-break">{{$user_cart->getFormattedShippingPrice()}} €</div>
|
|
@if($homeparty->isPriceCurrency())
|
|
<span class="small">~{{ $user_cart->getCurrencyByKey('ShippingPrice') }} {{ $homeparty->getPriceCurrencyUnit() }} </span>
|
|
@endif
|
|
</td>
|
|
</tr>--}}
|
|
<tr>
|
|
<td colspan="4" class="border-top"><strong>{{ __('order.total') }} :</strong></td>
|
|
<td class="border-top text-right">
|
|
<div class="no-line-break"><strong>{{$user_cart->getFormattedPoints()}}</strong></div>
|
|
</td>
|
|
<td class="border-top text-right">
|
|
<div class="no-line-break"><strong>{{$user_cart->getFormattedIncomePrice()}} €</strong></div>
|
|
@if($homeparty->isPriceCurrency())
|
|
<span class="small">~{{ $user_cart->getCurrencyByKey('IncomePrice') }} {{ $homeparty->getPriceCurrencyUnit() }} </span>
|
|
@endif
|
|
</td>
|
|
<td class="border-top text-right">
|
|
<div class="no-line-break"><strong>{{$user_cart->getFormattedPrice()}} €</strong></div>
|
|
@if($homeparty->isPriceCurrency())
|
|
<span class="small">~{{ $user_cart->getCurrencyByKey('Price') }} {{ $homeparty->getPriceCurrencyUnit() }} </span>
|
|
@endif
|
|
</td>
|
|
<td class="border-top text-right">
|
|
<div class="no-line-break"><strong>{{$user_cart->getFormattedEkPriceWithout()}} €</strong></div>
|
|
@if($homeparty->isPriceCurrency())
|
|
<span class="small">~{{ $user_cart->getCurrencyByKey('EkPriceWithout') }} {{ $homeparty->getPriceCurrencyUnit() }} </span>
|
|
@endif
|
|
</td>
|
|
</tr>
|