When viewing the schema, highlight Structural and non-Structural classes

This commit is contained in:
Deon George 2025-04-10 16:09:53 +10:00
parent 7eb5490ad7
commit e78368b4a2

View File

@ -2,9 +2,12 @@
<div class="col-12 col-xl-3">
<select id="objectclass" class="form-control">
<option value="-all-">-all-</option>
@foreach ($objectclasses as $o)
@foreach($objectclasses->groupBy(fn($item)=>$item->isStructural()) as $oo)
<optgroup label="{{ __($oo->first()->isStructural() ? 'Structural' : 'Auxillary') }} Object Class"></optgroup>
@foreach($oo as $o)
<option value="{{ $o->name_lc }}">{{ $o->name }}</option>
@endforeach
@endforeach
</select>
</div>