V2.1: Kanalfähigkeiten, Ausführungsvarianten, Dokumentenentkopplung, Portalbestätigung
Modellwahl über Kanalfähigkeiten mit erklärten Einschränkungen, Abgleich alter Werte, Ausführungsvarianten je Modul, getrennte Vertrags-/Buchungsinformation, Warten auf die Portalbestätigung mit Eskalation und Wiederaufnahme (Fälle C und D getestet). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ef1635e59a
commit
8442d0a3d8
62 files changed
+1818
-69
No files matched your search
@@ -20,21 +20,53 @@
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (! $this->record->isWebsite())
|
||||
@php($capabilities = $this->capabilities())
|
||||
<x-filament::section heading="Was kann dieses Portal für Ihr Konto?" description="Davon hängt ab, welche Abläufe passen. Mit dem Speichern bestätigen Sie die hier gezeigten Angaben. Geben Sie nur an, was Sie wissen – „unbekannt“ sperrt nichts.">
|
||||
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(18rem,1fr));gap:.6rem">
|
||||
@foreach ($capabilities as $key => $capability)
|
||||
<label style="{{ $card }};font-size:.85rem">
|
||||
{{ \App\Process\ChannelCapabilities::definitions()[$key]['question'] }}
|
||||
<select wire:model.live="capabilityDraft.{{ $key }}" style="{{ $input }};display:block;margin-top:.3rem">
|
||||
<option value="1">ja</option><option value="0">nein</option><option value="">unbekannt</option>
|
||||
</select>
|
||||
<span style="{{ $muted }}">{{ $capability->sourceLabel() }}</span>
|
||||
</label>
|
||||
@endforeach
|
||||
</div>
|
||||
</x-filament::section>
|
||||
@endif
|
||||
|
||||
<x-filament::section :heading="$this->question()" :description="$draft['derived'] ? 'Noch nicht gewählt: abgeleitet aus Ihren bisherigen Einstellungen. Gespeichert wird erst, wenn Sie speichern.' : null">
|
||||
@if ($models === [])
|
||||
<p>Für diesen Kanal ist für diese Eingangsart kein Ablaufmodell freigegeben (Kanalprofil). Vorgänge folgen weiter dem aus den Einstellungen abgeleiteten Ablauf.</p>
|
||||
<p>Für diese Eingangsart gibt es keine Ablaufmodelle.</p>
|
||||
@endif
|
||||
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(16rem,1fr));gap:.6rem" role="radiogroup" aria-label="Ablaufmodell">
|
||||
@foreach ($models as $key => $candidate)
|
||||
<button type="button" role="radio" aria-checked="{{ $draft['model'] === $key ? 'true' : 'false' }}" wire:click="chooseModel('{{ $key }}')"
|
||||
style="{{ $card }};text-align:left;{{ $draft['model'] === $key ? 'border-color:rgb(var(--primary-600));box-shadow:0 0 0 1px rgb(var(--primary-600))' : '' }}">
|
||||
<strong>{{ $candidate::label() }}</strong>
|
||||
<span style="{{ $muted }}"> · {{ implode('/', array_map(fn ($type) => strtoupper($type->value), $candidate::caseTypes())) }}</span>
|
||||
<div style="font-size:.85rem;margin-top:.3rem">{{ $candidate::description() }}</div>
|
||||
</button>
|
||||
<div style="display:grid;grid-template-columns:repeat(auto-fit,minmax(18rem,1fr));gap:.6rem" role="radiogroup" aria-label="Ablaufmodell">
|
||||
@foreach ($models as $key => $option)
|
||||
@php($candidate = $option['model'])
|
||||
<div style="{{ $card }};{{ $draft['model'] === $key ? 'border-color:rgb(var(--primary-600));box-shadow:0 0 0 1px rgb(var(--primary-600))' : '' }};{{ $option['admissible'] ? '' : 'opacity:.85;background:rgba(128,128,128,.07)' }}">
|
||||
<button type="button" role="radio" aria-checked="{{ $draft['model'] === $key ? 'true' : 'false' }}" @disabled(! $option['admissible']) wire:click="chooseModel('{{ $key }}')" style="text-align:left;width:100%">
|
||||
<strong>{{ $candidate::label() }}</strong>
|
||||
<span style="{{ $muted }}"> · {{ implode('/', array_map(fn ($type) => strtoupper($type->value), $candidate::caseTypes())) }}</span>
|
||||
<div style="font-size:.85rem;margin-top:.3rem">{{ $candidate::description() }}</div>
|
||||
</button>
|
||||
@foreach ($option['restrictions'] as $restriction)
|
||||
<p style="color:#b45309;font-size:.8rem;margin-top:.4rem"><strong>Passt gerade nicht ({{ $restriction->kind }}):</strong> {{ $restriction->reason }}@if ($restriction->alternative) <br>Zulässig ist stattdessen: {{ $restriction->alternative }}.@endif @if ($restriction->change) <br>{{ $restriction->change }}.@endif</p>
|
||||
@endforeach
|
||||
@foreach ($option['hints'] as $hint)<p style="{{ $muted }};margin-top:.3rem">{{ $hint }}</p>@endforeach
|
||||
@if ($draft['model'] === $key && ! $option['admissible'])<p style="color:#b91c1c;font-size:.8rem;margin-top:.3rem">Dies ist Ihr bisheriger Ablauf. Er bleibt wirksam, bis Sie ein passendes Modell wählen oder die Fähigkeit oben ändern.</p>@endif
|
||||
</div>
|
||||
@endforeach
|
||||
</div>
|
||||
|
||||
@if ($conflicts = $this->conflicts())
|
||||
<div style="{{ $card }};margin-top:.8rem;border-color:#b45309">
|
||||
<strong>Bisherige Einstellungen widersprechen diesem Modell</strong>
|
||||
<ul style="font-size:.85rem;list-style:disc;padding-left:1.2rem">@foreach ($conflicts as $conflict)<li>{{ $conflict['text'] }}</li>@endforeach</ul>
|
||||
<label style="font-size:.85rem"><input type="checkbox" wire:model.live="acknowledge"> Ich bestätige: Diese bisherigen Einstellungen werden beim Speichern entfernt und im Verlauf des Kanals festgehalten.</label>
|
||||
</div>
|
||||
@endif
|
||||
|
||||
@if (count($model->variants()) > 1)
|
||||
<div style="margin-top:.8rem">
|
||||
<label style="font-size:.9rem">Variante
|
||||
|
||||
@@ -0,0 +1,24 @@
|
||||
{{-- Working draft (V2.1): short booking information, no contract, no payment instructions. --}}
|
||||
@php($portal = $booking->processChannel()?->name ?? 'dem Portal')
|
||||
<x-mail::message :site="$booking->website()" :message="$message ?? null">
|
||||
# Ihre Buchung der {{ $booking->property->name }}
|
||||
|
||||
Guten Tag {{ $booking->guest->full_name }},
|
||||
|
||||
wir haben Ihre Buchung über {{ $portal }} erhalten und freuen uns auf Ihren Besuch.
|
||||
|
||||
**Anreise:** {{ $booking->arrival->translatedFormat('l, d.m.Y') }}@if ($booking->property->check_in_time) ab {{ substr($booking->property->check_in_time, 0, 5) }} Uhr @endif<br>
|
||||
**Abreise:** {{ $booking->departure->translatedFormat('l, d.m.Y') }}@if ($booking->property->check_out_time) bis {{ substr($booking->property->check_out_time, 0, 5) }} Uhr @endif<br>
|
||||
@if ($booking->guests)
|
||||
**Personen:** {{ $booking->guests }}<br>
|
||||
@endif
|
||||
@if ($booking->portal_reference)
|
||||
**Buchungsnummer bei {{ $portal }}:** {{ $booking->portal_reference }}<br>
|
||||
@endif
|
||||
**Unsere Nummer:** {{ $booking->reference }}
|
||||
|
||||
Bei Fragen antworten Sie einfach auf diese E-Mail.
|
||||
|
||||
Herzliche Grüße<br>
|
||||
{{ config('fewo.owner.name') }}
|
||||
</x-mail::message>
|
||||
Reference in new issue
Block a user