@if(isset($highlightCategories) && $highlightCategories->count() > 0)
@php
$catCount = $highlightCategories->count();
// Dynamically select column width based on category count
$gridClass = $catCount >= 4 ? 'md:w-6/12 lg:w-3/12 xl:w-3/12' : 'md:w-6/12 lg:w-4/12 xl:w-4/12';
@endphp
@foreach($highlightCategories as $index => $hCat)
@php
$images = [
'teknoloji-cozumleri' => 'assets/img/photos/blog_cat_tech.png',
'yapay-zeka' => 'assets/img/photos/blog_cat_ai.png',
'muzik-teknolojileri' => 'assets/img/photos/blog_cat_music.png',
'uygulama-gelistirme' => 'assets/img/photos/blog_cat_app.png',
];
$hImg = isset($images[$hCat->slug]) ? asset($images[$hCat->slug]) : asset('assets/img/photos/blog_cat_tech.png');
$hUrl = route('blog.index', ['category' => $hCat->slug]);
@endphp
Keşfet
@endforeach