{{getSetting($data->area_name.'_'.$data->part.'_title')}}

@if(getGroupBySetting($data->area_name.'_'.$data->part)?->posts()->where('status',1)->where('is_pinned',1)->count() == 0)

{{__("You must add a pinned post to :GROUP",['GROUP' => getGroupBySetting($data->area_name.'_'.$data->part)?->name])}}

@else

{{getGroupBySetting($data->area_name.'_'.$data->part)?->posts()->where('status',1)->where('is_pinned',1)->first()->title}}

{!! getGroupBySetting($data->area_name.'_'.$data->part)?->posts()->where('status',1)->where('is_pinned',1)->first()->body!!} @endif
@include('components.err')
@csrf
@php($dir = langIsRTL(app()->getLocale() )?'rtl':'ltr' ) @foreach( getGroupBySetting($data->area_name.'_'.$data->part)?->posts()->where('status',1) ->where('is_pinned',0)->orderByDesc('id')->get() as $i => $post)
{{$post->title}}

{{$post->title}}

{{$post->subtitle}}

@endforeach