15 lines
550 B
PHP
Raw Normal View History

<!-- $o=Attribute::class -->
2024-01-09 23:28:17 +11:00
<x-attribute.layout :edit="$edit" :new="$new" :o="$o">
@foreach (old($o->name_lc,$o->values) as $value)
@if ($edit && ($value === NULL || (! $o->isStructural($value))))
<x-attribute.widget.objectclass :o="$o" :edit="$edit" :new="$new" :loop="$loop" :value="$value"/>
2024-01-09 23:28:17 +11:00
@else
{{ $value }}
@if ($o->isStructural($value))
<input type="hidden" name="{{ $o->name_lc }}[]" value="{{ $value }}">
<span class="float-end">@lang('structural')</span>
2024-01-09 23:28:17 +11:00
@endif
<br>
@endif
@endforeach
</x-attribute.layout>