- PlayerPosition Enum (7 Handball-Positionen) mit Label/ShortLabel - Spielerstatistik pro Spiel (Tore, Würfe, TW-Paraden, Bemerkung) - Position-Dropdown in Spieler-Editor und Event-Stats-Formular - Statistik-Seite: TW zuerst, Trennlinie, Feldspieler, Position-Badges - Spielfeld-SVG mit Ampel-Performance (grün/gelb/rot) - Anklickbare Spieler im Spielfeld öffnen Detail-Modal - Fahrgemeinschaften (Anbieten, Zuordnen, Zurückziehen) - Übersetzungen in allen 6 Sprachen (de, en, pl, ru, ar, tr) - .gitignore für Laravel hinzugefügt - Demo-Daten mit Positionen und Statistiken Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
87 lines
4.1 KiB
PHP
Executable File
87 lines
4.1 KiB
PHP
Executable File
<!DOCTYPE html>
|
|
<html lang="{{ app()->getLocale() }}" dir="{{ app()->getLocale() === 'ar' ? 'rtl' : 'ltr' }}">
|
|
<head>
|
|
<meta charset="UTF-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
|
|
<title>{{ $title ?? \App\Models\Setting::get('app_name', config('app.name')) }}</title>
|
|
<script src="https://cdn.tailwindcss.com"></script>
|
|
<script defer src="https://cdn.jsdelivr.net/npm/alpinejs@3.14.9/dist/cdn.min.js" integrity="sha384-9Ax3MmS9AClxJyd5/zafcXXjxmwFhZCdsT6HJoJjarvCaAkJlk5QDzjLJm+Wdx5F" crossorigin="anonymous"></script>
|
|
@php $favicon = \App\Models\Setting::get('app_favicon'); @endphp
|
|
@if ($favicon)
|
|
<link rel="icon" href="{{ asset('storage/' . $favicon) }}">
|
|
@else
|
|
<link rel="icon" href="{{ asset('favicon.ico') }}">
|
|
@endif
|
|
{{-- PWA --}}
|
|
<link rel="manifest" href="/manifest.json">
|
|
<meta name="theme-color" content="#1f2937">
|
|
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
<meta name="apple-mobile-web-app-title" content="SG Wölfe">
|
|
<link rel="apple-touch-icon" href="/images/apple-touch-icon.png">
|
|
</head>
|
|
<body class="min-h-screen bg-gray-100 flex flex-col">
|
|
<main class="flex-1 flex items-center justify-center px-4 py-12">
|
|
<div class="w-full max-w-md">
|
|
<div class="text-center mb-8">
|
|
@php $logoLogin = \App\Models\Setting::get('app_logo_login'); @endphp
|
|
<a href="{{ auth()->check() ? route('dashboard') : route('login') }}">
|
|
<img src="{{ $logoLogin ? asset('storage/' . $logoLogin) : asset('images/logo_sg_woelfe.png') }}" alt="Logo" class="mx-auto h-24 mb-3 object-contain">
|
|
</a>
|
|
<h1 class="text-2xl font-bold text-gray-900">{{ \App\Models\Setting::get('app_name', config('app.name')) }}</h1>
|
|
@php $slogan = \App\Models\Setting::get('app_slogan'); @endphp
|
|
@if ($slogan)
|
|
<div class="text-sm text-gray-500 mt-1">{!! app(\App\Services\HtmlSanitizerService::class)->sanitize($slogan) !!}</div>
|
|
@endif
|
|
</div>
|
|
|
|
@if (session('error'))
|
|
<x-flash-message type="error" :message="session('error')" />
|
|
@endif
|
|
|
|
@if (session('success'))
|
|
<x-flash-message type="success" :message="session('success')" />
|
|
@endif
|
|
|
|
<div class="bg-white rounded-lg shadow-md p-6">
|
|
{{ $slot }}
|
|
</div>
|
|
</div>
|
|
</main>
|
|
|
|
<footer class="text-center py-4 text-sm text-gray-500">
|
|
<div class="mb-2">
|
|
<a href="/impressum" class="hover:underline">{{ __('ui.footer_impressum') }}</a>
|
|
<span class="mx-2">|</span>
|
|
<a href="/datenschutz" class="hover:underline">{{ __('ui.footer_privacy') }}</a>
|
|
</div>
|
|
@php
|
|
$flags = ['de' => "\u{1F1E9}\u{1F1EA}", 'en' => "\u{1F1EC}\u{1F1E7}", 'pl' => "\u{1F1F5}\u{1F1F1}", 'ru' => "\u{1F1F7}\u{1F1FA}", 'ar' => "\u{1F1F8}\u{1F1E6}", 'tr' => "\u{1F1F9}\u{1F1F7}"];
|
|
@endphp
|
|
<div class="flex justify-center gap-2">
|
|
@foreach ($flags as $code => $flag)
|
|
<form method="POST" action="{{ route('locale.switch') }}" class="inline">
|
|
@csrf
|
|
<input type="hidden" name="locale" value="{{ $code }}">
|
|
<button type="submit"
|
|
class="text-xl leading-none transition-all {{ $code === app()->getLocale() ? 'scale-110' : 'opacity-50 hover:opacity-80' }}"
|
|
title="{{ __('ui.locales.' . $code) }}">
|
|
{{ $flag }}
|
|
</button>
|
|
</form>
|
|
@endforeach
|
|
</div>
|
|
</footer>
|
|
|
|
{{-- Service Worker --}}
|
|
<script>
|
|
if ('serviceWorker' in navigator) {
|
|
window.addEventListener('load', () => {
|
|
navigator.serviceWorker.register('/sw.js', { scope: '/' })
|
|
.catch((err) => { console.error('SW:', err); });
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|