@php $style = $style ?? 'style-1'; $author = $post->author; $authorDisplayName = $author->getMetaData('display_name', true); $category = $post->firstCategory; @endphp @if ($style === 'style-5')
@if ($image = $post->image) {{ RvMedia::image($image, $post->name, 'small') }} @endif {{ $post->created_at->translatedFormat('M d, Y') }}
@if ($category) {{ $category->name }} @endif

{{ $post->name }}

@if ($description = $post->description)

{!! BaseHelper::clean(nl2br($description)) !!}

@endif
@else
$style === 'style-4', 'blog-post-item-two' => $style !== 'style-4', ])>
$style === 'style-4', 'blog-post-thumb-two' => $style !== 'style-4', ]) > {{ RvMedia::image($post->image, $post->name, 'small') }} @if ($category && $style !== 'style-4') $style === 'style-2']) > {{ $category->name }} @endif
$style !== 'style-4', 'blog-post-content-four' => $style === 'style-4' ]) > @if($style === 'style-4') @if($category) {{ $category->name }} @endif
@endif

{{ $post->name }}

@if ($description = $post->description)

{{ $description }}

@endif @if($style !== 'style-4')
    @if ($author->exists)
  • {{ RvMedia::image($author->avatar_url, 'avatar', 'small') }} {{ $authorDisplayName ?: $author->name }}
  • @endif
  • {{ $post->created_at->translatedFormat('M d, Y') }}
@endif
@endif