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/SBogers54/csbinstallatietechniek.nl/resources/views/organisms/cardGrid.blade.php
@php
    if(!isset($modelName)) dd('ModelName needs to be set');
@endphp

<div class="o-card-grid  @modifiers('o-card-grid')">
    <div class="l-contain">
        <ul class="o-card-grid__list">

        @if(!empty($model))
            @foreach($model as $card)
                <li class="o-card-grid__item">
                    @include('components.card', [
                     'clickable' => true,
                     'cardImage' => $card->documents->where('key', '=', 'Documents-'.$modelName)->first()->medium_image_url ?? '/img/no-image-card-medium.gif',
                     'cardLabel' => $card->translation->name,
                     'cardLink' => $parentLink . '/' . $card->translation->slug,
                    ])
                </li>
            @endforeach
            @endif
        </ul>

    </div>
</div>