Fix double id

This commit is contained in:
Visman 2023-04-18 21:33:32 +07:00
parent 7699db8f5d
commit 0c020783d4

View file

@ -13,9 +13,9 @@
@endif
@foreach ($setVal['fields'] as $key => $cur)
@if ('info' === $cur['type'])
<p id="id-{{ $cur['id'] or $key }}" class="f-yinfo"> @if ($cur['html']){!! $cur['value'] !!} @else{{ $cur['value'] }} @endif</p>
<p id="id-{{ $cur['id'] or $setKey.$key }}" class="f-yinfo"> @if ($cur['html']){!! $cur['value'] !!} @else{{ $cur['value'] }} @endif</p>
@elseif ('wrap' === $cur['type'])
<div id="id-{{ $cur['id'] or $key }}" @if ($cur['class']) class="f-wrap-{{ \implode(' f-wrap-', $cur['class']) }}" @endif>
<div id="id-{{ $cur['id'] or $setKey.$key }}" @if ($cur['class']) class="f-wrap-{{ \implode(' f-wrap-', $cur['class']) }}" @endif>
@elseif ('endwrap' === $cur['type'])
</div>
@else