@extends('frontend.magz.index') @inject('postHelper', 'App\Helpers\PostHelper') @inject('themeHelper', 'App\Helpers\ThemeHelper') @php $posts->load('categories') @endphp @section('content')
@if($sidebarPosition === "left" AND $sidebarActive) @include('frontend.magz.template-parts.sidebar') @endif

{{ __('Laramagz::magz.all_popular_posts') }}

@foreach( $posts as $post )
{{ $post->post_image }}
@if($post->categories->first() AND $post->categories->first()->name) @endif
{{ $post->created_at->locale(LaravelLocalization::getCurrentLocale())->isoFormat('LL') }}
{{ $post->post_hits }} {{ __('Laramagz::magz.views') }}   {{ $post->like }} {{ __('Laramagz::magz.likes') }}

{{ $post->post_title }}

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

@endforeach
{{ $posts->links('frontend.magz.inc._pagination') }}
@if($sidebarPosition === "right" && $sidebarActive) @include('frontend.magz.template-parts.sidebar') @endif
@stop