File: D:/HostingSpaces/SBogers10/signmania.komma.pro/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