Estate & Letting Agents in Blockley, Cotswold

Find Estate Agents in Blockley, Cotswold
13 results
Hayman-Joyce Estate Agents

Moreton-In-Marsh

Sales
9 active listings in Blockley, Cotswold, Gloucestershire, England
50 total
High Street, Moreton-In-Marsh, GL56 0AX
View Profile
Holmans Estate Agents

Moreton-In-Marsh

Sales
9 active listings in Blockley, Cotswold, Gloucestershire, England
46 total
High Street, Moreton-In-Marsh, GL56 0AX
View Profile
Savills

Stow-On-The-Wold

Sales
7 active listings in Blockley, Cotswold, Gloucestershire, England
36 total
Cotswold House Church Street, Stow On The Wold, GL54 1BB
View Profile
Jackson - Stops

Chipping Campden

Sales
5 active listings in Blockley, Cotswold, Gloucestershire, England
43 total
High Street, Chipping Campden, GL55 6AJ
View Profile
Harrison Hardie

Moreton in Marsh

Lettings Sales
3 active listings in Blockley, Cotswold, Gloucestershire, England
39 total
High Street, Moreton-In-Marsh, GL56 0AF
View Profile
Openrent

London

Lettings
3 active listings in Blockley, Cotswold, Gloucestershire, England
8,606 total
20 Wenlock Road, London, N1 7GU
View Profile
R A Bennett & Partners
2 active listings in Blockley, Cotswold, Gloucestershire, England
48 total
41 - 43 High Street, Broadway, Worcestershire, WR12 7DP
View Profile
Savills

Birmingham

Lettings Sales
2 active listings in Blockley, Cotswold, Gloucestershire, England
125 total
55, Colmore Row, Birmingham, B3 2AA
View Profile
Hayman-Joyce Broadway
1 active listing in Blockley, Cotswold, Gloucestershire, England
86 total
28 High Street, Broadway, WR12 7DT
View Profile
Knight Frank

Stow on the Wold

Sales
1 active listing in Blockley, Cotswold, Gloucestershire, England
30 total
Brett House Park Street, Stow On The Wold, GL54 1AG
View Profile
Penny & Sinclair

Burford

Sales
1 active listing in Blockley, Cotswold, Gloucestershire, England
29 total
97 High Street, Burford, OX18 4QA
View Profile
Peter Clarke

Chipping Campden

Sales
1 active listing in Blockley, Cotswold, Gloucestershire, England
33 total
Peter Clarke, Grafton House, High Street, Chipping Campden, GL55 6AT
View Profile
Strutt & Parker

Moreton-In-Marsh

