Baue die Verwaltung Kommunikation, die öffentliche Anfrageschnittstelle und das CMS-Widget Anfrage
Anliegen, Feldkatalog, Feldgruppen, Anfragevorlagen mit Fassungen, Anfrage-Einstiege, Posteingang mit Status und Notizen, Einstellungen mit Empfängern. Das Widget speichert nur die Kennung eines veröffentlichten Einstiegs; Formular, Bedingungen und Annahme kommen zur Laufzeit vom Server (Kompaktformular und mehrstufiger Dialog aus derselben Beschreibung). Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
2ee1fc9866
commit
c6a8167601
45 files changed
+5415
No files matched your search
@@ -0,0 +1,27 @@
|
||||
@php
|
||||
/** @var \App\Domain\Communication\Inquiry $record */
|
||||
$record = $getRecord();
|
||||
$answers = collect($record->answers ?? []);
|
||||
$steps = $answers->groupBy(fn ($answer) => $answer['step'] ?? '');
|
||||
@endphp
|
||||
@if ($answers->isEmpty())
|
||||
<p class="text-sm text-gray-500">Es wurden keine Antworten gespeichert.</p>
|
||||
@else
|
||||
<div style="display: grid; gap: 1.25rem;">
|
||||
@foreach ($steps as $step => $stepAnswers)
|
||||
@foreach ($stepAnswers->groupBy(fn ($answer) => $answer['group'] ?? '') as $group => $groupAnswers)
|
||||
<section aria-label="{{ trim($step.' '.$group) ?: 'Antworten' }}">
|
||||
@if ($group !== '' || $step !== '')
|
||||
<h3 class="text-sm font-semibold text-gray-700" style="margin-bottom: .25rem;">{{ $step }}@if ($group !== '' && $group !== null) · {{ $group }}@endif</h3>
|
||||
@endif
|
||||
<dl style="display: grid; grid-template-columns: minmax(10rem, 18rem) 1fr; gap: .25rem 1rem; margin: 0;">
|
||||
@foreach ($groupAnswers as $answer)
|
||||
<dt class="text-sm text-gray-600">{{ $answer['label'] }}</dt>
|
||||
<dd style="margin: 0; white-space: pre-line;">{{ $answer['display'] }}</dd>
|
||||
@endforeach
|
||||
</dl>
|
||||
</section>
|
||||
@endforeach
|
||||
@endforeach
|
||||
</div>
|
||||
@endif
|
||||
Reference in new issue
Block a user