<b class="{{request()->input('sort_by') === $key ? 'text-primary' : 'text-secondary'}}">{{$label}}</b>
<span class="ml-2 d-inline-flex align-items-baseline">
    <a href="{{ $route }}?{{queryLineExcept(['sort_by', 'sort_dir', 'page'])}}&sort_by={{$key}}&sort_dir=DESC" class="ml-1">
        <i class="fa fa-arrow-up {{request()->input('sort_by') === $key && request()->input('sort_dir') === 'DESC' ? '' : 'on-hover-opaque text-secondary'}}"></i>
    </a>
    <a href="{{ $route }}?{{queryLineExcept(['sort_by', 'sort_dir', 'page'])}}&sort_by={{$key}}&sort_dir=ASC" class="ml-2">
        <i class="fa fa-arrow-down {{request()->input('sort_by') === $key && request()->input('sort_dir') === 'ASC' ? '' : 'on-hover-opaque text-secondary'}}"></i>
    </a>
</span>