@foreach(\App\Models\Post::where('status',1)->where('is_pinned',1)->limit(2)->get() as $post)
{{$post->mainGroup->name}}
{{$post->title}}

{{$post->title}}

{{$post->created_at->ldate('Y-m-d l')}}
@endforeach

@if(!getSetting($data->area->name.'_'.$data->part.'_invert'))
@include('segments.posts_page.GridPostListSidebar.inc.sidebar')
@endif
@foreach($posts as $post)
{{$post->mainGroup->name}}
{{$post->title}}

{{$post->title}}

{{$post->created_at->ldate('Y/m/d l')}} {{number_format($post->view)}}

{{$post->subtitle}}

{{__("Read more")}}
@endforeach
{{$posts->links()}}
@if(getSetting($data->area->name.'_'.$data->part.'_invert'))
@include('segments.posts_page.GridPostListSidebar.inc.sidebar')
@endif