@php $tagList=$links->groupBy('tag')->toArray(); @endphp
@php $abandonList=[]; @endphp
@php $tagInx=1; @endphp
@foreach($tagList as $tag=>$items)
@if ($tag=='放弃')
@php $abandonList[$tag]=$items; @endphp
@continue
@endif
@php $tagInx++@endphp
@endforeach
{{--放弃--}}
@foreach($abandonList as $tag=>$items)
@endforeach