Estate & Letting Agents in Llanbradach and Pwllypant, Caerphilly

Find Estate Agents in Llanbradach and Pwllypant, Caerphilly
14 results
Tauk
Tauk

Covering Nationwide

Lettings Sales
3 active listings in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
2,148 total
Covering Nationwide
View Featured Profile
Flying Keys
Flying Keys

Newport

Sales
2 active listings in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
223 total
107 High Street Blackwood NP12 1AD
View Featured Profile
Peter Alan

Caerphilly

Lettings Sales
8 active listings in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
132 total
The Twyn, Caerphilly, CF83 1JL
View Profile
Aktons

Caerphilly

Sales
4 active listings in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
46 total
60 Cardiff Road, Caerphilly, CF83 1JQ
View Profile
Darlows

Caerphilly

Sales
4 active listings in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
57 total
30 Cardiff Road, Caerphilly, CF83 1JP
View Profile
Leanne Kent Property
4 active listings in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
82 total
Britannia House Caerphilly Business Park, Caerphilly, CF83 3GG
View Profile
Lucas Estates & Rentals

Ystrad Mynach

Sales
4 active listings in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
159 total
22 Penallta Road, Ystrad Mynach, CF82 7AP
View Profile
Mel John Estate Agent

Caerphilly

Sales
4 active listings in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
46 total
Caerphilly
View Profile
Wayne Lewis - Property Expert
4 active listings in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
83 total
Caerphilly
View Profile
Diamonds

Caerphilly

Sales
3 active listings in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
52 total
1 St. Fagans Street, Caerphilly, CF83 1FZ
Watkins Estate Agents

Caerphilly

Sales
2 active listings in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
59 total
Britannia House Caerphilly Business Park, Van Road, Caerphilly, CF83 3GG
View Profile
Yopa

Nationwide

Sales
2 active listings in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
7,222 total
Meridian House Wheatfield Way Hinckley LE10 1YG
View Profile
Caerphilly Lettings

Caerphilly

