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

{{ __('Laramagz::magz.tag') }}: {{ $tag->name }}

{{ __('Laramagz::magz.showing_all_posts_with_tag') }} {{ $tag->name }}

@endif
@if($posts) @foreach($posts as $post)
@if($post->post_type == 'post' OR $post->post_type == 'page') {{ $post->post_image }} @elseif($post->post_type == 'video_file' OR $post->post_type == 'video_url' OR $post->post_type == 'video_embed') {{ $post->post_image }} @else {{ $post->post_image }} @endif
@if($tag->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') }}
@endif
@if($sidebarPosition === "right" AND $sidebarActive) @include('frontend.magz.template-parts.sidebar') @endif
@stop