product custom fields

This commit is contained in:
elvira
2026-09-23 17:53:23 +03:00
parent a4240b6474
commit 580adac33a
24 changed files with 670 additions and 12 deletions
@@ -4,7 +4,15 @@
<ul>
@foreach ($lines as $line)
<li>{{ $line->quantity }} &times; {{ $line->description }} — {{ $line->total?->formatted }}</li>
<li>
{{ $line->quantity }} &times; {{ $line->description }} — {{ $line->total?->formatted }}
{{-- Text answers only — photo answers are deliberately left out of emails. --}}
@foreach ($line->meta['custom_fields'] ?? [] as $field)
@if ($field['type'] !== 'file')
<br>{{ $field['label'] }}: {!! nl2br(e($field['value'])) !!}
@endif
@endforeach
</li>
@endforeach
</ul>