@if ($posts->count() > 0) @php $title = $shortcode->title; $subtitle = $shortcode->subtitle; @endphp @switch($shortcode->style) @case('style-2') @if ($title) {!! BaseHelper::clean($title) !!} @endif @if ($subtitle) {!! BaseHelper::clean($subtitle) !!} @endif @foreach($posts as $post) @if($post->tags) @foreach ($post->tags as $tag) {{ $tag->name }} @endforeach @endif {{ $post->name }} {{ $post->description }} @php $author = $post->author; $isDisplayAuthor = (! theme_option('hide_blog_post_author') && $author->getKey()); @endphp @if ($isDisplayAuthor) @endif @if ($isDisplayAuthor) {{ $author->name }} @endif {{ $post->created_at->translatedFormat('M d, Y') }} $isDisplayAuthor])> @php $timeReading = $post->getMetaData('time_to_read', true) ?: number_format(strlen(strip_tags($post->content)) / 300); @endphp @if($timeReading > 1) {{ __(':time mins to read', ['time' => $timeReading]) }} @elseif($timeReading === 1) {{ __(':time min to read', ['time' => $timeReading]) }} @endif @endforeach {{ __('View more') }} @break @default @if ($title) {!! BaseHelper::clean($title) !!} @endif @if($subtitle) {!! BaseHelper::clean($subtitle) !!} @endif @foreach($posts as $post) @if ($post->tags) @foreach ($post->tags as $tag) {{ $tag->name }} @endforeach @endif {{ $post->name }} {{ $post->description }} @php $author = $post->author; $isDisplayAuthor = (! theme_option('hide_blog_post_author') && $author->getKey()); @endphp @if ($isDisplayAuthor) @endif @if ($isDisplayAuthor) {{ $author->name }} @endif {{ $post->created_at->translatedFormat('M d, Y') }} $isDisplayAuthor])> @php $timeReading = $post->getMetaData('time_to_read', true) ?: number_format(strlen(strip_tags($post->content)) / 300); @endphp @if($timeReading > 1) {{ __(':time mins to read', ['time' => $timeReading]) }} @elseif($timeReading === 1) {{ __(':time min to read', ['time' => $timeReading]) }} @endif @endforeach {{ __('View more') }} @break @endswitch @endif
{!! BaseHelper::clean($subtitle) !!}
{{ $post->description }}