Lettings
1 active listing in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
6 total
Unit BU4, Castle Court Shopping Centre, Caerphilly, CF83 1NU
South Wales Property Group
1 active listing in Llanbradach and Pwllypant, Caerphilly, Cymru / Wales
12 total
Unit BU4 Castle Court Shopping Centre, Cwrt-Y-Castell, Caerphilly, CF83 1NU
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 = 'Llanbradach and Pwllypant, Caerphilly'; 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":67542,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Tauk","email":null,"sales_phone_number":"020 4530 6761","address":"Covering Nationwide","postcode":null,"website_url":null,"description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/67542\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:23:18.000000Z","updated_at":"2026-01-16T23:13:55.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"live","assigned_user_id":null,"id":67542,"agent_company_id":4769,"branch_location":"Covering Nationwide","lettings_phone_number":"07403 937217","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":true,"geopoint":"0101000020E6100000750305DEC9A7BFBFA77A32FFE8C14940","agent_brand_id":5522,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":null,"has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Tauk","branch_name":"Covering Nationwide","lettings":true,"sales":true,"commercial":false,"h_email":null,"has_email":false,"h_phone":"020 4530 6761","has_phone":true,"resolved_brand_color":"#e0e0de","boundary_listing_count":"3","property_count":"2148","latitude":51.514923,"longitude":-0.123654},{"core_branch_id":60003,"verification_status":"verified","verified_at":"2026-01-14T14:32:30.000000Z","verified_by":null,"verification_notes":null,"name":"Flying Keys","email":"sales@flyingkeys.co.uk","sales_phone_number":null,"address":"107\r\nHigh Street\r\nBlackwood\r\nNP12 1AD","postcode":"NP12 1AD","website_url":"https:\/\/www.flyingkeys.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\/60003\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:12.000000Z","updated_at":"2026-01-20T19:55:32.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"live","assigned_user_id":null,"id":60003,"agent_company_id":8377,"branch_location":"Newport","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":true,"geopoint":"0101000020E610000005888219539009C0DBE044F46BD54940","agent_brand_id":9247,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"107, High Street, Blackwood","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Flying Keys","branch_name":"Newport","lettings":false,"sales":true,"commercial":false,"h_email":"sales@flyingkeys.co.uk","has_email":true,"h_phone":null,"has_phone":false,"resolved_brand_color":"#510e74","boundary_listing_count":"2","property_count":"223","latitude":51.667357,"longitude":-3.195471},{"core_branch_id":52329,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Peter Alan","email":"caerphilly@peteralan.co.uk","sales_phone_number":"029 2086 7611","address":"The Twyn,\r\nCaerphilly,\r\nCF83 1JL","postcode":"CF83 1JL","website_url":"https:\/\/www.peteralan.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\/52329\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:59.000000Z","updated_at":"2026-01-20T19:55:55.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":52329,"agent_company_id":157,"branch_location":"Caerphilly","lettings_phone_number":"029 2086 7611","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000007B8505F703BE09C03D1059A489C94940","agent_brand_id":389,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"The Twyn, Caerphilly","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Peter Alan","branch_name":"Caerphilly","lettings":true,"sales":true,"commercial":false,"h_email":"caerphilly@peteralan.co.uk","has_email":true,"h_phone":"029 2086 7611","has_phone":true,"resolved_brand_color":"#0eae73","boundary_listing_count":"8","property_count":"132","latitude":51.574513,"longitude":-3.217781},{"core_branch_id":52331,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Aktons","email":"caerphilly@aktons.co.uk","sales_phone_number":"029 2088 1441","address":"60 Cardiff Road,\r\nCaerphilly,\r\nCF83 1JQ","postcode":"CF83 1JQ","website_url":"https:\/\/www.aktons.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\/52331\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:59.000000Z","updated_at":"2026-01-20T19:52:45.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":52331,"agent_company_id":390,"branch_location":"Caerphilly","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000DA01D71533C209C083E0F1ED5DC94940","agent_brand_id":746,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"60 Cardiff Road, Caerphilly","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Aktons","branch_name":"Caerphilly","lettings":false,"sales":true,"commercial":false,"h_email":"caerphilly@aktons.co.uk","has_email":true,"h_phone":"029 2088 1441","has_phone":true,"resolved_brand_color":"#fe0540","boundary_listing_count":"4","property_count":"46","latitude":51.573179,"longitude":-3.219824},{"core_branch_id":52330,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Darlows","email":"dawn.powell@darlows.co.uk","sales_phone_number":"029 2088 8555","address":"30 Cardiff Road,\r\nCaerphilly,\r\nCF83 1JP","postcode":"CF83 1JP","website_url":"https:\/\/www.darlows.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\/52330\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:59.000000Z","updated_at":"2026-01-20T19:59:27.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":52330,"agent_company_id":163,"branch_location":"Caerphilly","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000029B4ACFBC7C209C061FD9FC37CC94940","agent_brand_id":402,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"30 Cardiff Road, Caerphilly","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Darlows","branch_name":"Caerphilly","lettings":false,"sales":true,"commercial":false,"h_email":"dawn.powell@darlows.co.uk","has_email":true,"h_phone":"029 2088 8555","has_phone":true,"resolved_brand_color":"#293372","boundary_listing_count":"4","property_count":"57","latitude":51.57412,"longitude":-3.220108},{"core_branch_id":52336,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Leanne Kent Property","email":"hello@leannekentproperty.co.uk","sales_phone_number":"029 2011 8578","address":"Britannia House\r\nCaerphilly Business Park,\r\nCaerphilly,\r\nCF83 3GG","postcode":"CF83 3GG","website_url":"https:\/\/leannekentproperty.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\/52336\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:15:00.000000Z","updated_at":"2026-01-20T19:55:55.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":52336,"agent_company_id":1770,"branch_location":"Cardiff","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000250516C094A109C0DF3653211EC94940","agent_brand_id":2358,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Britannia House, Caerphilly Business Park, Caerphilly","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Leanne Kent Property","branch_name":"Cardiff","lettings":false,"sales":true,"commercial":false,"h_email":"hello@leannekentproperty.co.uk","has_email":true,"h_phone":"029 2011 8578","has_phone":true,"resolved_brand_color":"#142336","boundary_listing_count":"4","property_count":"82","latitude":51.571232,"longitude":-3.203897},{"core_branch_id":52327,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Lucas Estates \u0026 Rentals","email":"enquiries.lt@btconnect.com","sales_phone_number":"01443 862862","address":"22 Penallta Road,\r\nYstrad Mynach,\r\nCF82 7AP","postcode":"CF82 7AP","website_url":"http:\/\/www.lucasestates.net","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/52327\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:59.000000Z","updated_at":"2026-01-20T19:52:45.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":52327,"agent_company_id":7025,"branch_location":"Ystrad Mynach","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000FD84B35BCBE409C071E7C2482FD24940","agent_brand_id":7864,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"22 Penallta Road, Ystrad Mynach","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Lucas Estates \u0026 Rentals","branch_name":"Ystrad Mynach","lettings":false,"sales":true,"commercial":false,"h_email":"enquiries.lt@btconnect.com","has_email":true,"h_phone":"01443 862862","has_phone":true,"resolved_brand_color":"#284b87","boundary_listing_count":"4","property_count":"159","latitude":51.642068,"longitude":-3.236716},{"core_branch_id":67323,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Mel John Estate Agent","email":"melanie.john@meljohnestateagent.co.uk","sales_phone_number":"029 2086 1991","address":"Caerphilly\r\n","postcode":null,"website_url":"https:\/\/meljohnestateagent.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\/67323\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:23:11.000000Z","updated_at":"2025-12-09T23:22:53.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":67323,"agent_company_id":1771,"branch_location":"Caerphilly","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":null,"agent_brand_id":2359,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":null,"has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Mel John Estate Agent","branch_name":"Caerphilly","lettings":false,"sales":true,"commercial":false,"h_email":"melanie.john@meljohnestateagent.co.uk","has_email":true,"h_phone":"029 2086 1991","has_phone":true,"resolved_brand_color":"#c59953","boundary_listing_count":"4","property_count":"46","latitude":null,"longitude":null},{"core_branch_id":67602,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Wayne Lewis - Property Expert","email":"wayne@wlpe.co.uk","sales_phone_number":"029 2077 7444","address":"Caerphilly","postcode":null,"website_url":"http:\/\/www.wlpe.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\/67602\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:23:20.000000Z","updated_at":"2025-12-12T07:56:27.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":67602,"agent_company_id":1774,"branch_location":"Cardiff","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000F5824F73F2C209C03AE97DE36BC94940","agent_brand_id":2362,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":null,"has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Wayne Lewis - Property Expert","branch_name":"Cardiff","lettings":false,"sales":true,"commercial":false,"h_email":"wayne@wlpe.co.uk","has_email":true,"h_phone":"029 2077 7444","has_phone":true,"resolved_brand_color":"#e1b030","boundary_listing_count":"4","property_count":"83","latitude":51.573605,"longitude":-3.220189},{"core_branch_id":52328,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Diamonds","email":"caerphilly@diamonds-salesandlettings.co.uk","sales_phone_number":null,"address":"1 St. Fagans Street,\r\nCaerphilly,\r\nCF83 1FZ","postcode":"CF83 1FZ","website_url":"http:\/\/www.diamonds-salesandlettings.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\/52328\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:59.000000Z","updated_at":"2026-01-20T19:52:45.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":52328,"agent_company_id":1769,"branch_location":"Caerphilly","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000467A51BB5FC509C022DE3AFF76C94940","agent_brand_id":2357,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"1 St. Fagans Street, Caerphilly","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Diamonds","branch_name":"Caerphilly","lettings":false,"sales":true,"commercial":false,"h_email":"caerphilly@diamonds-salesandlettings.co.uk","has_email":true,"h_phone":null,"has_phone":false,"resolved_brand_color":"#e62314","boundary_listing_count":"3","property_count":"52","latitude":51.573944,"longitude":-3.221374},{"core_branch_id":52337,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Watkins Estate Agents","email":"Hello@watkinsestateagents.co.uk","sales_phone_number":"01443 244584","address":"Britannia House\r\nCaerphilly Business Park,\r\nVan Road,\r\nCaerphilly,\r\nCF83 3GG","postcode":"CF83 3GG","website_url":"https:\/\/www.watkinsestateagents.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\/52337\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:15:00.000000Z","updated_at":"2026-01-20T19:55:55.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":52337,"agent_company_id":1773,"branch_location":"Caerphilly","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000250516C094A109C0DF3653211EC94940","agent_brand_id":2361,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Britannia House, Caerphilly Business Park, Van Road, Caerphilly","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Watkins Estate Agents","branch_name":"Caerphilly","lettings":false,"sales":true,"commercial":false,"h_email":"Hello@watkinsestateagents.co.uk","has_email":true,"h_phone":"01443 244584","has_phone":true,"resolved_brand_color":"#13469c","boundary_listing_count":"2","property_count":"59","latitude":51.571232,"longitude":-3.203897},{"core_branch_id":57439,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Yopa","email":"aimee.boston@yopa.co.uk","sales_phone_number":"01923 381187","address":"Meridian House\r\nWheatfield Way\r\nHinckley\r\nLE10 1YG","postcode":"LE10 1YG","website_url":"https:\/\/www.yopa.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\/57439\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:48.000000Z","updated_at":"2026-01-20T19:57:00.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":57439,"agent_company_id":8351,"branch_location":"Nationwide","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000029EB3713D305F6BFF52A323A20474A40","agent_brand_id":9221,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Meridian House, Wheatfield Way, Hinckley","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Yopa","branch_name":"Nationwide","lettings":false,"sales":true,"commercial":false,"h_email":"aimee.boston@yopa.co.uk","has_email":true,"h_phone":"01923 381187","has_phone":true,"resolved_brand_color":"#56c5cd","boundary_listing_count":"2","property_count":"7222","latitude":52.555671,"longitude":-1.376422},{"core_branch_id":52332,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Caerphilly Lettings","email":null,"sales_phone_number":null,"address":"Unit BU4, \r\nCastle Court Shopping Centre,\r\nCaerphilly,\r\nCF83 1NU","postcode":"CF83 1NU","website_url":null,"description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/52332\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:59.000000Z","updated_at":"2026-01-20T19:59:27.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":52332,"agent_company_id":1768,"branch_location":"Caerphilly","lettings_phone_number":"029 2120 3991","is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000A10F96B1A1BB09C00D1D3BA8C4C94940","agent_brand_id":2356,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Unit BU4, Castle Court Shopping Centre, Caerphilly","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Caerphilly Lettings","branch_name":"Caerphilly","lettings":true,"sales":false,"commercial":false,"h_email":null,"has_email":false,"h_phone":"029 2120 3991","has_phone":true,"resolved_brand_color":"#ab8d70","boundary_listing_count":"1","property_count":"6","latitude":51.576314,"longitude":-3.216617},{"core_branch_id":52333,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"South Wales Property Group","email":null,"sales_phone_number":"029 2120 3991","address":"Unit BU4\r\nCastle Court Shopping Centre, Cwrt-Y-Castell,\r\nCaerphilly,\r\nCF83 1NU","postcode":"CF83 1NU","website_url":null,"description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/52333\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:59.000000Z","updated_at":"2026-01-20T19:59:28.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":52333,"agent_company_id":1772,"branch_location":"Caerphilly","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000A10F96B1A1BB09C00D1D3BA8C4C94940","agent_brand_id":2360,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Unit BU4, Castle Court Shopping Centre, Cwrt-Y-Castell, Caerphilly","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"South Wales Property Group","branch_name":"Caerphilly","lettings":false,"sales":true,"commercial":false,"h_email":null,"has_email":false,"h_phone":"029 2120 3991","has_phone":true,"resolved_brand_color":"#aa8c6f","boundary_listing_count":"1","property_count":"12","latitude":51.576314,"longitude":-3.216617}]; 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`; } } }