@php // ── Versions-Erkennung ────────────────────────────────────────── // Scannt public/downloads/de-companion/V1/, V2/, V3/ ... // Höchste V-Nummer = aktuellste Version. $downloadBase = public_path('downloads/de-companion'); $latestVersion = null; $latestFilename = null; $latestSizeMb = null; $downloadAvailable = false; if (is_dir($downloadBase)) { $dirs = array_filter(scandir($downloadBase), fn ($d) => preg_match('/^V(\d+)$/i', $d)); usort($dirs, fn ($a, $b) => (int) substr($b, 1) - (int) substr($a, 1)); if (!empty($dirs)) { $latestVersion = strtoupper($dirs[0]); $vPath = $downloadBase . DIRECTORY_SEPARATOR . $dirs[0]; $exes = glob($vPath . DIRECTORY_SEPARATOR . '*.exe'); if (!empty($exes)) { $downloadAvailable = true; $latestFilename = basename($exes[0]); $latestSizeMb = round(filesize($exes[0]) / 1024 / 1024, 1); } } } // Screenshot-Erkennung (ablegen in public/img/de-companion/screenshots/) $screenshotPath = public_path('img/de-companion/screenshots'); $screenshots = []; if (is_dir($screenshotPath)) { foreach (glob($screenshotPath . '/*.{png,jpg,jpeg,webp}', GLOB_BRACE) as $f) { $screenshots[] = asset('img/de-companion/screenshots/' . basename($f)); } } $hasScreenshots = !empty($screenshots); @endphp @extends('demos.windows.app_layout') @section('title', 'DE Companion | kotsch.tech') @section('meta_description', 'DE Companion – die Windows-App für Digital-Engineering. Begleitet deinen Workflow direkt vom Desktop aus, mit nativem Tooling und schnellem Zugriff auf deine Projekte.') {{-- ── Monitor view: branded splash für Windows-Grid ─────────────── --}} @section('app-ui')
@endsection {{-- ── Beschreibung (rechts neben dem Monitor-Vorschau) ────────────── --}} @section('app-description')Dein Digital Engineering Campus direkt auf dem Desktop. Stundenplan, Mensa, Campus Live und System-Benachrichtigungen — als schlanke Tray-App für Windows 10 und 11. Kostenlos.
@if($hasScreenshots) {{-- Echter Screenshot vorhanden → Galerie --}}