@extends("front.layout.master") @section('title', __('staticwords.YourWishlist') . ' (' . $wishcount . ') | ') @section('body')

{{ __('staticwords.Wishlist') }}

{{ $wishcount }} {{ __('items saved') }} · {{ __('Saved as guest — login to keep across devices') }}

← {{ __('Continue shopping') }}
@if($wishcount > 0)
@foreach($data as $row) @if($row->type === 'simple') @php $sp = $row->simple; $imgPath = $sp->thumbnail ? url('images/simple_products/' . $sp->thumbnail) : url('images/no-image.png'); $price = $sp->offer_price > 0 ? $sp->offer_price : $sp->price; $compare = $sp->offer_price > 0 ? $sp->price : null; $proUrl = route('show.product', ['id' => $sp->id, 'slug' => $sp->slug]); $key = 'simple:' . $sp->id; @endphp
{{ $sp->product_name }}

{{ $sp->product_name }}

{!! price_format($price * $conversion_rate) !!} @if($compare){!! price_format($compare * $conversion_rate) !!}@endif
@csrf
@else @php $variant = $row->variant; $product = $variant->products; $imgPath = isset($variant->variantimages) ? url('variantimages/thumbnails/' . $variant->variantimages['main_image']) : url('images/no-image.png'); $proUrl = url('details/' . \Illuminate\Support\Str::slug($product->name, '-') . '/' . $product->id); $price = $variant->offer_price > 0 ? $variant->offer_price : $variant->price; $compare = $variant->offer_price > 0 ? $variant->price : null; @endphp
{{ $product->name }}

{{ $product->name }}

{!! price_format($price * $conversion_rate) !!} @if($compare){!! price_format($compare * $conversion_rate) !!}@endif
@csrf
@endif @endforeach
@else

{{ __('Your wishlist is empty') }}

{{ __('Save items you love so you can revisit them later.') }}

{{ __('Start Shopping') }} →
@endif
@endsection @section('script') @endsection