@if(count($all_posts))
@foreach($all_posts as $item)
@if(!in_array($item->id,$all_post_ids))
@continue
@endif
@endforeach
@else
{{ NO_POST_FOUND }}
@endif
{{ $item->rSubCategory->sub_category_name }}
{{ $item->post_title }}
@if($item->author_id==0)
@php
$user_data = \App\Models\Admin::where('id',$item->admin_id)->first();
@endphp
@else
@php
$user_data = \App\Models\Author::where('id',$item->author_id)->first();
@endphp
@endif
{{ $user_data->name }}
@php
$ts = strtotime($item->updated_at);
$updated_date = date('d F, Y',$ts);
@endphp
{{ $updated_date }}