20-02-2026
This commit is contained in:
parent
a8b395e20d
commit
a00c42e770
252 changed files with 28785 additions and 8907 deletions
|
|
@ -203,9 +203,39 @@
|
|||
<tr>
|
||||
<td class="text-left">{{ __('order.shipping_costs') }}:</td>
|
||||
<td>
|
||||
<div class="no-line-break">{{ Yard::instance('shopping')->shippingNet() }} €</div>
|
||||
@if(Yard::instance('shopping')->isPriceCurrency())
|
||||
<span class="small">~{{ Yard::instance('shopping')->getCurrencyByKey('shippingNet') }} {{ Yard::instance('shopping')->getPriceCurrencyUnit() }} </span>
|
||||
|
||||
@php($shippingFree = Yard::instance('shopping')->getShippingFree())
|
||||
@php($missingValue = Yard::instance('shopping')->getShippingFreeMissingValue())
|
||||
@php($currentShipping = Yard::instance('shopping')->shippingNet())
|
||||
@if($shippingFree && intval($currentShipping) == 0)
|
||||
{{-- Versandkostenfrei erreicht --}}
|
||||
<div class="badge badge-success font-weight-bold" style="font-size: 0.80rem; padding: 0.3rem 0.4rem;">
|
||||
<i class="fa fa-check-circle"></i> {{ __('order.free_shipping') }}
|
||||
</div>
|
||||
<div class="mt-1">
|
||||
<small class="text-success font-weight-bold">
|
||||
<i class="fa fa-gift"></i> {{ __('order.free_shipping_reached', ['amount' => number_format($shippingFree, 2, ',', '.')]) }}
|
||||
</small>
|
||||
</div>
|
||||
@else
|
||||
{{-- Normale Versandkosten --}}
|
||||
<div class="no-line-break">{{ $currentShipping }} €</div>
|
||||
@if(Yard::instance('shopping')->isPriceCurrency())
|
||||
<span class="small">~{{ Yard::instance('shopping')->getCurrencyByKey('shippingNet') }} {{ Yard::instance('shopping')->getPriceCurrencyUnit() }} </span>
|
||||
@endif
|
||||
|
||||
@if($shippingFree && $missingValue > 0)
|
||||
{{-- Zeige wie viel noch fehlt --}}
|
||||
<div class="mt-1">
|
||||
<small class="text-info">
|
||||
<i class="fa fa-info-circle"></i>
|
||||
{{ __('order.free_shipping_info', [
|
||||
'amount' => number_format($shippingFree, 2, ',', '.'),
|
||||
'missing' => number_format($missingValue, 2, ',', '.')
|
||||
]) }}
|
||||
</small>
|
||||
</div>
|
||||
@endif
|
||||
@endif
|
||||
</td>
|
||||
</tr>
|
||||
|
|
@ -336,3 +366,4 @@
|
|||
|
||||
@endif
|
||||
@endif
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue