- app.js: Der Anfangsscan übergab das Dokument, das kein Element ist; HLS-Filme im Quelltext wurden nie angebunden. Vollbild findet sein Video auch neben dem Player. - Download und Ansicht heißen nach dem Anzeigetitel statt „laden.mp4“. - Mitgliederprofil: Name, E-Mail mit Bestätigung der neuen Adresse, Passwort, Rechnungsadresse (ADR-46). - Kleine Fußzeile mit Rechtlichem aus der CMS-Navigation. - Lizenzdetail nennt, dass Einzel-/Mehrfachlizenz nicht festgelegt ist (Funktion gibt es noch nicht). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
114 lines
7.3 KiB
PHP
114 lines
7.3 KiB
PHP
@extends('layouts.member')
|
|
|
|
@section('title', 'Profil')
|
|
@section('nav', 'konto')
|
|
|
|
{{--
|
|
Mitgliederprofil (ADR-46). Vier getrennte Blöcke mit je eigener Speicherhandlung: Name, E-Mail-Adresse, Passwort,
|
|
Rechnungsadresse. Die neue E-Mail-Adresse gilt erst nach Bestätigung; Adresse und Passwort verlangen das aktuelle Passwort.
|
|
--}}
|
|
@section('content')
|
|
@php
|
|
$user = auth()->user();
|
|
$field = fn (string $bag, string $name): ?string => $errors->getBag($bag)->first($name) ?: null;
|
|
@endphp
|
|
<x-member.hero kicker="Mein Konto" title="Profil">
|
|
Hier pflegst du deine Kontodaten. Dein Name und deine Adresse sind nicht öffentlich.
|
|
</x-member.hero>
|
|
|
|
<div class="mb-profile">
|
|
<section class="mb-side-card" aria-labelledby="p-name">
|
|
<h2 id="p-name">Name</h2>
|
|
<form class="mb-form" method="post" action="{{ route('member.profile.update') }}">
|
|
@csrf
|
|
<label class="ui-field">Name
|
|
<input class="ui-input" name="name" value="{{ old('name', $user->name) }}" required autocomplete="name" @if ($field('name', 'name')) aria-invalid="true" @endif>
|
|
@if ($field('name', 'name'))<span class="ui-field-error" role="alert">{{ $field('name', 'name') }}</span>@endif
|
|
</label>
|
|
<button class="button" type="submit">Namen speichern</button>
|
|
</form>
|
|
</section>
|
|
|
|
<section class="mb-side-card" aria-labelledby="p-email">
|
|
<h2 id="p-email">E-Mail-Adresse</h2>
|
|
<p class="mb-muted">Aktuell: <strong>{{ $user->email }}</strong></p>
|
|
@if (filled($user->pending_email))
|
|
<div class="mb-note" role="status">
|
|
<p>Wartet auf Bestätigung: <strong>{{ $user->pending_email }}</strong>. Wir haben einen Link dorthin geschickt. Bis du ihn öffnest, gilt weiter deine bisherige Adresse.</p>
|
|
<form method="post" action="{{ route('member.profile.email.cancel') }}">
|
|
@csrf
|
|
<button class="button button-quiet" type="submit">Änderung verwerfen</button>
|
|
</form>
|
|
</div>
|
|
@endif
|
|
<form class="mb-form" method="post" action="{{ route('member.profile.email') }}">
|
|
@csrf
|
|
<label class="ui-field">Neue E-Mail-Adresse
|
|
<input class="ui-input" type="email" name="email" value="{{ old('email') }}" required autocomplete="email" @if ($field('email', 'email')) aria-invalid="true" @endif>
|
|
@if ($field('email', 'email'))<span class="ui-field-error" role="alert">{{ $field('email', 'email') }}</span>@endif
|
|
</label>
|
|
<label class="ui-field">Aktuelles Passwort
|
|
<input class="ui-input" type="password" name="current_password" required autocomplete="current-password" @if ($field('email', 'current_password')) aria-invalid="true" @endif>
|
|
@if ($field('email', 'current_password'))<span class="ui-field-error" role="alert">{{ $field('email', 'current_password') }}</span>@endif
|
|
</label>
|
|
<button class="button" type="submit">Bestätigungslink senden</button>
|
|
</form>
|
|
</section>
|
|
|
|
<section class="mb-side-card" aria-labelledby="p-passwort">
|
|
<h2 id="p-passwort">Passwort</h2>
|
|
<form class="mb-form" method="post" action="{{ route('member.profile.password') }}">
|
|
@csrf
|
|
<label class="ui-field">Bisheriges Passwort
|
|
<input class="ui-input" type="password" name="current_password" required autocomplete="current-password" @if ($field('password', 'current_password')) aria-invalid="true" @endif>
|
|
@if ($field('password', 'current_password'))<span class="ui-field-error" role="alert">{{ $field('password', 'current_password') }}</span>@endif
|
|
</label>
|
|
<label class="ui-field">Neues Passwort
|
|
<input class="ui-input" type="password" name="password" required autocomplete="new-password" @if ($field('password', 'password')) aria-invalid="true" @endif>
|
|
@if ($field('password', 'password'))<span class="ui-field-error" role="alert">{{ $field('password', 'password') }}</span>@endif
|
|
</label>
|
|
<label class="ui-field">Neues Passwort wiederholen
|
|
<input class="ui-input" type="password" name="password_confirmation" required autocomplete="new-password">
|
|
</label>
|
|
<button class="button" type="submit">Passwort ändern</button>
|
|
</form>
|
|
</section>
|
|
|
|
<section class="mb-side-card" aria-labelledby="p-adresse">
|
|
<h2 id="p-adresse">Rechnungsadresse</h2>
|
|
<p class="mb-muted">Für Rechnungen zu deinen Lizenzen. Sie gehört zu deinem Konto als Lizenzinhaber.</p>
|
|
<form class="mb-form" method="post" action="{{ route('member.profile.address') }}">
|
|
@csrf
|
|
@foreach ([
|
|
'recipient' => ['Name oder Firma', 'name', true],
|
|
'line2' => ['Zusatz (optional)', 'address-line2', false],
|
|
'street' => ['Straße und Hausnummer', 'street-address', true],
|
|
] as $name => [$label, $autocomplete, $required])
|
|
<label class="ui-field">{{ $label }}
|
|
<input class="ui-input" name="{{ $name }}" value="{{ old($name, $address?->{$name}) }}" @required($required) autocomplete="{{ $autocomplete }}" @if ($field('address', $name)) aria-invalid="true" @endif>
|
|
@if ($field('address', $name))<span class="ui-field-error" role="alert">{{ $field('address', $name) }}</span>@endif
|
|
</label>
|
|
@endforeach
|
|
<div class="mb-form-row">
|
|
<label class="ui-field">PLZ
|
|
<input class="ui-input" name="postal_code" value="{{ old('postal_code', $address?->postal_code) }}" required autocomplete="postal-code" @if ($field('address', 'postal_code')) aria-invalid="true" @endif>
|
|
@if ($field('address', 'postal_code'))<span class="ui-field-error" role="alert">{{ $field('address', 'postal_code') }}</span>@endif
|
|
</label>
|
|
<label class="ui-field">Ort
|
|
<input class="ui-input" name="city" value="{{ old('city', $address?->city) }}" required autocomplete="address-level2" @if ($field('address', 'city')) aria-invalid="true" @endif>
|
|
@if ($field('address', 'city'))<span class="ui-field-error" role="alert">{{ $field('address', 'city') }}</span>@endif
|
|
</label>
|
|
</div>
|
|
<label class="ui-field">Land
|
|
<select class="ui-input" name="country" autocomplete="country">
|
|
@foreach ($countries as $code => $country)
|
|
<option value="{{ $code }}" @selected(old('country', $address?->country ?? 'DE') === $code)>{{ $country }}</option>
|
|
@endforeach
|
|
</select>
|
|
</label>
|
|
<button class="button" type="submit">Rechnungsadresse speichern</button>
|
|
</form>
|
|
</section>
|
|
</div>
|
|
@endsection
|