Estate & Letting Agents in Evenwood and Barony, County Durham

Find Estate Agents in Evenwood and Barony, County Durham
12 results
Hunters

Bishop Auckland

Sales
5 active listings in Evenwood and Barony, County Durham, North East, England
222 total
147-149 Newgate Street, Bishop Auckland, County Durham, DL14 7EN
View Profile
J W Wood

Bishop Auckland

Sales
4 active listings in Evenwood and Barony, County Durham, North East, England
97 total
128 Newgate Street, Bishop Auckland, DL14 7EH
View Profile
Ryan James Estate Agents

Bishop Auckland

Sales
4 active listings in Evenwood and Barony, County Durham, North East, England
125 total
136 Newgate Street, Bishop Auckland, DL14 7EH
View Profile
Rea Estates

Bishop Auckland - Sales

Sales
3 active listings in Evenwood and Barony, County Durham, North East, England
51 total
50b Princes Street Bishop Auckland DL14 7AZ
View Profile
Addisons Chartered Surveyors

Barnard Castle

Sales
2 active listings in Evenwood and Barony, County Durham, North East, England
52 total
13 Galgate, Barnard Castle, DL12 8EQ
View Profile
My Property Box

Darlington

Sales
2 active listings in Evenwood and Barony, County Durham, North East, England
184 total
Alton House, 27-31 Grange Road, Darlington, County Durham, DL1 5NA
View Profile
Allsop

-

Sales
1 active listing in Evenwood and Barony, County Durham, North East, England
315 total
33 Wigmore Street , London, W1U 1BZ
Dynamic Property Group

County Durham

Sales
1 active listing in Evenwood and Barony, County Durham, North East, England
30 total
4 St. Stephens Court, Low Willington Industrial Estate, Willington, DL15 0BF
Rent UK Property

Lancashire

Lettings
1 active listing in Evenwood and Barony, County Durham, North East, England
162 total
Time Technology Park Blackburn Road, Simonstone, BB12 7TY
Robinsons

Bishop Auckland

Lettings Sales
1 active listing in Evenwood and Barony, County Durham, North East, England
62 total
120, Newgate Street, Bishop Auckland, DL14 7EH
View Profile
Sbliving

Leeds

