Estate & Letting Agents in Llanfihangel-y-Pennant, Gwynedd

Find Estate Agents in Llanfihangel-y-Pennant, Gwynedd
3 results
Welsh Property Services
3 active listings in Llanfihangel-y-Pennant, Gwynedd, Cymru / Wales
69 total
Cambrian House High Street, Tywyn, LL36 9AE
View Profile
Morris Marshall & Poole
1 active listing in Llanfihangel-y-Pennant, Gwynedd, Cymru / Wales
78 total
High Street, Tywyn, LL36 9AD
View Profile
Walter Lloyd Jones & Co.
1 active listing in Llanfihangel-y-Pennant, Gwynedd, Cymru / Wales
125 total
Bridge Street, Dolgellau, LL40 1AS
View Profile
initializeAllPremierCards() }); // Load detailed stats function function loadDetailedStats() { const button = document.getElementById('load-more-stats'); const statsContainer = document.getElementById('detailed-stats'); if (statsContainer.classList.contains('hidden')) { // Show loading state button.innerHTML = ` Loading... `; // Make AJAX call for detailed stats const location = 'Llanfihangel-y-Pennant, Gwynedd'; const agentType = ''; fetch(`/api/agents/detailed-stats?location=${encodeURIComponent(location)}&type=${agentType}`) .then(response => response.json()) .then(data => { // Build detailed stats HTML let statsHtml = '
'; // Property types breakdown if (data.propertyTypes && Object.keys(data.propertyTypes).length > 0) { statsHtml += `
Property Types
`; for (const [type, count] of Object.entries(data.propertyTypes)) { const percentage = Math.round((count / data.totalProperties) * 100); statsHtml += `
${type}: ${count.toLocaleString()} (${percentage}%)
`; } statsHtml += '
'; } // Price ranges if (data.priceRanges) { statsHtml += `
Price Ranges
Avg Sale Price: £${data.priceRanges.avgSalePrice?.toLocaleString() || 'N/A'}
Avg Rent PCM: £${data.priceRanges.avgRentPrice?.toLocaleString() || 'N/A'}
`; } // Top performing agents if (data.topAgents && data.topAgents.length > 0) { statsHtml += `
Top Agents
`; data.topAgents.slice(0, 3).forEach(agent => { statsHtml += `
${agent.name}: ${agent.property_count} props
`; }); statsHtml += '
'; } statsHtml += '
'; // Show stats statsContainer.innerHTML = statsHtml; statsContainer.classList.remove('hidden'); // Update button button.innerHTML = ` Hide Insights `; }) .catch(error => { // If API fails, show some calculated stats from existing data const agents = [{"core_branch_id":57705,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Welsh Property Services","email":"julie@welshpropertyservices.com","sales_phone_number":"01654 710500","address":"Cambrian House High Street,\r\nTywyn,\r\nLL36 9AE","postcode":"LL36 9AE","website_url":"http:\/\/www.welshpropertyservices.com","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/57705\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:57.000000Z","updated_at":"2026-01-20T19:59:33.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":57705,"agent_company_id":6983,"branch_location":"Tywyn","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000C02500FF945A10C0FA62EFC5174B4A40","agent_brand_id":7821,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Cambrian House High Street, Tywyn","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Welsh Property Services","branch_name":"Tywyn","lettings":false,"sales":true,"commercial":false,"h_email":"julie@welshpropertyservices.com","has_email":true,"h_phone":"01654 710500","has_phone":true,"resolved_brand_color":"#209d51","boundary_listing_count":"3","property_count":"69","latitude":52.586663,"longitude":-4.088459},{"core_branch_id":57704,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Morris Marshall \u0026 Poole","email":"tywyn@morrismarshall.co.uk","sales_phone_number":"01654 710388","address":"High Street,\r\nTywyn,\r\nLL36 9AD","postcode":"LL36 9AD","website_url":"https:\/\/www.morrismarshall.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/57704\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:57.000000Z","updated_at":"2026-01-20T19:59:33.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":57704,"agent_company_id":1618,"branch_location":"Tywyn","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000B5A338471D5D10C0663046240A4B4A40","agent_brand_id":2196,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"High Street, Tywyn","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Morris Marshall \u0026 Poole","branch_name":"Tywyn","lettings":false,"sales":true,"commercial":false,"h_email":"tywyn@morrismarshall.co.uk","has_email":true,"h_phone":"01654 710388","has_phone":true,"resolved_brand_color":"#c53032","boundary_listing_count":"1","property_count":"78","latitude":52.586247,"longitude":-4.090932},{"core_branch_id":57706,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Walter Lloyd Jones \u0026 Co.","email":"alun@walterlloydjones.co.uk","sales_phone_number":"01341 422278","address":"Bridge Street,\r\nDolgellau,\r\nLL40 1AS","postcode":"LL40 1AS","website_url":"http:\/\/www.walterlloydjones.co.uk","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/57706\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:57.000000Z","updated_at":"2026-01-20T19:57:40.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":57706,"agent_company_id":3216,"branch_location":"Dolgellau","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000E5B7E864A9150FC02043C70E2A5F4A40","agent_brand_id":3886,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Bridge Street, Dolgellau","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Walter Lloyd Jones \u0026 Co.","branch_name":"Dolgellau","lettings":false,"sales":true,"commercial":false,"h_email":"alun@walterlloydjones.co.uk","has_email":true,"h_phone":"01341 422278","has_phone":true,"resolved_brand_color":"#e2dc00","boundary_listing_count":"1","property_count":"125","latitude":52.743471,"longitude":-3.885577}]; let topAgents = []; agents.forEach(agent => { // Collect top agents if (agent.property_count > 0) { topAgents.push({ name: agent.name, property_count: agent.property_count }); } }); // Sort top agents topAgents.sort((a, b) => b.property_count - a.property_count); let statsHtml = '
'; // Show top agents if (topAgents.length > 0) { statsHtml += `
Top Performing Agents
`; topAgents.slice(0, 5).forEach(agent => { statsHtml += `
${agent.name}: ${agent.property_count} properties
`; }); statsHtml += '
'; } statsHtml += '
'; statsContainer.innerHTML = statsHtml; statsContainer.classList.remove('hidden'); button.innerHTML = ` Hide Insights `; }); } else { // Hide stats statsContainer.classList.add('hidden'); button.innerHTML = ` Load Detailed Insights `; } } // Open agent map function function openAgentMap(locationSlug) { // Use the floating view toggle button const mapBtn = document.getElementById('agent-view-map'); if (mapBtn) { mapBtn.click(); } else { // Fallback to old button const oldMapBtn = document.getElementById('view-map-btn'); if (oldMapBtn) { oldMapBtn.click(); } else { // Last resort - open map page window.location.href = `/agents/${locationSlug}/map`; } } }