@php //tending blogs $weaklyBlogs = getBlogsByMetaData( [ 'is_weacklybest' => 1, ], 4, true, ['author', 'media', 'categories', 'comments'], )['blogs']; $firstWeaklyBlog = $weaklyBlogs->take(1); $remainingWeaklyBlogs = $weaklyBlogs->slice(1); $profileSection = site_configurations('theme1_blog_sidebar_profile_section', true); @endphp @if (count($weaklyBlogs) > 0)

{{ __('frontend::translate.Weakly Best') }}

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

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

@endforeach @if (count($remainingWeaklyBlogs) > 0)
@foreach ($remainingWeaklyBlogs as $key => $blog)
{{ $blog->title }}
{{ $blog->categories->first()->name ?? 'Uncategorized' }}

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

@endforeach
@endif
@include('frontend::components.home-follow-us') @if (getTranslatedData($profileSection, 'show_sidebar_profile') == 1) @endif
@endif