{{-- Listing Header --}}

Listing

{{ $listing->title ?? 'Listing #' . $listing->id }}

Total Inquiries

{{ $inquiries->count() }}

{{-- Back Button --}} {{-- Inquiries List --}}
@forelse($inquiries as $inquiry) @php $isHighlighted = $highlightId && $inquiry->id == $highlightId; @endphp
{{-- Column 1: Name & Contact (width 3) --}}
{{ $inquiry->first_name }} {{ $inquiry->last_name }} @if($isHighlighted) NEW @endif
{{ $inquiry->phone }}
@if($inquiry->email)
{{ $inquiry->email }}
@endif
{{-- Column 2: Message (width 5) --}}
Message
"{{ $inquiry->message ?? 'Confirm availability' }}"
{{-- Column 3: Received & Clickable Status (width 3) --}}
Received
{{ $inquiry->created_at->format('M d, Y') }}
@php $statusMap = [ 'pending' => ['pill' => 'pill-pending', 'dot' => 'dot-pending', 'label' => 'Pending', 'next' => 'contacted'], 'contacted' => ['pill' => 'pill-contacted', 'dot' => 'dot-contacted', 'label' => 'Contacted', 'next' => 'sold'], 'sold' => ['pill' => 'pill-na', 'dot' => 'dot-na', 'label' => 'Sold', 'next' => 'pending'], ]; $s = $statusMap[$inquiry->status] ?? $statusMap['pending']; @endphp
{{-- Clickable Pill (No Dropdown) --}} {{ $s['label'] }}
@empty

No inquiries yet for this listing.

@endforelse