@include('frontend.partials.head', ['title' => 'Fily | Enquiry History']) @include('frontend.dashboard.partials.styles') @php $customerName = $customer?->name ?: 'Customer'; $typeLabels = [ 'job' => 'Job', 'rent' => 'Rental', 'hostel' => 'Hostel', 'service' => 'Service', ]; @endphp @include('frontend.partials.header')
@include('frontend.dashboard.customer.partials.hero', [ 'customer' => $customer, 'kicker' => 'Customer dashboard', 'title' => 'Enquiry history', 'description' => 'See every provider you contacted through call or WhatsApp.', 'actionUrl' => route('frontend.category-list'), 'actionIcon' => 'travel_explore', 'actionLabel' => 'Browse listings', ])
@include('frontend.dashboard.customer.partials.sidebar', ['customer' => $customer, 'active' => 'enquiries'])
@if (session('status')) @endif
@forelse ($enquiries as $enquiry) @php $providerName = $enquiry->provider_name ?: ($enquiry->provider?->business_name ?: ($enquiry->provider?->name ?: 'Provider')); $listingTitle = $enquiry->listing_title ?: 'Provider profile enquiry'; $listingUrl = $enquiry->listing_type && $enquiry->listing_id ? route('frontend.details', ['type' => $enquiry->listing_type, 'id' => $enquiry->listing_id]) : route('frontend.provider.public-profile', $enquiry->provider_id); @endphp
{{ $enquiry->action === 'whatsapp' ? 'forum' : 'call' }}
{{ ucfirst((string) $enquiry->action) }} @if ($enquiry->listing_type) {{ $typeLabels[$enquiry->listing_type] ?? ucfirst((string) $enquiry->listing_type) }} @endif {{ $enquiry->created_at?->format('d M Y, h:i A') }}
{{ $listingTitle }}
Contacted {{ $providerName }}{{ $enquiry->contact_number ? ' at '.$enquiry->contact_number : '' }}
@empty
forum

No enquiries yet

Calls and WhatsApp clicks you make while logged in will appear here.

search Browse listings
@endforelse @if ($enquiries->hasPages())
{{ $enquiries->links() }}
@endif
@include('frontend.partials.footer')