{{-- Listing Header --}}
{{-- Back Button --}}
{{-- Inquiries List --}}
Listing
{{ $listing->title ?? 'Listing #' . $listing->id }}
Total Inquiries
{{ $inquiries->count() }}
@forelse($inquiries as $inquiry)
@php $isHighlighted = $highlightId && $inquiry->id == $highlightId; @endphp
@empty
@endforelse
{{-- Column 1: Name & Contact (width 3) --}}
{{-- Column 2: Message (width 5) --}}
{{ $inquiry->first_name }} {{ $inquiry->last_name }}
@if($isHighlighted)
NEW
@endif
{{ $inquiry->phone }}
@if($inquiry->email)
{{ $inquiry->email }}
@endif
Message
{{-- 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'] }}
No inquiries yet for this listing.