gruene-seele/resources/views/web/promotion/_shipping.blade.php
2022-04-14 13:21:17 +02:00

44 lines
No EOL
2.3 KiB
PHP

<section>
<div class="row">
<div class="col-md-6 text-left">
<h2 class="mt-3">Wähle Deine Versandart</h2>
<div class="switchers-stacked">
@php($shipping_option = Yard::instance('shopping')->getShippingOption())
@if($promotion_user->pick_up)
<label class="switcher switcher-success">
<input type="radio" class="switcher-input" name="switchers_shipping" data-error="#error-switchers_shipping" value="pick_up" required
@if($shipping_option === 'pick_up') checked @endif>
<span class="switcher-indicator">
<span class="switcher-yes">
<span class="ion ion-md-checkmark"></span>
</span>
<span class="switcher-no"></span>
</span>
<span class="switcher-label">0,00 &euro; - Ich hole die Ware bei {{ $promotion_user->user->getFullName(false) }} persönlich ab (Abholadresse beachten)</span>
</label>
@endif
<label class="switcher switcher-success">
<input type="radio" class="switcher-input" name="switchers_shipping" data-error="#error-switchers_shipping" value="dhl_shipping"
@if($shipping_option === 'dhl_shipping') checked @endif required>
<span class="switcher-indicator">
<span class="switcher-yes">
<span class="ion ion-md-checkmark"></span>
</span>
<span class="switcher-no"></span>
</span>
<span class="switcher-label"><span id="shipping_price_holder">{{ \App\Services\PromotionCart::getCurrentShippingPrice() }}</span> &euro; - Versand mit DHL (1-3 Werktage)</span>
</label>
</div>
<div id="error-switchers_shipping" class="text-left"></div>
</div>
<div class="col-md-6 text-left text-md-right">
@if($promotion_user->pick_up)
<h2 class="mt-3">Kontakt &amp; Abholadresse</h2>
{!! nl2br($promotion_user->user_address) !!}
@endif
</div>
<div class="mt-2 col-12">
<hr class="">
</div>
</div>
</section>