@extends('layouts.app')
@php
// Anzeige-Sprache aus dem ersten URL-Segment (/en|/de); Standard = de.
$siteLocale = in_array(request()->segment(1), ['de', 'en'], true) ? request()->segment(1) : 'de';
$en = $siteLocale === 'en';
$t = fn ($de, $enText) => $en ? $enText : $de;
$apps = collect($apps ?? []);
$total = $apps->count();
$categories = $apps->pluck('genre')->filter()->unique()->sort()->values();
$hasIos = $apps->where('kind', 'ios')->isNotEmpty();
$hasMac = $apps->where('kind', 'mac')->isNotEmpty();
$rel = fn ($d) => $d ? \Illuminate\Support\Carbon::parse($d)->locale($siteLocale)->diffForHumans() : '';
@endphp
@section('title', $t('Apps für iPhone, iPad & Mac | Arthur Kotsch', 'Apps for iPhone, iPad & Mac | Arthur Kotsch'))
@section('meta_description', $t('Alle Apps von Arthur Kotsch — live aus dem App Store, mit echten Icons & Screenshots. Suchen & nach Kategorie filtern.', 'All of Arthur Kotsch’s apps — live from the App Store, with real icons & screenshots. Search & filter by category.'))
@section('content')
{{ $t('Alle meine Apps —', 'All my apps —') }} {{ $t('live aus dem App Store', 'live from the App Store') }}{{ $t(', mit echten Icons & Screenshots.', ', with real icons & screenshots.') }} {{ $t('Der App-Store-Abruf ist kurz nicht erreichbar.', 'The App Store request is briefly unavailable.') }}{{ $t('Apps für', 'Apps for') }} iPhone, iPad & Mac.
{{ $t('Apps werden gerade geladen …', 'Loading apps …') }}
{{ $t('Keine App gefunden.', 'No apps found.') }}