@extends('layouts.site') @section('content') @if(isset($carouselPosts) && $carouselPosts->count() > 0) @foreach($carouselPosts as $cPost) @php $cTitle = method_exists($cPost, 'translate') ? $cPost->translate('title') : $cPost->title; $cExcerpt = method_exists($cPost, 'translate') ? $cPost->translate('excerpt') : ($cPost->excerpt ?? ''); $cCategoryName = $cPost->category ? $cPost->category->name : ''; $cCategorySlug = $cPost->category ? $cPost->category->slug : ''; $cDate = $cPost->published_at ? $cPost->published_at->format('d M Y') : $cPost->created_at->format('d M Y'); $cImage = $cPost->featured_image ? asset('storage/' . $cPost->featured_image) : asset('assets/img/photos/tb1.jpg'); $cUrl = route('blog.show', $cPost->slug); @endphp @if($cCategoryName) {{ $cCategoryName }} @endif {{ \Illuminate\Support\Str::limit($cTitle, 60) }} {{ $cDate }} @if($cPost->author) {{ $cPost->author->name }} @endif @endforeach @endif Merhaba! Biz Trunçgil. Blogumuza hoş geldiniz. Burada web tasarım, yazılım geliştirme ve teknolojik yeniliklere dair ipuçlarını ve deneyimlerimizi paylaşıyoruz. @if(isset($highlightCategories) && $highlightCategories->count() > 0) @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 {{ $hCat->name }} @endforeach @endif @include('blog.partials.posts') @push('styles') @endpush @push('scripts') @endpush @endsection