@php
$sportscat=DB::table('categories')->where('parent_id',null)->skip(8)->first();
$sportscatpostbig=DB::table('posts')->where('category_id',$sportscat->id ?? 'Note Found')->where('is_trending',1)->orderBy('id','DESC')->limit(1)->get();
$sportscatpostsmall=DB::table('posts')->where('category_id',$sportscat->id ?? 'Note Found')->where('is_trending',1)->orderBy('id','DESC')->skip(1)->limit(2)->get();
@endphp
@php
$mediacat=DB::table('categories')->where('parent_id',null)->skip(9)->first();
$mediacatpostbig=DB::table('posts')->where('category_id',$mediacat->id ?? 'Note Found')->where('is_trending',1)->orderBy('id','DESC')->limit(1)->get();
$mediacatpostsmall=DB::table('posts')->where('category_id',$mediacat->id ?? 'Note Found')->where('is_trending',1)->orderBy('id','DESC')->skip(1)->limit(10)->get();
@endphp
@php
$secondcat=DB::table('categories')->where('parent_id',null)->skip(1)->first();
$secondcatpostbig=DB::table('posts')->where('category_id',$secondcat->id ?? 'Note Found')->where('is_trending',1)->orderBy('id','DESC')->limit(1)->get();
$secondcatpostsmall=DB::table('posts')->where('category_id',$secondcat->id ?? 'Note Found')->where('is_trending',1)->orderBy('id','DESC')->skip(1)->limit(2)->get();
@endphp