@extends('layouts.app') @php $routeLocale = in_array(request()->segment(1), ['de', 'en'], true) ? request()->segment(1) : 'de'; $tr = fn ($de, $en) => $routeLocale === 'en' ? $en : $de; @endphp @section('title', $topic['label'] . ' — ' . $tr('Wissen', 'Knowledge') . ' | KOTSCH.TECH') @section('meta_description', $topic['tagline'] ?: ($topic['label'] . ' lernen — PDFs und Lernsites auf kotsch.tech.')) @section('content')

{{ $topic['label'] }}

@if($topic['tagline'])

{{ $topic['tagline'] }}

@endif
{{ $tr('Alle Themen', 'All topics') }}

{{ $tr('Lernsites', 'Learning sites') }} {{ $sites->count() }}

@if($sites->isEmpty())
{{ $tr('Hier entstehen bald interaktive Lernsites.', 'Interactive learning sites coming soon.') }}
@else @endif

{{ $tr('Dokumente & PDFs', 'Documents & PDFs') }} {{ $pdfs->count() }}

@if($pdfs->isEmpty())
{{ $tr('Noch keine PDFs in diesem Thema.', 'No PDFs in this topic yet.') }}
@else
@foreach($pdfs as $pdf)
{{ $pdf['title'] }} PDF · {{ $pdf['size'] }}
@endforeach
@endif
{{-- Werbung: fixe Seiten-Banner links/rechts (Desktop ≥1440px), sonst Inline-Banner. --}} @include('tools._ads_banner')
@endsection