<article class="post-item-wrapper">
    <div class="card my-3 pb-5 post-item__inner">
        <div class="row g-0">
            <div class="col-md-4 post-item__image">
                <a
                    class="img-fluid-eq"
                    href="{{ $post->url }}"
                >
                    <div class="img-fluid-eq__dummy"></div>
                    <div class="img-fluid-eq__wrap">
                        <img
                            class="lazyload img-cover"
                            data-src="{{ RvMedia::getImageUrl($post->image, null, false, RvMedia::getDefaultImage()) }}"
                            src="{{ image_placeholder($post->image) }}"
                        >
                    </div>
                </a>
            </div>
            <div class="col-md-8 post-item__content ps-md-4">
                <div>
                    <div class="entry-title">
                        <h4><a href="{{ $post->url }}">{{ $post->name }}</a></h4>
                    </div>

                    <div class="entry-meta mb-2">
                        @if ($post->author && theme_option('blog_show_author_name', 'yes') == 'yes')
                            <div class="entry-meta-author">
                                <span class="d-inline-block">{{ __('By') }}</span> <span
                                    class="d-inline-block author-name"
                                >{{ $post->author->name }}</span>
                            </div>
                        @endif
                        @if ($post->categories->isNotEmpty())
                            <div class="entry-meta-categories">
                                <span class="d-inline-block">{{ ($post->author && theme_option('blog_show_author_name', 'yes') == 'yes') ? __('in') : ucfirst(__('in')) }}</span>
                                @foreach ($post->categories as $category)
                                    <a href="{{ $category->url }}">{{ $category->name }}</a>
                                    @if (!$loop->last)
                                        ,
                                    @endif
                                @endforeach
                            </div>
                        @endif
                        <div class="entry-meta-date">
                            <span class="d-inline-block">{{ __('on') }}</span>
                            <time>{{ Theme::formatDate($post->created_at) }}</time>
                        </div>
                    </div>
                    <div class="entry-description">
                        <p>{{ Str::limit($post->description, 120) }}</p>
                    </div>
                </div>
            </div>
        </div>
    </div>
</article>
