Estate & Letting Agents in Kelsale cum Carlton, East Suffolk

Find Estate Agents in Kelsale cum Carlton, East Suffolk
12 results
William H. Brown

Framlingham

Sales
5 active listings in Kelsale cum Carlton, East Suffolk, Suffolk, England
49 total
26 Market Hill, Framlingham, IP13 9AN
View Profile
Flick & Son

Auction

Sales
3 active listings in Kelsale cum Carlton, East Suffolk, Suffolk, England
131 total
High Street, Saxmundham, IP17 1AB
View Profile
Jennie Jones Estate Agents

Saxmundham & Suffolk Heritage Coast

Sales
2 active listings in Kelsale cum Carlton, East Suffolk, Suffolk, England
68 total
26 High Street, Saxmundham, IP17 1AB
Sell My Group

Lytham

Sales
2 active listings in Kelsale cum Carlton, East Suffolk, Suffolk, England
326 total
The Old Bakery Green Street, Lytham, Lytham St. Annes, FY8 5LG
View Profile
Attik City Country Coast
1 active listing in Kelsale cum Carlton, East Suffolk, Suffolk, England
81 total
Attik in the Attic, The Cut, Halesworth, IP19 8BY
View Profile
Auction House

East Anglia

Sales
1 active listing in Kelsale cum Carlton, East Suffolk, Suffolk, England
323 total
The Barn Newmarket Road Cringleford Norwich NR4 6UE
Clarke and Simpson

Framlingham

Lettings Sales
1 active listing in Kelsale cum Carlton, East Suffolk, Suffolk, England
171 total
Well Close Square, Framlingham, IP13 9DU
View Profile
Fenn Wright

Woodbridge

Sales
1 active listing in Kelsale cum Carlton, East Suffolk, Suffolk, England
103 total
Nunns Mill Quayside, Woodbridge, IP12 1BN
View Profile
Fine & Country

Beccles

Sales
1 active listing in Kelsale cum Carlton, East Suffolk, Suffolk, England
47 total
Fine & Country 14 Blyburgate Beccles NR34 9TB
View Profile
Harvey Longsons

Swaffham

Sales
1 active listing in Kelsale cum Carlton, East Suffolk, Suffolk, England
95 total
Fitzroy House 32 Market Place Swaffham PE37 7QH
View Profile
Ml Property Consultants

Mendlesham

Sales
1 active listing in Kelsale cum Carlton, East Suffolk, Suffolk, England
25 total
2 Front Street Mendlesham IP14 5RY
View Profile
Savills

Ipswich

