@foreach($news as $item)
@if($loop->index % 3 == 0)
<div class="row grid">
	<ul>
@endif
		<li class="post column column_1_3">
			<a href="{{url($item->url)}}" title="{{$item->title}}">
				@if($item->video)
				<span class="icon video"></span>
				@elseif($item->images && count($item->images) > 1)
				<span class="icon gallery"></span>
				@endif
				<img src='{{$item->images && count($item->images) ? $imgBase . $item->images[0]->url : '/images/noimage.png'}}' alt='{{$item->images && count($item->images) ? $item->images[0]->title : $item->title}}'>
			</a>
			<div class="post_content">
				<h5>
					<a href="{{url($item->url)}}" title="{{$item->title}}">{{$item->title}}</a>
				</h5>
				<ul class="post_details simple">
					<li class="category">
						<a title="Regio: {{$item->region->title}}" href="{{url('nieuws/regio/' . $item->region->slug)}}">{{$item->region->title}}</a>
					</li>
					@if($item->edited && ($item->edited != $item->published))
					<li class="date edited">
						{{Formatter::relativeDate($item->edited)}} bijgewerkt om {{$item->published->format('H:i')}}
					</li>
					@else
					<li class="date">
						{{Formatter::relativeDate($item->published)}} om {{$item->published->format('H:i')}}
					</li>
					@endif
				</ul>
			</div>
		</li>
@if($loop->index % 3 == 2 || $loop->last)
	</ul>
</div>
@endif
@endforeach
