@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-med-name-id="{{$match->med_name_id}}">
        {{$match->med_name}}
    </a>
    <?php $activeSet = true; ?>
@endforeach

