@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 }} @if($post->author->id) {{ $post->author->name }} {{ $post->created_at->translatedFormat('M d, Y') }} @endif @php($timeReading = $post->getMetaData('time_to_read', true) ?: number_format(strlen(strip_tags($post->content)) / 300)) @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 }} @if($post->author->id) {{ $post->author->name }} {{ $post->created_at->translatedFormat('M d, Y') }} @endif @php($timeReading = $post->getMetaData('time_to_read', true) ?: number_format(strlen(strip_tags($post->content)) / 300)) @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 }}