@if(!empty($locationDetailAPIdata['data']))
    <ul class="dropdown-menu" style="display:block; position:relative">
        @foreach($locationDetailAPIdata['data'] as $row)
            <li><i class="mdi mdi-map-marker"></i><a href="javascript:void(0);">{{ $row['name'] }}</a></li>
        @endforeach 
    </ul>
@else
    <ul class="dropdown-menu" style="display:block; position:relative">
        <li><i class="mdi mdi-map-marker"></i><a href="javascript:void(0);">No data found!</a></li>
    </ul>
@endif
