HEX
Server: Microsoft-IIS/8.5
System: Windows NT YDAWBH120 6.3 build 9600 (Windows Server 2012 R2 Standard Edition) AMD64
User: tentjecom_web (0)
PHP: 7.4.14
Disabled: NONE
Upload Files
File: D:/HostingSpaces/Eurotools/euro-tools.nl/resources/views/shop/partials/itemsGridLoop.blade.php
<div class="grid-col c-products">
    @foreach($products as $product)
        @if(!empty($product->translation->slug))
            @php $iso = \App::getSite()->languages->where('id', "=", $product->translation->language_id)->first()->iso_2; @endphp
            <div class="c-products__item">
                <a class="c-products__link" href="{{isset($parentlink) ? '/'.$parentlink : '/'.$iso}}/{{$product->translation->slug}}">
                    <div class="c-products__image-holder" style="
                    @if(count($product->documents) > 0)
                            background-image: url('{{$product->documents[0]->medium_image_url}}');
                    @elseif(isset($isCategory) && isset($product->getProducts) && $product->getProducts->isNotEmpty())
                            background-image: url('{{$product->getProducts->first()->documents[0]->medium_image_url}}');
                    @else
                            background-image: url('/img/svg/big_hamer.svg'); background-size: 80%; background-position: -10px 30px; opacity: 0.4;
                    @endif
                            ">
                    </div>
                    {{--<h3>@lang('shop/products.product_code'): {{ $product->stock_keeping_unit }}</h3>--}}
                    @if(!empty($isCategory))
                        <h3 class="c-products__code">@lang('site/global.viewProducts') &rarr;</h3>
                    @else
                        <h3 class="c-products__code">@lang('site/global.articleCode'): {{ $product->internal_number }}</h3>
                    @endif
                    <h4 class="c-products__title">{{ $product->translation->name}}</h4>
                    @if(empty($isCategory) || !$isCategory)
                        <p class="c-products__description">
                            @if(!\Auth::check())
                                @lang('site/global.noPriceAccess');
                            @else
                                <label class="c-products__label">@lang('shop/products.price_label'): </label><span class="c-products__value  price">&euro;{{number_format($product->price/100, 2,",",".")}}</span><br/>
                                @if(!empty($product->discount))
                                    <label class="c-products__label  staffel_price">@lang('shop/products.staffel_price_label'): </label><span class="c-products__value  staffel_price">&euro;{{number_format($product->discount->getDiscountAction()->do($product->price)/100, 2,",",".")}}</span><br/>
                                    <label class="c-products__label">@lang('shop/products.staffel'): </label><span class="c-products__value  staffel">{{$product->discount->getDiscountCondition()->getQuantity()}} @lang('shop/products.pieces')</span><br/>
                                @endif
                                <label class="c-products__label">@lang('shop/products.ultra_staffel'): </label><span class="c-products__value">{{$product->vpe}}@if(strpos($product->vpe, '/') === false){{ empty($product->inner_box) ? __('shop/products.pieces') : '/'.$product->inner_box}}@endif</span>
                            @endif
                        </p>
                    @endif
                </a>
            </div>
        @endif
    @endforeach
</div>