{{-- resources/views/admin/delivery-areas/edit.blade.php --}} @extends('layouts.admin') @section('title', 'Edit Delivery Area') @section('header', 'Edit Delivery Area') @section('content')
Area Details
@if($errors->any())
Validation Errors:
    @foreach($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
@error('name')
{{ $message }}
@enderror
@error('description')
{{ $message }}
@enderror
Set 0 for unlimited bookings @error('max_daily_bookings')
{{ $message }}
@enderror
Radius: {{ $deliveryArea->radius_km ?? 10 }} km
@error('radius_km')
{{ $message }}
@enderror
@error('latitude')
{{ $message }}
@enderror
@error('longitude')
{{ $message }}
@enderror
How to draw polygon: Click "Start Drawing", then click on map to add points. Minimum 3 points required. Double-click or click "Finish Area" when done.
@if($deliveryArea->polygon_coordinates && count($deliveryArea->polygon_coordinates) > 0) @foreach($deliveryArea->polygon_coordinates as $index => $point)
Point {{ $index+1 }}: {{ $point['lat'] }}, {{ $point['lng'] }} ×
@endforeach @else No points added yet @endif
is_active) ? 'checked' : '' }}> When active, this delivery area will be available for customer bookings.
Cancel
@endsection @section('styles') @endsection @section('scripts') @include('partials.google-maps-shim') @endsection