@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')
{{-- Plattform-Header: nur verfügbare Plattformen --}} @if (count($navPlats)) @endif
@if ($platform === 'android')
{{ $name }} für Android. @if($buyUrl)Key im Shop kaufen, @endif App laden und mit dem Key freischalten.
@elseif ($platform === 'windows')
{{ $name }} für Windows. @if($winOn)Windows-Installer jetzt direkt laden. @else Der Windows-Download folgt in Kürze. @endif @if($apkExists)Auch für Android. @endif
@endif {{-- Hero --}}
@if (! empty($app['icon'])){{ $name }}@endif {{ $platform ? $platLabel[$platform] . '-App' : 'App für iOS · Android · Windows' }} · KOTSCH.TECH

{{ $name }}

@if (! empty($app['tagline']))

{{ $app['tagline'] }}

@endif @if (! empty($app['subtitle']))

{{ $app['subtitle'] }}

@endif
@if (! $platform) {{-- Übersicht: KEIN Download/Kauf — nur zur Plattform-Wahl --}} Plattform wählen & holen Funktionen @else @if ($showApk) Android-APK ladenAPK · {{ $apkSize }} MB@endif @if ($showWin) Windows laden{{ $winSize }} MB@endif @if ($platform === 'ios' && $appStoreUrl) Im App Store@endif @if ($buyUrl) {{ $price ? 'Key kaufen — ' . $price : 'Key kaufen' }} @if($compare){{ $compare }}@endif@endif @endif
@if (! $platform && $buyUrl)

Kauf & Download findest du auf der jeweiligen Plattform-Seite. Der Key gilt plattformübergreifend.

@endif @if (! empty($app['chips']))
@foreach($app['chips'] as $c){{ $c }}@endforeach
@endif
@if (! empty($app['hero_shot']))
{{ $name }}
@endif
{{-- Zwei Bezugswege — nur auf den Plattform-Seiten (Android/Windows) --}} @if ($platform && in_array($platform, ['android', 'windows']) && $store)

Zwei Wege — du hast die Wahl

Direkt bei Kotsch.Tech oder bequem über {{ $store['label'] }}.

Empfohlen · günstiger

Direkt bei Kotsch.Tech

App laden + Lizenz-Key im Shop kaufen. Günstiger Preis — ein Key gilt für alle Plattformen (bis zu 3 Geräte).

@if ($directDownload) {{ $directDownload['label'] }}{{ $directDownload['sub'] }}@endif @if ($buyUrl) {{ $price ? 'Key kaufen — ' . $price : 'Key kaufen' }}@endif @if (! $directDownload && $platform === 'windows')

Der Windows-Installer folgt in Kürze — den Key kannst du schon sichern.

@endif
Bequem · 1 Tap

Im {{ $store['label'] }}

Kauf, Installation und Updates komplett über {{ $store['label'] }} — bequem in einem Schritt.

@if ($store['url']) Im {{ $store['label'] }} holen @else Bald im {{ $store['label'] }} @endif
@endif {{-- Plattform-Wahl (nur Übersicht) — der zentrale Entscheidungspunkt --}} @if (! $platform)

Für welche Plattform?

Wähle dein Gerät — dort findest du Download{{ $buyUrl ? ' & Key' : '' }}.

@php $choices = [ ['key'=>'ios','icon'=>'fa-apple','label'=>'iPhone & iPad','st'=>$pi['status'] ?? 'none','url'=>$urlApple], ['key'=>'android','icon'=>'fa-android','label'=>'Android','st'=>$pa['status'] ?? 'none','url'=>$urlAndroid], ['key'=>'windows','icon'=>'fa-windows','label'=>'Windows','st'=>$pw['status'] ?? 'none','url'=>$urlWindows], ]; @endphp @foreach ($choices as $ch) @if ($ch['st'] !== 'none') {{ $ch['label'] }} {{ $statusWord[$ch['st']] }} Öffnen @endif @endforeach
@endif {{-- Warum / USPs --}} @if (! empty($app['usps']))

Warum {{ $name }}?

@foreach ($app['usps'] as $u)

{{ $u[1] }}

{{ $u[2] }}

@endforeach
@endif {{-- Features --}} @if (! empty($app['features']))

Funktionen

Alles drin — nichts überladen.

@foreach ($app['features'] as $f)

{{ $f[1] }}

{{ $f[2] }}

@endforeach
@endif {{-- Screenshots --}} @if (! empty($app['screenshots']))

Ein Blick in die App

@foreach ($app['screenshots'] as $s)
{{ $s[1] ?? '' }}
{{ $s[1] ?? '' }}
@endforeach
@endif {{-- So funktioniert's (nur Plattform-Seiten mit Key) --}} @if ($platform && $buyUrl)

In 3 Schritten startklar

1

Key kaufen

Im Shop bezahlen{{ $price ? ' (' . $price . ')' : '' }} — kein Abo. Den Schlüssel bekommst du sofort per E-Mail.

2

App laden

{{ $platform === 'android' ? 'Die Android-APK herunterladen und installieren.' : ($platform === 'windows' ? 'Den Windows-Installer herunterladen und starten.' : 'Im App Store laden.') }}

3

Key eingeben

Schlüssel beim ersten Start eingeben — dauerhaft freigeschaltet, für bis zu 3 Geräte.

@endif {{-- Fakten + FAQ --}} @if (! empty($app['facts']) || ! empty($app['faq']))
@if (! empty($app['facts']))

Eckdaten

@foreach ($app['facts'] as $k => $v)@endforeach
{{ $k }}{{ $v }}
@endif @if (! empty($app['faq']))

Häufige Fragen

@foreach ($app['faq'] as $qa)
{{ $qa[0] }}

{{ $qa[1] }}

@endforeach
@endif
@endif {{-- Final CTA --}}
@if (! $platform)

Bereit?

Wähle deine Plattform.

@else

{{ $name }} holen

@if ($buyUrl) {{ $price ? 'Key sichern — ' . $price : 'Key sichern' }}@endif @if ($showApk) Android-APK@endif @if ($showWin) Windows@endif @if ($platform === 'ios' && $appStoreUrl) App Store@endif
← {{ $name }} für alle Plattformen
@endif
@endsection