{{-- resources/views/admin/delivery-areas/index.blade.php --}} @extends('layouts.admin') @section('title', 'Delivery Areas') @section('header', 'Delivery Areas') @section('content') @if(session('success')) @endif
Delivery Areas List
@forelse($deliveryAreas as $area) @empty @endforelse
Name Type Details Daily Limit Status Actions
{{ $area->name }} @if($area->description)
{{ Str::limit($area->description, 50) }} @endif
@if($area->area_type == 'circle') Circle @else Polygon @endif @if($area->area_type == 'circle') {{ number_format($area->latitude, 4) }}, {{ number_format($area->longitude, 4) }}
Radius: {{ $area->radius_km }} km
@else {{ count($area->polygon_coordinates ?? []) }} points
Area: {{ number_format($area->getPolygonArea(), 2) }} km²
@endif
{{ $area->max_daily_bookings == 0 ? 'Unlimited' : $area->max_daily_bookings }} @if($area->is_active) Active @else Inactive @endif
@csrf @method('DELETE')
No delivery areas found. Click "Create Area" to get started.
{{ $deliveryAreas->links() }}
@endsection