@include('Partials.sidebar')
@include('Partials.header')

User Wishlists @if(isset($currentTenant)) {{ $currentTenant->name ?? 'Tenant' }} @endif

Wishlist items saved by {{ $user->name ?? 'User' }} @if(isset($currentTenant)) • Currency: {{ $currency ?? '₹' }} @endif

  1. ›
  2. Wishlists
  3. ›
  4. User Details
{{-- User Info Card --}}
{{ strtoupper(substr($user->name ?? 'U', 0, 1)) }}

{{ $user->name ?? 'N/A' }}

{{ $user->email ?? 'No email' }}
{{ $user->phone ?? 'No phone' }}
@if($user->role) {{ $user->role }} @endif
{{ $wishlists->total() ?? 0 }}
Total Wishlists
{{-- Wishlists Table --}}
Wishlist Items ({{ $wishlists->total() ?? 0 }})
Back to Dashboard
@forelse($wishlists ?? [] as $index => $w) @php $liveStatus = $w->plot?->status ?? null; $isAvail = strtolower($liveStatus ?? '') === 'available'; $wasBooked = $liveStatus && strtolower($liveStatus) === 'booked'; $tenantParam = $tenantSlug ?? request()->route('tenant'); @endphp @empty @endforelse
# Unit Plot Type Block / Section Price Live Status Added On Action
{{ $wishlists->firstItem() + $index }} Unit {{ $w->plot_number }} {{ $w->plot_type }}
@if($w->block) Block {{ $w->block }} @endif @if($w->section) • {{ $w->section }} @endif
@if($w->price) {{ $currency ?? '₹' }}{{ number_format((float)$w->price, 0) }} @else — @endif @if($liveStatus) {{ $liveStatus }} @if($wasBooked)
Unit taken!
@endif @else Unknown @endif
{{ $w->created_at->format('d M Y') }}
{{ $w->created_at->format('H:i') }}
{{-- WhatsApp nudge --}} @if($isAvail && $w->phone) @endif {{-- View plot details --}} @if($w->plot_id) @endif {{-- Delete button --}}
@csrf @method('DELETE')

No wishlist items found for this user.
@if(isset($wishlists) && ($wishlists->hasPages() || $wishlists->total() > 0)) @endif
@include('Partials.footer') @push('styles') @endpush