@extends('provider.layout') @section('title', 'Property Inquiries') @section('content')

Property Inquiries

Messages from potential buyers/tenants

@if($conversations->isEmpty())

No inquiries yet

When customers contact you about properties, they'll appear here.

@else
@foreach($conversations as $conv)
{{ strtoupper(substr($conv->sender->name ?? 'U', 0, 1)) }}
{{ $conv->sender->name ?? 'Customer' }} @if($conv->messages()->where('is_read', false)->where('sender_id', '!=', auth()->id())->exists()) New @endif
{{ $conv->subject ?? 'Property Inquiry' }}
{{ $conv->last_message_at ? $conv->last_message_at->diffForHumans() : '' }}
Reply
@endforeach
{{ $conversations->links() }}
@endif @endsection