@extends('layouts.app') @section('title', $state->name.' Province Zoning') @php $googleMapsKey = $googleMapsKey ?? config('services.google.maps_browser_key'); @endphp @if(! $googleMapsKey) @push('styles') @endpush @endif @section('content')

{{ $state->name }} Province Zoning

The province or territory is divided into four operational zones. This page restores the zoning feature and overlays live highway traffic when your Google Maps browser key is configured.

Back to Zoning List Open Traffic Map
Province/Territory{{ $state->state_code }}
Zones{{ $state->franchiseZones->count() }}
Saved Traffic{{ $state->traffic_level }}
Live Traffic{{ $googleMapsKey ? 'Enabled' : 'Needs Key' }}

Zoning + Highway Traffic Map

Use this map to see the four operational zones while checking road traffic around highways and city corridors. The zone boundaries come from your database; live traffic comes from Google when configured.

{{ $googleMapsKey ? 'Google Traffic Layer is enabled. Zoom into highways and major roads to inspect current movement before assigning or reviewing coverage.' : 'Add GOOGLE_MAPS_BROWSER_KEY to .env to enable live highway traffic. Without it, the map still shows zones using the fallback map.' }}

Zone Control Card

Each zone has two boundary coordinate pairs plus centre point and radius. Increasing the radius expands the zone circle; reducing it shrinks the coverage area.

@csrf
@foreach($state->franchiseZones as $index => $zone) @endforeach
Zone Start Lat Start Lng End Lat End Lng Centre Lat Centre Lng Radius KM
{{ $zone->zone_name }} boundary_start_lat) }}" required> boundary_start_lng) }}" required> boundary_end_lat) }}" required> boundary_end_lng) }}" required> center_lat) }}" required> center_lng) }}" required> radius_km) }}" required>
@endsection @if($googleMapsKey) @push('scripts') @endpush @else @push('scripts') @endpush @endif