@php if (class_exists($post->author_type)) { $post->loadMissing('author'); } $author = class_exists($post->author_type) ? ($post->author ?? null) : null; $view = $post->views ?? null; $content = $post->content ?? null; $wrapperClass = $wrapperClass ?? null; $isSingle = $isSingle ?? false; $isShowAuthorName = ($isSingle || echo_is_show_post_meta('author_name')) && $author; $isShowReadingTime = ($isSingle || echo_is_show_post_meta('reading_time', true)) && $post->time_reading; $isShowViewsCount = ($isSingle || echo_is_show_post_meta('views_count')) && $view; @endphp @if ($isShowAuthorName || $isShowViewsCount || $isShowReadingTime)
@if ($isShowAuthorName && $author && $author->name)
{{ $author->name }}
@endif @if ($isShowReadingTime && $post->time_reading)
{!! Theme::partial('count-time-to-read', compact('post')) !!}
@endif @if ($isShowViewsCount && $view)
{!! Theme::partial('count-view', compact('view')) !!}
@endif @if ($isSingle)
@foreach ($post->categories as $category) @if ($category->icon) @endif {{ $category->name }} @if (!$loop->last), @endif @endforeach
@endif
@endif