@php // $categories array teke data asche @endphp
@forelse ($categories as $category) @php $news = category_news($category->id)->take(4); // Shudhu dorkari data fetch kora hochche $firstNews = $news->first(); @endphp
@include('global.separatior') {{-- First News Section (Top with Image & Details) --}} @if($firstNews)
{{-- Image --}}
@include('global.image')
{{-- Title & Summary --}}

@if ($firstNews->sub_title) {{ $firstNews->sub_title }} @endif {{ $firstNews->title }}

{{ strip_tags($firstNews->details) }}

@endif
{{-- Sub News Section (Bottom 3 items) --}}
@foreach ($news as $info) @if ($loop->iteration >= 2 && $loop->iteration <= 4)
@include('global.image')

@if ($info->sub_title) {{ $info->sub_title }} @endif {{ $info->title }}

@endif @endforeach
{{-- Read More --}}
@empty {{-- No categories found --}} @endforelse