@php $category = $categories[0] ?? null; $news = $category ? category_news($category->id)->take(8) : collect(); @endphp
{{-- Category Header --}}
@include('global.separatior')
{{-- News Grid --}} @foreach ($news as $info)
{{-- Image Section with Gradient Overlay --}}
@include('global.image', ['info' => $info]) {{-- Optional: Subtitle Badge --}} @if ($info->sub_title) {{ $info->sub_title }} @endif
{{-- Text Section --}}

{{ $info->title }}

{{-- Adding a small time/date or icon for better look --}}
{{ timeAgo($info->created_at) }}
{{-- Link Overlay --}}
{{-- Row Clearfix for Mobile (Jate 2to kore grid thik thake) --}} @if($loop->iteration % 2 == 0)
@endif @if($loop->iteration % 4 == 0)
@endif @endforeach