Lettings Sales
1 active listing in Evenwood and Barony, County Durham, North East, England
47 total
24 St. Michaels Road, Headingley, Leeds, LS6 3AW
View Profile
Town & Country Property Auctions
1 active listing in Evenwood and Barony, County Durham, North East, England
100 total
14 Mallard Court Mallard Way, Crewe, CW1 6ZQ
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 = 'Evenwood and Barony, County Durham'; 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":53749,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Hunters","email":"bishopauckland@huntersnet.co.uk","sales_phone_number":"01388 311582","address":"147-149 Newgate Street,\r\nBishop Auckland,\r\nCounty Durham,\r\nDL14 7EN","postcode":"DL14 7EN","website_url":"https:\/\/www.hunters.com\/offices\/bishop-auckland","description":null,"listings_feed_url":null,"feed_format":null,"last_feed_sync":null,"crm_provider":null,"logo":"https:\/\/cdn.home.co.uk\/agents\/53749\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:15:46.000000Z","updated_at":"2026-01-20T19:53:00.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":53749,"agent_company_id":98,"branch_location":"Bishop Auckland","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000019ABCDFFABCEFABF7EE5417A8A544B40","agent_brand_id":290,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"147-149 Newgate Street, Bishop Auckland, County Durham","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Hunters","branch_name":"Bishop Auckland","lettings":false,"sales":true,"commercial":false,"h_email":"bishopauckland@huntersnet.co.uk","has_email":true,"h_phone":"01388 311582","has_phone":true,"resolved_brand_color":"#193273","boundary_listing_count":"5","property_count":"222","latitude":54.660476,"longitude":-1.675457},{"core_branch_id":53745,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"J W Wood","email":"bishop@jww.co.uk","sales_phone_number":"01388 604273","address":"128 Newgate Street,\r\nBishop Auckland,\r\nDL14 7EH","postcode":"DL14 7EH","website_url":"https:\/\/www.jww.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\/53745\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:15:46.000000Z","updated_at":"2026-01-20T19:56:18.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":53745,"agent_company_id":1078,"branch_location":"Bishop Auckland","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000FFCA4A9352D0FABF4E61A5828A544B40","agent_brand_id":1607,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"128 Newgate Street, Bishop Auckland","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"J W Wood","branch_name":"Bishop Auckland","lettings":false,"sales":true,"commercial":false,"h_email":"bishop@jww.co.uk","has_email":true,"h_phone":"01388 604273","has_phone":true,"resolved_brand_color":"#1b2d73","boundary_listing_count":"4","property_count":"97","latitude":54.660477,"longitude":-1.67586},{"core_branch_id":53747,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Ryan James Estate Agents","email":"bishop@ryanjamesestateagents.co.uk","sales_phone_number":"01388 240280","address":"136 Newgate Street,\r\nBishop Auckland,\r\nDL14 7EH","postcode":"DL14 7EH","website_url":"https:\/\/www.ryanjamesestateagent.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\/53747\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:15:46.000000Z","updated_at":"2026-01-20T19:57:55.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":53747,"agent_company_id":2141,"branch_location":"Bishop Auckland","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000FFCA4A9352D0FABF4E61A5828A544B40","agent_brand_id":2755,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"136 Newgate Street, Bishop Auckland","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Ryan James Estate Agents","branch_name":"Bishop Auckland","lettings":false,"sales":true,"commercial":false,"h_email":"bishop@ryanjamesestateagents.co.uk","has_email":true,"h_phone":"01388 240280","has_phone":true,"resolved_brand_color":"#deac2d","boundary_listing_count":"4","property_count":"125","latitude":54.660477,"longitude":-1.67586},{"core_branch_id":53744,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Rea Estates","email":"Enquiries@reaestates.co.uk","sales_phone_number":"01388 607780","address":"50b Princes Street\r\nBishop Auckland\r\nDL14 7AZ ","postcode":"DL14 7AZ","website_url":"http:\/\/www.reaestates.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\/53744\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:15:46.000000Z","updated_at":"2026-01-20T19:55:37.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":53744,"agent_company_id":5526,"branch_location":"Bishop Auckland - Sales","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000F3203D450ED1FABFB1C403CAA6544B40","agent_brand_id":6316,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"50b Princes Street, Bishop Auckland","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Rea Estates","branch_name":"Bishop Auckland - Sales","lettings":false,"sales":true,"commercial":false,"h_email":"Enquiries@reaestates.co.uk","has_email":true,"h_phone":"01388 607780","has_phone":true,"resolved_brand_color":"#e34341","boundary_listing_count":"3","property_count":"51","latitude":54.66134,"longitude":-1.676039},{"core_branch_id":53740,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Addisons Chartered Surveyors","email":"reception@addisons-surveyors.co.uk","sales_phone_number":"01833 638094","address":"13 Galgate,\r\nBarnard Castle,\r\nDL12 8EQ","postcode":"DL12 8EQ","website_url":"https:\/\/www.addisons-surveyors.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\/53740\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:15:46.000000Z","updated_at":"2026-01-20T19:53:00.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":53740,"agent_company_id":5925,"branch_location":"Barnard Castle","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000EA245B5D4EC9FEBF774EB340BB454B40","agent_brand_id":6735,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"13 Galgate, Barnard Castle","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Addisons Chartered Surveyors","branch_name":"Barnard Castle","lettings":false,"sales":true,"commercial":false,"h_email":"reception@addisons-surveyors.co.uk","has_email":true,"h_phone":"01833 638094","has_phone":true,"resolved_brand_color":"#df9f3b","boundary_listing_count":"2","property_count":"52","latitude":54.544777,"longitude":-1.924147},{"core_branch_id":53733,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"My Property Box","email":"michael@mypropertybox.co.uk","sales_phone_number":"03333 583676","address":"Alton House,\r\n27-31 Grange Road, \r\nDarlington, \r\nCounty Durham,\r\nDL1 5NA","postcode":"DL1 5NA","website_url":"http:\/\/www.mypropertybox.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\/53733\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:15:46.000000Z","updated_at":"2026-01-20T19:52:59.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":53733,"agent_company_id":6837,"branch_location":"Darlington","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000028EFE3688EECF8BFE6046D72F8424B40","agent_brand_id":7671,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Alton House, 27-31 Grange Road, Darlington, County Durham","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"My Property Box","branch_name":"Darlington","lettings":false,"sales":true,"commercial":false,"h_email":"michael@mypropertybox.co.uk","has_email":true,"h_phone":"03333 583676","has_phone":true,"resolved_brand_color":"#263a55","boundary_listing_count":"2","property_count":"184","latitude":54.523207,"longitude":-1.557753},{"core_branch_id":65813,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Allsop","email":null,"sales_phone_number":"020 7494 3686","address":"33 Wigmore Street ,\r\nLondon,\r\nW1U 1BZ","postcode":"W1U 1BZ","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\/65813\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:22:22.000000Z","updated_at":"2026-01-20T19:57:07.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":65813,"agent_company_id":2173,"branch_location":"-","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000D446753A90F5C2BFF75B3B5112C24940","agent_brand_id":2787,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"33 Wigmore Street, London","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Allsop","branch_name":"-","lettings":false,"sales":true,"commercial":false,"h_email":null,"has_email":false,"h_phone":"020 7494 3686","has_phone":true,"resolved_brand_color":"#de1a83","boundary_listing_count":"1","property_count":"315","latitude":51.516184,"longitude":-0.148119},{"core_branch_id":53751,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Dynamic Property Group","email":null,"sales_phone_number":"03300 552221","address":"4 St. Stephens Court,\r\nLow Willington Industrial Estate,\r\nWillington,\r\nDL15 0BF","postcode":"DL15 0BF","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\/53751\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:15:46.000000Z","updated_at":"2026-01-20T19:53:00.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":53751,"agent_company_id":6408,"branch_location":"County Durham","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000007BBB253960D7FABF965B5A0D895B4B40","agent_brand_id":7230,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"4 St. Stephens Court, Low Willington Industrial Estate, Willington","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Dynamic Property Group","branch_name":"County Durham","lettings":false,"sales":true,"commercial":false,"h_email":null,"has_email":false,"h_phone":"03300 552221","has_phone":true,"resolved_brand_color":"#ffde0b","boundary_listing_count":"1","property_count":"30","latitude":54.71512,"longitude":-1.677582},{"core_branch_id":50726,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Rent UK Property","email":null,"sales_phone_number":null,"address":"Time Technology Park Blackburn Road,\r\nSimonstone,\r\nBB12 7TY","postcode":"BB12 7TY","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\/50726\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:14:08.000000Z","updated_at":"2026-01-20T20:01:24.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":50726,"agent_company_id":2614,"branch_location":"Lancashire","lettings_phone_number":"01282 882699","is_sales":false,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E610000097FF907EFBBA02C0981936CAFAE54A40","agent_brand_id":3255,"offers_sales":false,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"Time Technology Park Blackburn Road, Simonstone","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Rent UK Property","branch_name":"Lancashire","lettings":true,"sales":false,"commercial":false,"h_email":null,"has_email":false,"h_phone":"01282 882699","has_phone":true,"resolved_brand_color":"#ff2b2a","boundary_listing_count":"1","property_count":"162","latitude":53.796716,"longitude":-2.3413},{"core_branch_id":53746,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Robinsons","email":"info@robinsonsbishop.co.uk","sales_phone_number":"01388 458111","address":"120, Newgate Street,\r\nBishop Auckland,\r\nDL14 7EH","postcode":"DL14 7EH","website_url":"http:\/\/www.robinsonsestateagents.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\/53746\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:15:46.000000Z","updated_at":"2026-01-20T19:55:37.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":53746,"agent_company_id":2140,"branch_location":"Bishop Auckland","lettings_phone_number":"01388 458111","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000FFCA4A9352D0FABF4E61A5828A544B40","agent_brand_id":2753,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"120, Newgate Street, Bishop Auckland","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Robinsons","branch_name":"Bishop Auckland","lettings":true,"sales":true,"commercial":false,"h_email":"info@robinsonsbishop.co.uk","has_email":true,"h_phone":"01388 458111","has_phone":true,"resolved_brand_color":"#094a93","boundary_listing_count":"1","property_count":"62","latitude":54.660477,"longitude":-1.67586},{"core_branch_id":58038,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Sbliving","email":"admin@sbliving.co.uk","sales_phone_number":"0113 220 8620","address":"24 St. Michaels Road,\r\nHeadingley,\r\nLeeds,\r\nLS6 3AW","postcode":"LS6 3AW","website_url":"https:\/\/sbliving.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\/58038\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:18:08.000000Z","updated_at":"2026-01-20T19:56:18.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":58038,"agent_company_id":1959,"branch_location":"Leeds","lettings_phone_number":"0113 220 8620","is_sales":true,"is_lettings":true,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E61000005B25581CCE3CF9BF9F1EDB32E0E84A40","agent_brand_id":2563,"offers_sales":true,"offers_lettings":true,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"24 St. Michaels Road, Headingley, Leeds","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Sbliving","branch_name":"Leeds","lettings":true,"sales":true,"commercial":false,"h_email":"admin@sbliving.co.uk","has_email":true,"h_phone":"0113 220 8620","has_phone":true,"resolved_brand_color":"#50defe","boundary_listing_count":"1","property_count":"47","latitude":53.819342,"longitude":-1.577345},{"core_branch_id":53303,"verification_status":"pending","verified_at":null,"verified_by":null,"verification_notes":null,"name":"Town \u0026 Country Property Auctions","email":null,"sales_phone_number":"03301 755889","address":"14 Mallard Court Mallard Way,\r\nCrewe,\r\nCW1 6ZQ","postcode":"CW1 6ZQ","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\/53303\/logo.png","office_images":null,"claimed_at":null,"created_at":"2025-12-09T17:15:32.000000Z","updated_at":"2026-01-20T19:59:47.000000Z","deleted_at":null,"claimed_user_id":null,"profile_status":"on_hold","assigned_user_id":null,"id":53303,"agent_company_id":4116,"branch_location":"Crewe","lettings_phone_number":null,"is_sales":true,"is_lettings":false,"is_commercial":false,"is_hm_agent":false,"geopoint":"0101000020E6100000022EC896E54B03C0A647533D998B4A40","agent_brand_id":4839,"offers_sales":true,"offers_lettings":false,"claimed_assigned_user_id":null,"brand_color":null,"logo_rect":null,"address_lines":"14 Mallard Court Mallard Way, Crewe","has_home_listings":false,"external_crm_branch_id":null,"agent_name":"Town \u0026 Country Property Auctions","branch_name":"Crewe","lettings":false,"sales":true,"commercial":false,"h_email":null,"has_email":false,"h_phone":"03301 755889","has_phone":true,"resolved_brand_color":"#be1441","boundary_listing_count":"1","property_count":"100","latitude":53.090614,"longitude":-2.412059}]; 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`; } } }