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/pietvanmierlo/stempelbv.nl/resources/views/site/organisms/news.blade.php
@foreach($posts as $post)
    <article class="o-news__article">
        <a class="o-news__link" href="{{$links->posts->route}}/{{$post->translation->slug}}">
            @if(isset($post->images) && $post->images->count() != 0)
                <div class="o-news__image">
                    <div class="o-news__bg-image" @if(isset($post->images) && $post->images->count() != 0) style="background-image: url('{{ $post->images->first()->small_image_url }}');"  @endif></div>
                </div>
            @endif
            <div class="o-news__body">
                <h2 class="o-news__heading">{{ $post->translation->name }}</h2>

                @if($post->translation->meta_description)
                    <p class="o-news__intro">
                        {{$post->translation->meta_description}}
                    </p>
                @endif

                <time class="o-news__timestamp" datetime="{{$post->date->format('Y-m-d')}}">
                    {{$post->date->day}} @lang('calendar.month_names_short.'. ($post->date->format('n') - 1)) {{ $post->date->year }}
                </time>

                <p class="o-news__action">
                    <span class="o-news__readmore">Lees meer</span>
                    @include('site.components.icons.arrow')
                </p>
            </div>
        </a>
    </article>
@endforeach