@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'))
@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
@empty
@endforelse
@if ($enquiries->hasPages())
{{ session('status') }}
@endif
{{ 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 : '' }}
Open
@if ($enquiry->contact_url)
action === 'whatsapp') target="_blank" rel="noopener" @endif>Contact again
@endif
No enquiries yet
Calls and WhatsApp clicks you make while logged in will appear here.
search Browse listings
{{ $enquiries->links() }}
@endif