@extends('layout') @section('title', $category->name . ' — SoulSize') @section('description', $category->description ?? 'Plus-Size ' . $category->name . ' Mode bei SoulSize.') @section('content') {{-- Category Hero --}}
@if($category->image)
@endif
@include('partials.breadcrumbs', ['category' => $category])

{{ $category->name }}

@if($category->description)

{{ $category->description }}

@endif
{{-- Subcategory Navigation --}} @if($category->children->count())
@endif {{-- Articles Grid --}}

Artikel

@if($articles->count())
@foreach($articles as $article) @php $articleCat = $article->category; if ($articleCat && $articleCat->parent?->parent_id) { // Ebene-3-Kategorie: grandparent/parent/cat/article $articleUrl = url($articleCat->parent->parent->slug . '/' . $articleCat->parent->slug . '/' . $articleCat->slug . '/' . $article->slug); } elseif ($articleCat && $articleCat->parent_id) { // Ebene-2-Kategorie: parent/cat/article $articleUrl = url($articleCat->parent->slug . '/' . $articleCat->slug . '/' . $article->slug); } else { $articleUrl = url($category->slug . '/' . $article->slug); } @endphp
@if($article->image) @else @endif
{{ $category->name }} {{ $article->published_at?->format('d. M Y') }}

{{ $article->title }}

{{ $article->excerpt }}

@endforeach
{{-- Pagination --}}
{{ $articles->links() }}
@else
edit_note

Hier kommen bald Artikel.

Schau später nochmal vorbei!

@endif
@endsection