@foreach($wishlists as $wishlist)
@if(!empty($sort))
@php
if ($gs->switch_highlight_currency) {
$highlight = $wishlist->firstCurrencyPrice();
$small = $wishlist->showPrice();
} else {
$highlight = $wishlist->showPrice();
$small = $wishlist->firstCurrencyPrice();
}
@endphp
@if($gs->is_rating == 1)
@endif
{{ $highlight }} {{ $small }}
@else
@php
if ($gs->switch_highlight_currency) {
$highlight = $wishlist->product->firstCurrencyPrice();
$small = $wishlist->product->showPrice();
} else {
$highlight = $wishlist->product->showPrice();
$small = $wishlist->product->firstCurrencyPrice();
}
@endphp
@if($gs->is_rating == 1)
@endif
{{ $highlight }} {{ $small }}
@endif
@endforeach
{{ $wishlists->appends(['sort' => $sort])->links() }}