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/BVerhoeven/verhoevendak.nl/app/views/layouts/partials/posts/newsLoop.blade.php
@foreach($news as $item)
    <article class="grid-col @if(!isset($item->images) || $item->images->count() == 0) no-image @endif">
        <a href="/{{
                        $item->translations->first()->routes->filter(function($route) use ($page) {
                            if( starts_with($route->route, $page->translation->route->route)){
                                return $route->route;
                            }
                        })->first()->route;
                    }}">
            <figure @if($item->images->count() != 0) style="background-image: url('{{$item->images->first()->medium_image_url}}');"@endif>
                <span class="overlay"></span>
            </figure>

            <div class="content">
                <h3>{{$item->translations->first()->name}}</h3>

                <span class="date">
                                {{$item->getDate()->format('j')}} @lang('calender.months.'.$item->getDate()->format('n')) {{$item->getDate()->format('Y')}}
            </span>
            </div>
        </a>
    </article>
@endforeach