@inject('postHelper', 'App\Helpers\PostHelper') @inject('termHelper', 'App\Helpers\TermHelper') @php $posts->each(function ($posts) {$posts->load('categories'); }); @endphp @if($widgetData['title'] && Arr::exists($widgetData['title'], LaravelLocalization::getCurrentLocale()))

{{ $widgetData['title'][LaravelLocalization::getCurrentLocale()] }}

@endif
@foreach( $posts as $post )
{{ $post->post_image }}

{{ $post->post_title }}

@if($post->categories->first() AND $post->categories->first()->name) @endif
{{ $post->created_at->locale(LaravelLocalization::getCurrentLocale())->isoFormat('LL')}}
@endforeach