{{ __('datacenters.edit_title') }}

{{ $code }}
{{-- Editable only while nothing references it. The code is not merely a foreign key: each host's DNS name was minted from it and exists at the provider, and the machine's own hostname was set from it while it was built. Renaming a code with hosts in it produces a datacenter called hel full of machines called fsn-01 — so once anything depends on it the field is a fact, and the reason is named rather than left for the operator to guess at. --}}
@if ($codeFree)

{{ __('datacenters.code_hint') }}

@else

{{ __('datacenters.code_locked', ['hosts' => $hostCount, 'orders' => $orderCount]) }}

@endif @error('code')

{{ $message }}

@enderror
@error('name')

{{ $message }}

@enderror

{{ __('datacenters.facility_hint') }}

@error('facility')

{{ $message }}

@enderror
@error('location')

{{ $message }}

@enderror
{{-- The one lifecycle action a location needs, and the form did not offer it: a datacenter could be created and never switched off again. --}}

{{ __('datacenters.active_hint') }}

{{ __('datacenters.cancel') }} {{ __('datacenters.save') }}