feat: replace static category grid with swiper carousel and upgrade blog search UI

This commit is contained in:
Ümit Tunç
2026-05-25 06:18:44 +03:00
parent afa92d8f4a
commit b4a81d703a
3 changed files with 54 additions and 116 deletions
+4 -4
View File
@@ -167,17 +167,17 @@ class BlogController extends Controller
}
if (class_exists(\App\Models\BlogCategory::class)) {
// Hoş Geldiniz bölümü altındaki 3'lü kategori vurgusu
// Hoş Geldiniz bölümü altındaki 4'lü kategori vurgusu
$highlightCategories = \App\Models\BlogCategory::where('is_active', true)
->withCount('blogs')
->has('blogs')
->orderBy('sort_order')
->take(3)
->take(4)
->get();
if ($highlightCategories->count() < 3) {
if ($highlightCategories->count() < 4) {
$highlightCategories = \App\Models\BlogCategory::where('is_active', true)
->orderBy('sort_order')
->take(3)
->take(4)
->get();
}