Files
fewo-stommer/resources/views/filament/pages/effective-settings.blade.php
T
LarsandClaude Opus 5.5 799869c6a4 v0.11 U1: Kanalmanager mit eigener Webseite und neuen Prozessparametern
- Eigene Webseite als Kanal eigener Art (channels.kind = website), nur zur
  Konfiguration: Webseiten-Anfragen bleiben direkt (A1) ohne Kanalbezug;
  der Eintrag nimmt an Sync, Export, Überwachung und Sperraufgaben nicht teil
  (active()/Property::channels() nur Portale, Feed nur für Portale).
- Neue Einstellungen im bestehenden ProcessSetting: Klärungsreservierung
  automatisch/Freigabe (15/180 min, 0 = keine), Rückfragemodus,
  Erinnerungen, Folgefragen, Erinnerungsabstand, Linkgültigkeit,
  Anschrift im Webformular verlangen (Standard: nein).
- „Kanäle“ in der einfachen Ansicht: Webseite und Portale an einer Stelle,
  Verweis auf „Ihre Standards“; „Wirksame Einstellungen“ mit Spalte
  „Eigene Webseite“ und Herkunft „Webseite“.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-03 12:52:50 +01:00

93 lines
7.2 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<x-filament-panels::page>
@php
$cell = 'padding:.4rem .5rem;border-bottom:1px solid rgba(128,128,128,.2);vertical-align:top';
$muted = 'color:#6b7280;font-size:.8rem';
$levels = [\App\Process\ProcessProfile::SYSTEM => 'Grundeinstellung', \App\Process\ProcessProfile::TENANT => 'Ihr Standard', \App\Process\ProcessProfile::PROPERTY => 'Wohnung', \App\Process\ProcessProfile::CHANNEL => 'Portal', \App\Process\ProcessProfile::WEBSITE => 'Webseite', \App\Process\ProcessProfile::CASE_TYPE => 'fest (A6)'];
@endphp
<x-filament::section heading="So lesen Sie diese Übersicht" collapsible collapsed>
<p style="font-size:.9rem">Jede Spalte ist ein Eingangsweg. Jede Zelle zeigt den Wert, der für einen <strong>neuen</strong> Vorgang auf diesem Weg gilt, und darunter, woher er kommt: Grundeinstellung → Ihr Standard (So arbeite ich) → Abweichung der Wohnung → Abweichung des Kanals (eigene Webseite bzw. Portal für Anfragen und feste Buchungen). Laufende Vorgänge behalten ihr beim Eingang festgehaltenes Profil – das zeigt der Abschnitt „Einen Vorgang prüfen“. Ändern lassen sich die Werte nur an ihrer Stelle (rechte Spalte).</p>
</x-filament::section>
@foreach ($this->matrix() as $block)
<x-filament::section :heading="$block['property']->name">
<div style="overflow-x:auto">
<table style="width:100%;border-collapse:collapse;font-size:.85rem">
<thead>
<tr>
<th style="{{ $cell }};text-align:left">Einstellung</th>
@foreach ($block['columns'] as $column)
<th style="{{ $cell }};text-align:left">{{ $column['label'] }}<div style="{{ $muted }}">Vorgangsart {{ strtoupper($column['profile']->caseType->value) }}</div></th>
@endforeach
<th style="{{ $cell }};text-align:left">Wo einstellen?</th>
</tr>
</thead>
<tbody>
@foreach ($this->settings() as $setting)
<tr>
<td style="{{ $cell }}">{{ $setting->question() }}</td>
@foreach ($block['columns'] as $column)
@php($source = $column['profile']->source($setting))
<td style="{{ $cell }}">
<span style="{{ in_array($source, [\App\Process\ProcessProfile::SYSTEM], true) ? '' : 'font-weight:600' }}">{{ $this->describe($setting, $column['profile']) }}</span>
<div style="{{ $muted }}">{{ $levels[$source] ?? $source }}</div>
</td>
@endforeach
<td style="{{ $cell }};{{ $muted }}">{{ \App\Filament\Pages\EffectiveSettings::where($setting) }}</td>
</tr>
@endforeach
<tr>
<td style="{{ $cell }}"><em>Daraus folgt: Antwort auf eine Anfrage</em></td>
@foreach ($block['columns'] as $column)
<td style="{{ $cell }}">{{ \App\Filament\Pages\EffectiveSettings::answer($column['profile']) }}</td>
@endforeach
<td style="{{ $cell }};{{ $muted }}">abgeleitet aus „Reservieren?“ (Paket 7)</td>
</tr>
</tbody>
</table>
</div>
@php($stay = \App\Filament\Pages\EffectiveSettings::stay($block['property']))
<p style="margin-top:.8rem;font-size:.85rem"><strong>Aufenthalt (gilt für jeden Eingangsweg dieser Wohnung):</strong> {{ $stay }}</p>
<p style="{{ $muted }}">Einstellen unter Wohnung › Aufenthalt vorbereiten und abschließen bzw. Preise (Kurabgabe). Im einzelnen Vorgang lassen sich Aufgaben ergänzen, erledigen, übergeben oder als „entfällt“ markieren.</p>
</x-filament::section>
@endforeach
<x-filament::section heading="Einen Vorgang prüfen">
<select wire:model.live="bookingId" style="width:100%;max-width:32rem;border:1px solid rgba(128,128,128,.4);border-radius:.375rem;padding:.4rem">
<option value="">– Vorgang wählen –</option>
@foreach ($this->cases() as $id => $label)
<option value="{{ $id }}">{{ $label }}</option>
@endforeach
</select>
@if ($booking = $this->booking())
@php($profile = $booking->process())
<p style="margin-top:.8rem;font-size:.9rem"><strong>{{ $booking->reference }}</strong> · {{ $booking->caseType()->value }} – {{ $booking->caseType()->getLabel() }} · {{ $booking->intake?->getLabel() }} · Profil festgehalten am {{ $profile->frozenAt ? \Carbon\CarbonImmutable::parse($profile->frozenAt)->format('d.m.Y H:i') : '–' }} ({{ \App\Process\ProcessProfile::sourceLabel($profile->origin) }})</p>
<table style="width:100%;border-collapse:collapse;font-size:.85rem;margin-top:.5rem">
@foreach ($this->settings() as $setting)
<tr>
<td style="{{ $cell }}">{{ $setting->question() }}</td>
<td style="{{ $cell }};font-weight:600">{{ $this->describe($setting, $profile) }}</td>
<td style="{{ $cell }};{{ $muted }}">{{ in_array($setting, \App\Process\ProcessProfile::LIVE, true) ? 'wird beim Dokument festgehalten' : \App\Process\ProcessProfile::sourceLabel($profile->source($setting)) }}</td>
</tr>
@endforeach
<tr>
<td style="{{ $cell }}">Bearbeitung dieses Vorgangs (wirksam)</td>
<td style="{{ $cell }};font-weight:600">{{ $booking->processingMode()->getLabel() }}</td>
<td style="{{ $cell }};{{ $muted }}">{{ $booking->processing_mode !== null ? 'für diesen Vorgang umgestellt' : 'aus dem Profil' }}</td>
</tr>
<tr>
<td style="{{ $cell }}">Dokument, das dieser Vorgang jetzt braucht</td>
<td style="{{ $cell }};font-weight:600">{{ \App\Enums\DocumentKind::forCase($booking)?->getLabel() ?? 'keines von uns (übernimmt das Portal)' }}</td>
<td style="{{ $cell }};{{ $muted }}">aus Vorgangsart und Stand</td>
</tr>
<tr>
<td style="{{ $cell }}">Aufenthalt abgeschlossen / kaufmännisch abgeschlossen</td>
<td style="{{ $cell }};font-weight:600">{{ $booking->status === \App\Enums\BookingStatus::Completed ? 'ja' : 'nein' }} / {{ $booking->settled_at ? 'ja ('.$booking->settled_at->format('d.m.Y').')' : 'nein' }}</td>
<td style="{{ $cell }};{{ $muted }}">{{ $booking->settled_at === null && in_array($booking->status, [\App\Enums\BookingStatus::Completed, \App\Enums\BookingStatus::Cancelled], true) ? implode(' ', \App\Process\CaseClosure::commercialPoints($booking)) : 'abgeleitet aus Aufgaben und Geld' }}</td>
</tr>
</table>
@endif
</x-filament::section>
</x-filament-panels::page>