gruene-seele/resources/views/web/promotion/_free_product.blade.php
2021-11-09 18:40:18 +01:00

53 lines
No EOL
2.8 KiB
PHP

<section>
<h2 class="text-center">1 Tester gratis für Dich</h2>
<p class="text-center">Wähle nun ...</p>
<div class="row justify-content-center">
@foreach ($promotion_user->promotion_user_products_active as $promotion_user_product)
@if ($promotion_user_product->isShow())
<div class="col-md-6 col-lg-4 text-center p-4">
@if ($promotion_user_product->product->images)
@if ($image = $promotion_user_product->product->images->first())
<img src="{{ route('product_image', [$image->slug]) }}" class="mb-2 img-fluid"
alt="" style="max-height: 350px">
@endif
@endif
<h4 class="product-title">
{{ $promotion_user_product->product->name }}
</h4>
<div class="mb-2 product-description">
{{ substr_ellipsis($promotion_user_product->product->description, 110, true) }}
</div>
<div class="more_details">
<a href="" class="" data-modal="modal-lg" data-toggle="modal"
data-target="#modals-load-content"
data-id="{{ $promotion_user_product->product->id }}"
data-route="{{ route('web_promotion_modal_load') }}"
data-action="web-show-product" data-view="no-price">
<i class="fa fa-search"></i> Mehr Details</a>
</div>
<div class="mt-4 mb-3">
<div class="switcher-holder">
<label class="switcher switcher-success">
<input type="radio" class="switcher-input" name="user_free_product" value="{{ $promotion_user_product->product->id }}" data-error="#error-user_free_product" required>
<span class="switcher-indicator">
<span class="switcher-yes">
<span class="ion ion-md-checkmark"></span>
</span>
<span class="switcher-no">
<span class="ion ion-md-close"></span>
</span>
</span>
<span class="switcher-label"> möchte ich haben</span>
</label>
</div>
</div>
</div>
@endif
@endforeach
<div class="col-12">
<div id="error-user_free_product" class="text-center"></div>
<hr class="">
</div>
</div>
</section>