Sales
1 active listing in Blockley, Cotswold, Gloucestershire, England
12 total
Fosse House, High Street, Moreton-In-Marsh, GL56 0LH
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 = 'Blockley, Cotswold'; 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":55593,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Hayman-Joyce Estate Agents","email":"tomhj@haymanjoyce.co.uk","sales_phone_number":"01608 651188","address":"High Street,\r\nMoreton-In-Marsh,\r\nGL56 0AX","postcode":"GL56 0AX","website_url":"https:\/\/www.haymanjoyce.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\/55593\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:16:48.000000Z","updated_at":"2026-01-20T19:53:18.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":55593,"agent_company_id":9044,"branch_location":"Moreton-In-Marsh","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000EBC726F9113FFBBFD238D4EFC2FE4940","agent_brand_id":9930,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"High Street, Moreton-In-Marsh","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Hayman-Joyce Estate Agents","branch_name":"Moreton-In-Marsh","lettings":false,"sales":true,"commercial":false,"h_email":"tomhj@haymanjoyce.co.uk","has_email":true,"h_phone":"01608 651188","has_phone":true,"resolved_brand_color":"#af2d32","boundary_listing_count":"9","property_count":"50","latitude":51.990324,"longitude":-1.702898},{"core_branch_id":55594,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Holmans Estate Agents","email":"roger.holman@holmansestateagents.co.uk","sales_phone_number":"01608 652345","address":"High Street,\r\nMoreton-In-Marsh,\r\nGL56 0AX ","postcode":"GL56 0AX","website_url":"http:\/\/www.holmansestateagents.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\/55594\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:16:48.000000Z","updated_at":"2026-01-20T19:53:18.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":55594,"agent_company_id":9045,"branch_location":"Moreton-In-Marsh","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000EBC726F9113FFBBFD238D4EFC2FE4940","agent_brand_id":9931,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"High Street, Moreton-In-Marsh","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Holmans Estate Agents","branch_name":"Moreton-In-Marsh","lettings":false,"sales":true,"commercial":false,"h_email":"roger.holman@holmansestateagents.co.uk","has_email":true,"h_phone":"01608 652345","has_phone":true,"resolved_brand_color":"#004b91","boundary_listing_count":"9","property_count":"46","latitude":51.990324,"longitude":-1.702898},{"core_branch_id":55583,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Savills","email":"stow_sales@savills.com","sales_phone_number":"01451 832832","address":"Cotswold House Church Street,\r\nStow On The Wold,\r\nGL54 1BB","postcode":"GL54 1BB","website_url":"https:\/\/www.savills.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\/55583\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:16:47.000000Z","updated_at":"2026-01-20T19:59:25.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":55583,"agent_company_id":33,"branch_location":"Stow-On-The-Wold","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000E73922DFA594FBBF4BCADDE7F8F64940","agent_brand_id":47,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Cotswold House Church Street, Stow On The Wold","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Savills","branch_name":"Stow-On-The-Wold","lettings":false,"sales":true,"commercial":false,"h_email":"stow_sales@savills.com","has_email":true,"h_phone":"01451 832832","has_phone":true,"resolved_brand_color":"#ffe643","boundary_listing_count":"7","property_count":"36","latitude":51.929471,"longitude":-1.723791},{"core_branch_id":55590,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Jackson - Stops","email":"campden@jackson-stops.co.uk","sales_phone_number":"01386 840224","address":"High Street,\r\nChipping Campden,\r\nGL55 6AJ","postcode":"GL55 6AJ","website_url":"http:\/\/www.jackson-stops.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\/55590\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:16:48.000000Z","updated_at":"2026-01-20T19:53:18.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":55590,"agent_company_id":1991,"branch_location":"Chipping Campden","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000C4EE3B86C77EFCBF77D7D9907F064A40","agent_brand_id":2598,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"High Street, Chipping Campden","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Jackson - Stops","branch_name":"Chipping Campden","lettings":false,"sales":true,"commercial":false,"h_email":"campden@jackson-stops.co.uk","has_email":true,"h_phone":"01386 840224","has_phone":true,"resolved_brand_color":"#052246","boundary_listing_count":"5","property_count":"43","latitude":52.050768,"longitude":-1.780952},{"core_branch_id":55592,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Harrison Hardie","email":"moreton@harrisonjameshardie.co.uk","sales_phone_number":"01608 651000","address":"High Street,\r\nMoreton-In-Marsh,\r\nGL56 0AF","postcode":"GL56 0AF","website_url":"https:\/\/harrisonjameshardie.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\/55592\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:16:48.000000Z","updated_at":"2026-01-20T20:01:06.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":55592,"agent_company_id":9043,"branch_location":"Moreton in Marsh","lettings_phone_number":"01608 651000","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000AE49B7257241FBBF96236420CFFE4940","agent_brand_id":9929,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"High Street, Moreton-In-Marsh","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Harrison Hardie","branch_name":"Moreton in Marsh","lettings":true,"sales":true,"commercial":false,"h_email":"moreton@harrisonjameshardie.co.uk","has_email":true,"h_phone":"01608 651000","has_phone":true,"resolved_brand_color":"#160c2e","boundary_listing_count":"3","property_count":"39","latitude":51.990696,"longitude":-1.703478},{"core_branch_id":58995,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Openrent","email":"zoopla@openrent.co.uk","sales_phone_number":null,"address":"20 \r\nWenlock Road, \r\nLondon, \r\nN1 7GU","postcode":"N1 7GU","website_url":"https:\/\/www.openrent.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\/58995\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:18:40.000000Z","updated_at":"2026-01-20T19:55:47.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":58995,"agent_company_id":7279,"branch_location":"London","lettings_phone_number":"020 3322 3265","is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000003D7D04FEF0F3B7BFCEA5B8AAECC34940","agent_brand_id":8120,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"20, Wenlock Road, London","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Openrent","branch_name":"London","lettings":true,"sales":false,"commercial":false,"h_email":"zoopla@openrent.co.uk","has_email":true,"h_phone":"020 3322 3265","has_phone":true,"resolved_brand_color":"#468cc8","boundary_listing_count":"3","property_count":"8606","latitude":51.53066,"longitude":-0.093566},{"core_branch_id":66538,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"R A Bennett \u0026 Partners","email":"Broadway.RABennet@lm.propertywide.co.uk","sales_phone_number":"01386 852456","address":"41 - 43 High Street, Broadway, Worcestershire, WR12 7DP","postcode":"WR12 7DP","website_url":"https:\/\/www.rabennett.co.uk\/branch\/estate-agents\/broadway","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/66538\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:22:46.000000Z","updated_at":"2026-01-20T20:00:56.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":66538,"agent_company_id":51,"branch_location":"Broadway","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000B937BF61A2C1FDBF18096D3997044A40","agent_brand_id":181,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"41 - 43 High Street, Broadway, Worcestershire","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"R A Bennett \u0026 Partners","branch_name":"Broadway","lettings":false,"sales":true,"commercial":false,"h_email":"Broadway.RABennet@lm.propertywide.co.uk","has_email":true,"h_phone":"01386 852456","has_phone":true,"resolved_brand_color":"#055041","boundary_listing_count":"2","property_count":"48","latitude":52.035865,"longitude":-1.859774},{"core_branch_id":50269,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Savills","email":"birmingham@savills.com","sales_phone_number":"0121 200 4567","address":"55, Colmore Row, Birmingham, \r\nB3 2AA","postcode":"B3 2AA","website_url":"https:\/\/www.savills.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\/50269\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:13:53.000000Z","updated_at":"2026-01-20T19:56:09.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50269,"agent_company_id":33,"branch_location":"Birmingham","lettings_phone_number":"0121 615 2660","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000F7949C137B68FEBF5AF5B9DA8A3D4A40","agent_brand_id":47,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"55, Colmore Row, Birmingham","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Savills","branch_name":"Birmingham","lettings":true,"sales":true,"commercial":false,"h_email":"birmingham@savills.com","has_email":true,"h_phone":"0121 200 4567","has_phone":true,"resolved_brand_color":"#ffe643","boundary_listing_count":"2","property_count":"125","latitude":52.4808,"longitude":-1.900508},{"core_branch_id":66539,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Hayman-Joyce Broadway","email":"broadway@haymanjoycebroadway.co.uk","sales_phone_number":"01386 858510","address":"28 High Street,\r\nBroadway,\r\nWR12 7DT","postcode":"WR12 7DT","website_url":"http:\/\/www.haymanjoycebroadway.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\/66539\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:22:46.000000Z","updated_at":"2026-01-20T19:55:45.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":66539,"agent_company_id":7149,"branch_location":"Broadway","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000005C74B2D47ABFFDBF8E226B0DA5044A40","agent_brand_id":7990,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"28 High Street, Broadway","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Hayman-Joyce Broadway","branch_name":"Broadway","lettings":false,"sales":true,"commercial":false,"h_email":"broadway@haymanjoycebroadway.co.uk","has_email":true,"h_phone":"01386 858510","has_phone":true,"resolved_brand_color":"#af2e32","boundary_listing_count":"1","property_count":"86","latitude":52.036287,"longitude":-1.859248},{"core_branch_id":55581,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Knight Frank","email":"stowonthewold@knightfrank.com","sales_phone_number":"01451 600610","address":"Brett House Park Street,\r\nStow On The Wold,\r\nGL54 1AG","postcode":"GL54 1AG","website_url":"https:\/\/www.knightfrank.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\/55581\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:16:47.000000Z","updated_at":"2026-01-20T19:59:25.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":55581,"agent_company_id":146,"branch_location":"Stow on the Wold","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000003C670B08AD87FBBF965D30B8E6F64940","agent_brand_id":372,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Brett House Park Street, Stow On The Wold","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Knight Frank","branch_name":"Stow on the Wold","lettings":false,"sales":true,"commercial":false,"h_email":"stowonthewold@knightfrank.com","has_email":true,"h_phone":"01451 600610","has_phone":true,"resolved_brand_color":"#d2113e","boundary_listing_count":"1","property_count":"30","latitude":51.928916,"longitude":-1.720624},{"core_branch_id":60718,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Penny \u0026 Sinclair","email":"ellen.tarakowicz@pennyandsinclair.co.uk","sales_phone_number":"01993 220555","address":"97 High Street,\r\nBurford,\r\nOX18 4QA","postcode":"OX18 4QA","website_url":"https:\/\/www.pennyandsinclair.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\/60718\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:19:35.000000Z","updated_at":"2026-01-20T19:54:16.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":60718,"agent_company_id":1412,"branch_location":"Burford","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000004F24986A662DFABF0A82C7B777E74940","agent_brand_id":1967,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"97 High Street, Burford","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Penny \u0026 Sinclair","branch_name":"Burford","lettings":false,"sales":true,"commercial":false,"h_email":"ellen.tarakowicz@pennyandsinclair.co.uk","has_email":true,"h_phone":"01993 220555","has_phone":true,"resolved_brand_color":"#ac213b","boundary_listing_count":"1","property_count":"29","latitude":51.808341,"longitude":-1.636084},{"core_branch_id":55591,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Peter Clarke","email":"campden@peterclarke.co.uk","sales_phone_number":"01386 770044","address":"Peter Clarke,\r\nGrafton House,\r\nHigh Street,\r\nChipping Campden,\r\nGL55 6AT","postcode":"GL55 6AT","website_url":"http:\/\/www.peterclarke.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\/55591\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:16:48.000000Z","updated_at":"2026-01-20T19:53:18.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":55591,"agent_company_id":671,"branch_location":"Chipping Campden","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000088A06AF46A80FCBFC651B9895A064A40","agent_brand_id":1145,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Peter Clarke, Grafton House, High Street, Chipping Campden","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Peter Clarke","branch_name":"Chipping Campden","lettings":false,"sales":true,"commercial":false,"h_email":"campden@peterclarke.co.uk","has_email":true,"h_phone":"01386 770044","has_phone":true,"resolved_brand_color":"#282d55","boundary_listing_count":"1","property_count":"33","latitude":52.049638,"longitude":-1.781352},{"core_branch_id":55596,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Strutt \u0026 Parker","email":"moreton@struttandparker.com","sales_phone_number":"01608 650502","address":"Fosse House, High Street,\r\nMoreton-In-Marsh,\r\nGL56 0LH","postcode":"GL56 0LH","website_url":"https:\/\/www.struttandparker.com","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/55596\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:16:48.000000Z","updated_at":"2026-01-20T20:00:51.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":55596,"agent_company_id":257,"branch_location":"Moreton-In-Marsh","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000017F4DE180240FBBF99620E828EFE4940","agent_brand_id":547,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Fosse House, High Street, Moreton-In-Marsh","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Strutt \u0026 Parker","branch_name":"Moreton-In-Marsh","lettings":false,"sales":true,"commercial":false,"h_email":"moreton@struttandparker.com","has_email":true,"h_phone":"01608 650502","has_phone":true,"resolved_brand_color":"#cb1144","boundary_listing_count":"1","property_count":"12","latitude":51.988724,"longitude":-1.703127}]; 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`; } } }