@php $editing = $plan->exists; $selected = old('locations', $selectedLocations ?? []); @endphp
@if ($editing) Existing subscribers keep the price, device limit and allowance they agreed to — those were copied onto their subscription at purchase. Changing them here would silently re-price customers and could revoke devices they are actively using. @endif
@csrf @if ($editing) @method('PUT') @endif {{-- ------------------------------------------------ identity --}}
{{-- ------------------------------------------------- pricing --}}
{{-- --------------------------------------------------- limits --}}
{{-- ------------------------------------------------ locations --}}

Recommended. An unrestricted plan reaches new locations automatically, with no need to re-select them each time one is added.

@if ($locations->isEmpty())

No locations exist yet.

@else
@foreach ($locations as $location) @endforeach
@endif
{{-- ------------------------------------------------- features --}}

One per line. Device count, data allowance and location access are shown automatically — no need to repeat them here.

{{-- ---------------------------------------------------- flags --}}
@php $flags = [ ['priority_routing', 'Priority routing'], ['is_active', 'Active (visible to customers)'], ['is_featured', 'Highlight as most popular'], ]; @endphp @foreach ($flags as [$field, $label]) @endforeach
{{ $editing ? 'Save changes' : 'Create plan' }} Cancel