{{-- @if ($posts->count() > 0 && $user_data->count() > 0) --}} @if (!is_null($posts) && !is_null($user_data) && $posts->count() > 0 && $user_data->count() > 0)
@foreach ($posts->take(5) as $post)
{{ $post->title }}

{!! \Illuminate\Support\Str::limit($post->description, 130, '...') !!}

{{ Str::limit($user_data->full_name, 15) }}
{{ $post->comment->count() ? $post->comment->count() : 0 }}
{{ getPostViewCount($post->id) . ' ' . __('messages.details.views') }}
@endforeach

Member Since {{ ucfirst(__('messages.common.' . strtolower($user_data->created_at->format('M')))) }} {{ $user_data->created_at->format('d, Y') }}

@if ($following->count() || $followers->count())
@if ($following->count())

{{ __('messages.following') }} ({{ $following->count() }})

@foreach ($following as $follow)
@endforeach
@endif @if ($followers->count())

{{ __('messages.followers') }} ({{ $followers->count() }})

@foreach ($followers as $follow)
@endforeach
@endif
@endif
@if (!empty(array_filter(getPopularNews()))) @include('theme1.most_read', ['popularNews' => array_slice(getPopularNews(), 0, 4)]) @endif
{{-- @if ($posts->count() > 0) {{ $posts->links('pagination::tailwind-theme-1') }} @endif --}}
@else

{{ __('messages.no_matching_records_found') }}

@endif