@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', $tr('Wissen — Lernen nach Themen | KOTSCH.TECH', 'Knowledge — Learn by Topic | KOTSCH.TECH')) @section('meta_description', $tr('Lernen nach Themen: PDFs und komplette Lernsites zu Web-Entwicklung, IT-Sicherheit, KI, Mathematik und mehr — kostenlos auf kotsch.tech.', 'Learn by topic: PDFs and complete learning sites on web development, IT security, AI, math and more — free on kotsch.tech.')) @section('content')
{{ $tr('Lern-Hub', 'Learning Hub') }}

{{ $tr('Lernen nach', 'Learn by') }} {{ $tr('Themen', 'Topic') }}

{{ $tr('Kuratierte PDFs und komplette Lernsites — gezielt zu einem Thema, kostenlos und ohne Login.', 'Curated PDFs and complete learning sites — focused on one topic, free and without login.') }}

{{ $topics->count() }}{{ $tr('Themen', 'Topics') }}
{{ $totalSites }}{{ $tr('Lernsites', 'Learning sites') }}
{{ $totalPdfs }}PDFs

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

{{ $tr('Wähle ein Thema und tauche ein.', 'Pick a topic and dive in.') }}

@if($topics->isEmpty())
{{ $tr('Themen werden gerade vorbereitet — bald geht es los.', 'Topics are being prepared — coming soon.') }}
@else @endif
@if($latest->isNotEmpty())

{{ $tr('Neueste Lernsites', 'Latest learning sites') }}

{{ $tr('Frisch hinzugekommen.', 'Freshly added.') }}

@endif
@endsection