@extends('storefront.layout') @section('title', 'Wishlist — ' . ($settings->company_name ?? 'Shop')) @section('content')
{{-- Nav tabs --}}
Profile Order History Wishlist
{{-- Empty state: rendered when the wishlist is empty, and also revealed by JS below when the last item is removed in-place (so no reload is needed). --}}

Your wishlist is empty.

Browse Products
@if(! $wishlists->isEmpty())
@foreach($wishlists as $entry) @php $product = $entry->product; @endphp @if($product)
@php $images = $product->images ?? []; $thumb = count($images) ? $images[0] : null; @endphp @if($thumb) {{ $product->name }} @else
@endif
{{ $product->name }} @if($product->category)

{{ $product->category->name }}

@endif

{{ $settings->currency ?? '$' }}{{ number_format($product->price, 2) }}

@endif @endforeach
@endif
@endsection