@php $down_fill = 'lightgray'; $up_fill = 'lightgray'; $attribute = $attribute ?? ''; $label = $label ?? ''; if(request()->query('sort') == $attribute) { $up_fill = 'black'; } if(request()->query('sort') == '-'.$attribute) { $down_fill = 'black'; } @endphp
@if (request()->query('sort') == $attribute) {{ __($label) }} @else {{ __($label) }} @endif