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/SBogers10/honger.komma.pro/resources/views/site/partials/posts/postThumb.blade.php
<div class="post-thumb">

    {{-- Link to post --}}
    <a class="link-to-post" href="/blog/{{$post->translation->slug}}">

        @if($post->images->isNotEmpty())
            <figure style="background-image: url('{{ $post->images->first()->small_image_url }}')"></figure>
        @else
            {{-- Default image? --}}
            <figure></figure>
        @endif

        <span class="title">{{ $post->translation->name }}</span>
        <span class="teaser">
            {!! str_limit($post->translation->teaser,65) !!}
        </span>

    </a>

    {{-- Link to category --}}
    @foreach($post->categories as $category)

        <a class="category" href="/blog/categorie/{!! $category->translation->slug !!}">{!! $category->translation->name !!}</a>

    @endforeach

</div>