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

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

@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" AND $sidebarActive) @include('frontend.magz.template-parts.sidebar') @endif
@stop