@php $isTh = app()->getLocale() === 'th'; $featured = $posts[0] ?? null; $rest = array_slice($posts, 1); $gridPosts = array_merge($rest, \Modules\Frontend\app\Support\SiteContent::blogLoadMoreMockPosts()); $initialVisible = 3; $perLoad = 3; $hasMore = count($gridPosts) > $initialVisible; @endphp

{{ $isTh ? 'บทความทั้งหมด' : 'All articles' }}

{{ $isTh ? 'เรื่องเล่าและคำแนะนำจากเรา' : 'Stories and notes from us' }}

@if ($featured) @endif
@foreach ($gridPosts as $index => $post) @php $isMock = ! empty($post['mock']); $postUrl = $isMock ? '#' : route('frontend.blog.show', $post['slug']); $isHidden = $index >= $initialVisible; @endphp @endforeach
@if ($hasMore)
@endif