@php $mac = ($app['kind'] ?? '') === 'mac'; $pf = $app['price_formatted'] ?? ''; $free = ($pf === 'Gratis' || str_starts_with($pf, '0,00')); $priceClass = $free ? 'free' : 'paid'; $genre = $app['genre'] ?? ''; $genreLabel = $mac ? trim($genre . ' · Mac') : $genre; $relText = !empty($app['updated']) ? $rel($app['updated']) : ''; $detailUrl = !empty($app['slug']) ? (new \App\Support\SubdomainRegistry())->url('ios', ($lp ?? '') . $app['slug']) : null; $nameLower = \Illuminate\Support\Str::lower($app['name'] ?? ''); // Geräte: iOS-Apps sind universal (iPhone + iPad), Mac-Apps nur Mac. $devices = $mac ? 'mac' : 'iphone ipad'; // Geräte-spezifische Screenshot-Reihen (iPhone + iPad getrennt; Mac eigene). $iphoneShots = $mac ? collect() : collect($app['screenshots'] ?? []); $ipadShots = $mac ? collect() : collect($app['screenshots_ipad'] ?? []); $macShots = $mac ? collect($app['screenshots'] ?? []) : collect(); @endphp
@if(!empty($app['icon'])) {{ $app['name'] ?? '' }} Icon @endif

{{ $app['name'] ?? '' }}

{{ $genreLabel }}
@if($pf !== '') {{ $pf }} @endif
@if(!empty($app['version'])) v{{ $app['version'] }} @endif @if($relText !== '') {{ $relText }} @endif @if($detailUrl) Details › @endif @if(!empty($app['url'])) App Store @endif
@if($iphoneShots->isNotEmpty()) @endif @if($ipadShots->isNotEmpty()) @endif @if($macShots->isNotEmpty()) @endif