Lettings Sales
1 active listing in Kelsale cum Carlton, East Suffolk, Suffolk, England
61 total
Fraser House, 23 Museum Street Ipswich IP1 1HE
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 = 'Kelsale cum Carlton, East Suffolk'; 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":56582,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"William H. Brown","email":"Framlingham@williamhbrown.co.uk","sales_phone_number":"01728 723923","address":"26 Market Hill, \r\nFramlingham, IP13 9AN","postcode":"IP13 9AN","website_url":"http:\/\/www.williamhbrown.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\/56582\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:20.000000Z","updated_at":"2026-01-20T19:59:20.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56582,"agent_company_id":54,"branch_location":"Framlingham","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000766C04E2757DF53F3B1A87FA5D1C4A40","agent_brand_id":216,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"26 Market Hill, Framlingham","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"William H. Brown","branch_name":"Framlingham","lettings":false,"sales":true,"commercial":false,"h_email":"Framlingham@williamhbrown.co.uk","has_email":true,"h_phone":"01728 723923","has_phone":true,"resolved_brand_color":"#8dc3d9","boundary_listing_count":"5","property_count":"49","latitude":52.221618,"longitude":1.34313},{"core_branch_id":56606,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Flick \u0026 Son","email":"al@flickandson.co.uk","sales_phone_number":"01728 633777","address":"High Street,\r\nSaxmundham,\r\nIP17 1AB","postcode":"IP17 1AB","website_url":"http:\/\/www.flickandson.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\/56606\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:21.000000Z","updated_at":"2026-01-20T19:53:31.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56606,"agent_company_id":6280,"branch_location":"Auction","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000F7CABC55D7E1F73FAD4F39268B1B4A40","agent_brand_id":7101,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"High Street, Saxmundham","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Flick \u0026 Son","branch_name":"Auction","lettings":false,"sales":true,"commercial":false,"h_email":"al@flickandson.co.uk","has_email":true,"h_phone":"01728 633777","has_phone":true,"resolved_brand_color":"#053769","boundary_listing_count":"3","property_count":"131","latitude":52.215184,"longitude":1.492637},{"core_branch_id":56607,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Jennie Jones Estate Agents","email":null,"sales_phone_number":"01728 605511","address":"26 High Street,\r\nSaxmundham,\r\nIP17 1AB","postcode":"IP17 1AB","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\/56607\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:21.000000Z","updated_at":"2026-01-20T19:53:31.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56607,"agent_company_id":6281,"branch_location":"Saxmundham \u0026 Suffolk Heritage Coast","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000F7CABC55D7E1F73FAD4F39268B1B4A40","agent_brand_id":7102,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"26 High Street, Saxmundham","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Jennie Jones Estate Agents","branch_name":"Saxmundham \u0026 Suffolk Heritage Coast","lettings":false,"sales":true,"commercial":false,"h_email":null,"has_email":false,"h_phone":"01728 605511","has_phone":true,"resolved_brand_color":"#e5cd00","boundary_listing_count":"2","property_count":"68","latitude":52.215184,"longitude":1.492637},{"core_branch_id":55145,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Sell My Group","email":"info@sellmygroup.co.uk","sales_phone_number":"03333 445014","address":"The Old Bakery Green Street,\r\nLytham,\r\nLytham St. Annes,\r\nFY8 5LG","postcode":"FY8 5LG","website_url":"http:\/\/www.sellmygroup.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\/55145\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:16:32.000000Z","updated_at":"2026-01-20T20:01:04.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":55145,"agent_company_id":3328,"branch_location":"Lytham","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000221B48179BB607C0FDDD3B6A4CDE4A40","agent_brand_id":4005,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"The Old Bakery Green Street, Lytham, Lytham St. Annes","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Sell My Group","branch_name":"Lytham","lettings":false,"sales":true,"commercial":false,"h_email":"info@sellmygroup.co.uk","has_email":true,"h_phone":"03333 445014","has_phone":true,"resolved_brand_color":"#e55189","boundary_listing_count":"2","property_count":"326","latitude":53.736707,"longitude":-2.964163},{"core_branch_id":56614,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Attik City Country Coast","email":"Sharon@attikestateagents.co.uk","sales_phone_number":"01986 899532","address":"Attik in the Attic,\r\nThe Cut,\r\nHalesworth,\r\nIP19 8BY","postcode":"IP19 8BY","website_url":"https:\/\/attikestateagents.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\/56614\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:21.000000Z","updated_at":"2026-01-20T20:01:36.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56614,"agent_company_id":3849,"branch_location":"Halesworth","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000004E78C28ED0DF83F3F355EBA492C4A40","agent_brand_id":4555,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Attik in the Attic, The Cut, Halesworth","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Attik City Country Coast","branch_name":"Halesworth","lettings":false,"sales":true,"commercial":false,"h_email":"Sharon@attikestateagents.co.uk","has_email":true,"h_phone":"01986 899532","has_phone":true,"resolved_brand_color":"#8a7e6d","boundary_listing_count":"1","property_count":"81","latitude":52.346,"longitude":1.5034},{"core_branch_id":60266,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Auction House","email":null,"sales_phone_number":"01603 505100","address":"The Barn\r\nNewmarket Road\r\nCringleford\r\nNorwich\r\nNR4 6UE","postcode":"NR4 6UE","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\/60266\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:20.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":60266,"agent_company_id":654,"branch_location":"East Anglia","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000A1478C9E5BE8F33F3FE08101844D4A40","agent_brand_id":1128,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"The Barn, Newmarket Road, Cringleford, Norwich","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Auction House","branch_name":"East Anglia","lettings":false,"sales":true,"commercial":false,"h_email":null,"has_email":false,"h_phone":"01603 505100","has_phone":true,"resolved_brand_color":"#f13e4b","boundary_listing_count":"1","property_count":"323","latitude":52.605591,"longitude":1.244228},{"core_branch_id":56583,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Clarke and Simpson","email":"email@clarkeandsimpson.co.uk","sales_phone_number":"01728 724200","address":"Well Close Square,\r\nFramlingham,\r\nIP13 9DU","postcode":"IP13 9DU","website_url":"https:\/\/www.clarkeandsimpson.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\/56583\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:20.000000Z","updated_at":"2026-01-20T20:01:35.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56583,"agent_company_id":3856,"branch_location":"Framlingham","lettings_phone_number":"01728 621200","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000008E3A3AAE4676F53F130CE71A661C4A40","agent_brand_id":4562,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Well Close Square, Framlingham","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Clarke and Simpson","branch_name":"Framlingham","lettings":true,"sales":true,"commercial":false,"h_email":"email@clarkeandsimpson.co.uk","has_email":true,"h_phone":"01728 724200","has_phone":true,"resolved_brand_color":"#ab2d4b","boundary_listing_count":"1","property_count":"171","latitude":52.221866,"longitude":1.341376},{"core_branch_id":56568,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Fenn Wright","email":"woodbridge@fennwright.co.uk","sales_phone_number":"01394 333346","address":"Nunns Mill Quayside,\r\nWoodbridge,\r\nIP12 1BN","postcode":"IP12 1BN","website_url":"https:\/\/www.fennwright.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\/56568\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:20.000000Z","updated_at":"2026-01-20T19:53:30.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56568,"agent_company_id":1513,"branch_location":"Woodbridge","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000E55FCB2BD71BF53FC39ACAA2B00B4A40","agent_brand_id":2083,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Nunns Mill Quayside, Woodbridge","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Fenn Wright","branch_name":"Woodbridge","lettings":false,"sales":true,"commercial":false,"h_email":"woodbridge@fennwright.co.uk","has_email":true,"h_phone":"01394 333346","has_phone":true,"resolved_brand_color":"#9cbb43","boundary_listing_count":"1","property_count":"103","latitude":52.091328,"longitude":1.319297},{"core_branch_id":60258,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Fine \u0026 Country","email":"finecountry5.beccles___waveney@ptlp.co.uk","sales_phone_number":"01502 533383","address":"Fine \u0026 Country\r\n14 Blyburgate\r\nBeccles\r\nNR34 9TB","postcode":"NR34 9TB","website_url":"https:\/\/www.fineandcountry.com\/uk\/beccles-and-waveney","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/60258\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:20.000000Z","updated_at":"2026-01-20T19:59:31.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":60258,"agent_company_id":100167,"branch_location":"Beccles","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000088B9A46ABB09F93F43908312663A4A40","agent_brand_id":10680,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Fine \u0026 Country, 14 Blyburgate, Beccles","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Fine \u0026 Country","branch_name":"Beccles","lettings":false,"sales":true,"commercial":false,"h_email":"finecountry5.beccles___waveney@ptlp.co.uk","has_email":true,"h_phone":"01502 533383","has_phone":true,"resolved_brand_color":"#9d8141","boundary_listing_count":"1","property_count":"47","latitude":52.45624,"longitude":1.564876},{"core_branch_id":61101,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Harvey Longsons","email":"info@harveylongsons.co.uk","sales_phone_number":"01760 629819","address":"Fitzroy House\r\n32 Market Place\r\nSwaffham\r\nPE37 7QH","postcode":"PE37 7QH","website_url":"https:\/\/harveylongsons.com\/","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/61101\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:47.000000Z","updated_at":"2026-01-20T19:59:04.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":61101,"agent_company_id":2310,"branch_location":"Swaffham","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000D45FAFB0E0FEE53FF110C64FE3524A40","agent_brand_id":2933,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Fitzroy House, 32 Market Place, Swaffham","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Harvey Longsons","branch_name":"Swaffham","lettings":false,"sales":true,"commercial":false,"h_email":"info@harveylongsons.co.uk","has_email":true,"h_phone":"01760 629819","has_phone":true,"resolved_brand_color":"#415d70","boundary_listing_count":"1","property_count":"95","latitude":52.647562,"longitude":0.687363},{"core_branch_id":56598,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Ml Property Consultants","email":"matt@mlproperty.co.uk","sales_phone_number":"01449 766120","address":"2 Front Street\r\nMendlesham\r\nIP14 5RY ","postcode":"IP14 5RY","website_url":"https:\/\/www.mlproperty.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\/56598\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:21.000000Z","updated_at":"2026-01-20T20:01:35.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56598,"agent_company_id":3860,"branch_location":"Mendlesham","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000AC02B5183C4CF13F4644317903204A40","agent_brand_id":4568,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"2 Front Street, Mendlesham","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Ml Property Consultants","branch_name":"Mendlesham","lettings":false,"sales":true,"commercial":false,"h_email":"matt@mlproperty.co.uk","has_email":true,"h_phone":"01449 766120","has_phone":true,"resolved_brand_color":"#2c3f4d","boundary_listing_count":"1","property_count":"25","latitude":52.250106,"longitude":1.081112},{"core_branch_id":56540,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Savills","email":"torford@savills.co.uk","sales_phone_number":"01473 234800","address":"Fraser House, 23\r\nMuseum Street\r\nIpswich\r\nIP1 1HE","postcode":"IP1 1HE","website_url":"https:\/\/www.savills.com","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/56540\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:17:19.000000Z","updated_at":"2026-01-20T19:56:50.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":56540,"agent_company_id":33,"branch_location":"Ipswich","lettings_phone_number":"01473 234802","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000093E1783E036AF23FA2444B1E4F074A40","agent_brand_id":47,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Fraser House, 23, Museum Street, Ipswich","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Savills","branch_name":"Ipswich","lettings":true,"sales":true,"commercial":false,"h_email":"torford@savills.co.uk","has_email":true,"h_phone":"01473 234800","has_phone":true,"resolved_brand_color":"#ffe643","boundary_listing_count":"1","property_count":"61","latitude":52.057102,"longitude":1.150882}]; 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`; } } }