@php // Get popular blogs $popularBlogs = getBlogsByMetaData(['is_popular' => 1], 4, true, ['author', 'media', 'categories', 'comments'])[ 'blogs' ]; $popularBlogFirst = $popularBlogs->take(1); $popularBlogSecond = $popularBlogs->slice(1); $bannerTwo = site_configurations('theme2_ad_banner_two_section', true); @endphp @if (count($popularBlogs) > 0)

{{ __('frontend::translate.Popular') }}

@foreach ($popularBlogFirst as $blog)
{{ $blog->title }}
{{ $blog->categories->first()->name ?? 'Uncategorized' }}

{{ getCountedWord($blog->title, 70) }}

@if ($blog->excerpt)

{!! getCountedWord($blog->excerpt, 140) !!}

@endif
@endforeach
@include('frontend::components.home-follow-us') @if (getTranslatedData($bannerTwo, 'show_ad_banner_two') == 1)
@if (getSingleImage($bannerTwo, 'logo')) {{ siteName() }} @endif @if (getTranslatedData($bannerTwo, 'title'))

{{ getTranslatedData($bannerTwo, 'title') }}

@endif @if (getTranslatedData($bannerTwo, 'button_text') && getTranslatedData($bannerTwo, 'button_url')) {{ getTranslatedData($bannerTwo, 'button_text') }} @endif
@endif
@endif