@if(!count($matches))
    <span class="d-block no-suggest-items">No matches!</span>
@endif
<?php $activeSet = false; ?>
@foreach($matches as $match)
    <a native class="d-block suggest-item fdb-suggest text-nowrap {{ $activeSet ? '' : 'active'  }}" href="#"
       data-dam-concept-id="{{$match->dam_concept_id}}" data-dam-concept-id-typ="{{$match->dam_concept_id_typ}}">
        {{$match->dam_concept_id_desc}} <span class="text-sm">({{$match->dam_concept_id_typ == 6 ? 'ingredient' : ($match->dam_concept_id_typ == 1 ? 'allergen group' : 'medication')}})</span>
    </a>
    <?php $activeSet = true; ?>
@endforeach

