onclick="{{ (isset($favorite)) ? 'removeFavorite' : 'addFavorite'}}({{$product->id}})"
{{ $var === "hello" ? "Hi" : ($var ==="howdie ? "how" : "Goodbye") }}
<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>