@inject('postHelper', 'App\Helpers\PostHelper') @inject('termHelper', 'App\Helpers\TermHelper') @php $posts->each(function ($posts) {$posts->load('categories'); }); @endphp @if($posts->isNotEmpty()) {{-- @if($widgetData['title'] && Arr::exists($widgetData['title'], LaravelLocalization::getCurrentLocale()))
{{ $widgetData['title'][LaravelLocalization::getCurrentLocale()] }}
@endif --}}
@foreach ($posts as $post)
{{ $post->post_image }}
{{ $post->created_at->locale(LaravelLocalization::getCurrentLocale())->isoFormat('LL') }}
@if($post->categories->first() AND $post->categories->first()->name) @endif
{{ $post->post_hits }} {{ __('Laramagz::magz.views') }}   {{ $post->like }} {{ __('Laramagz::magz.likes') }}

{{ $post->post_title }}

{!! \Str::limit(strip_tags($post->post_content), 150) !!}

@endforeach
@endif