@extends('layouts.app') @php // Generische, marketing-orientierte App-Seite (wiederverwendbares Muster). // $appSlug + optional $platform kommen aus der Route. Inhalte aus config/cross_apps.php. // Verhalten: Übersicht ($platform=null) = reine Entscheidungs-/Marketingseite OHNE Download/Kauf // → leitet zur Plattform-Seite. Plattform-Seiten = Download + Key kaufen + Marketing + Infos. $appSlug = $appSlug ?? null; $platform = $platform ?? null; $app = config('cross_apps.' . $appSlug, []); $name = $app['name'] ?? 'App'; $reg = new \App\Support\SubdomainRegistry(); $urlAndroid = $reg->url('android', $appSlug); $urlApple = $reg->url('ios', $appSlug); $urlWindows = $reg->url('windows', $appSlug); $urlOverview = $reg->url($appSlug); $pa = $app['platforms']['android'] ?? []; $pi = $app['platforms']['ios'] ?? []; $pw = $app['platforms']['windows'] ?? []; // Download-/Store-Daten: Admin-verwaltet (DB) mit Fallback auf config/cross_apps.php. $android = \App\Support\Apps\AppCatalog::platform($appSlug, 'android'); $ios = \App\Support\Apps\AppCatalog::platform($appSlug, 'ios'); $windows = \App\Support\Apps\AppCatalog::platform($appSlug, 'windows'); $apkExists = $android['has_download']; $apkSize = $android['size_mb']; $apkUrl = $android['download_url']; $winOn = $windows['available']; $winSize = $windows['size_mb']; $winUrl = $windows['download_url']; $appStoreUrl = $ios['store_url']; $playUrl = $android['store_url']; // Download-Buttons nur auf der passenden Plattform-Seite. $showApk = $android['available'] && $platform === 'android'; $showWin = $windows['available'] && $platform === 'windows'; // Shop-Key $product = ! empty($app['shop_slug']) ? \App\Models\ShopProduct::where('slug', $app['shop_slug'])->first() : null; $price = $product?->price_formatted; $compare = $product?->compare_at_price_formatted; $buyUrl = $product ? route('shop.show', $product->slug) : null; $accent = $app['accent'] ?? '#2563eb'; $accent2 = $app['accent_2'] ?? '#7c3aed'; // Plattform-Header — nur Plattformen, die es wirklich gibt (status != none). $navPlats = []; if (($ios['status'] ?? 'none') !== 'none') $navPlats['ios'] = ['label' => 'iOS', 'icon' => 'fa-apple', 'url' => $urlApple, 'brand' => true]; if (($android['status'] ?? 'none') !== 'none') $navPlats['android'] = ['label' => 'Android', 'icon' => 'fa-android', 'url' => $urlAndroid, 'brand' => true]; if (($windows['status'] ?? 'none') !== 'none') $navPlats['windows'] = ['label' => 'Windows', 'icon' => 'fa-windows', 'url' => $urlWindows, 'brand' => true]; $platLabel = ['android' => 'Android', 'windows' => 'Windows', 'ios' => 'iOS']; $statusWord = ['live' => 'Verfügbar', 'dev' => 'In Kürze', 'planned' => 'Geplant', 'none' => '']; // Zwei Bezugswege auf den Plattform-Seiten: (1) direkt bei Kotsch.Tech (Download + Key), // (2) im jeweiligen Store. Store-Link erscheint, sobald in der Config gesetzt. $storeMeta = [ 'android' => ['label' => 'Google Play', 'icon' => 'fa-google-play', 'url' => $playUrl], 'windows' => ['label' => 'Microsoft Store', 'icon' => 'fa-microsoft', 'url' => $windows['store_url']], 'ios' => ['label' => 'App Store', 'icon' => 'fa-apple', 'url' => $appStoreUrl], ]; $store = $storeMeta[$platform] ?? null; $directDownload = $showApk ? ['url' => $apkUrl, 'label' => 'Android-APK laden', 'sub' => 'APK · ' . $apkSize . ' MB', 'icon' => 'fa-android', 'cls' => 'cv-btn-android'] : ($showWin ? ['url' => $winUrl, 'label' => 'Windows laden', 'sub' => $winSize . ' MB', 'icon' => 'fa-windows', 'cls' => 'cv-btn-primary'] : null); @endphp @section('title', $name . ' – ' . ($app['tagline'] ?? '') . ' | KOTSCH.TECH') @section('meta_description', $app['subtitle'] ?? ($app['tagline'] ?? '')) @if (($app['noindex'] ?? false))@section('robots', 'noindex,follow')@endif @section('content') @include('apps._styles')
{{ $app['tagline'] }}
@endif @if (! empty($app['subtitle'])){{ $app['subtitle'] }}
@endifKauf & Download findest du auf der jeweiligen Plattform-Seite. Der Key gilt plattformübergreifend.
@endif @if (! empty($app['chips']))Direkt bei Kotsch.Tech oder bequem über {{ $store['label'] }}.
App laden + Lizenz-Key im Shop kaufen. Günstiger Preis — ein Key gilt für alle Plattformen (bis zu 3 Geräte).
Der Windows-Installer folgt in Kürze — den Key kannst du schon sichern.
@endifKauf, Installation und Updates komplett über {{ $store['label'] }} — bequem in einem Schritt.
Wähle dein Gerät — dort findest du Download{{ $buyUrl ? ' & Key' : '' }}.
{{ $u[2] }}
Alles drin — nichts überladen.
{{ $f[2] }}
Im Shop bezahlen{{ $price ? ' (' . $price . ')' : '' }} — kein Abo. Den Schlüssel bekommst du sofort per E-Mail.
{{ $platform === 'android' ? 'Die Android-APK herunterladen und installieren.' : ($platform === 'windows' ? 'Den Windows-Installer herunterladen und starten.' : 'Im App Store laden.') }}
Schlüssel beim ersten Start eingeben — dauerhaft freigeschaltet, für bis zu 3 Geräte.
| {{ $k }} | {{ $v }} |
{{ $qa[1] }}
Wähle deine Plattform.
@else