Laravel Blade taquigrafía si
<form action="?" method="get" id="sort_form">
@foreach($data['sorts'] as $key=> $sort)
<th>
<a href="{{ route("admin.review.index") }}?{{ $sort['table'] }}={{ (!is_null(request()->get($sort['table'])) && isset($sort['table']) && request()->get($sort['table']) == "desc") ? "asc" : "desc"}}">
{{ $sort['name'] }}
<i class="bi bi-sort-{{ request()->get($sort['table']) == "asc"?"down":"up"}}"></i>
</a>
</th>
@endforeach
</form>
Shadow