Files
fewo-stommer/resources/views/filament/pages/effective-settings.blade.php
T
LarsandClaude Opus 5.5 3bcfc09417
Deploy FeWo mit PipelineManager / deploy (push) Successful in 4m44s
Pakete 8, 5 und 6: Beträge und Zahlungen, Ändern und Stornieren, A6 im Vorgang
- Paket 8: Zahlungsarten (Gast an uns, laut Portal, Auszahlung, Erstattung),
  Portalbeträge als Angaben mit Quelle, Übersicht nach Zuständigkeit (R09).
- Paket 5: Ändern mit Folgenvorschau, vereinbart oder dem Gast vorgeschlagen
  (signierter Link), ein Stornoweg mit Grund und Erstattung, Portalstorno erst
  nach Bestätigung.
- Paket 6: eigene Nutzung, Besuch und Sperre als Vorgang mit Kurabgabe und
  Aufenthaltsbestätigung; Bestandsübernahme der Sperren mit identischem Export.
- Wirksame Einstellungen (Expertenansicht), Abnahmekatalog T01–T14, Ergebnis-,
  Abnahme- und Konfigurationsdokument.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 22:16:47 +01:00

73 lines
5.1 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::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 Portals für Anfragen bzw. 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
</tbody>
</table>
</div>
</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>
</table>
@endif
</x-filament::section>
</x-filament-panels::page>