@extends('layouts.app') @section('title', 'Delivery Zones') @section('content')
Manage delivery rates based on distance
| Zone Name | Distance Range (km) | Base Rate | Rate/km | Rate/kg | Est. Days | Status | Actions |
|---|---|---|---|---|---|---|---|
| {{ $zone->name }} | {{ $zone->min_distance_km }} - {{ $zone->max_distance_km }} km | R {{ number_format($zone->base_rate, 2) }} | R {{ number_format($zone->rate_per_km, 2) }} | R {{ number_format($zone->rate_per_kg, 2) }} | {{ $zone->estimated_days_min }}-{{ $zone->estimated_days_max }} days | {{ $zone->is_active ? 'Active' : 'Inactive' }} |
|
| No delivery zones configured | |||||||
Delivery cost = Base Rate + (Distance x Rate per km) + (Weight x Rate per kg)
Distance is calculated using the Haversine formula based on the supplier's location and the customer's delivery address.