@extends('layouts.app') @section('content')
@include('partials.header') @include('partials.sidebar')

Edit Feature Control

Edit: {{ $featureControl->feature_name }}

@if ($errors->any())
    @foreach ($errors->all() as $error)
  • {{ $error }}
  • @endforeach
@endif
@csrf @method('PUT')
is_system ? 'readonly' : '' }} placeholder="e.g., message, message_limit, customFeature"> @if ($featureControl->is_system) System feature keys cannot be modified. @else Important: Must start with a letter and contain only letters, numbers, and underscores.
Examples: message, message_limit, customFeature
@endif
Human-readable name for the feature that will be displayed in the CMS interface.
Provide a detailed description of what this feature controls for future reference.
@if (in_array($featureControl->feature_key, ['menu_slider']))
value) === 'linear' ? 'checked' : '' }}>
value) === 'infinite' ? 'checked' : '' }}>
Controls the menu slider animation type. Linear plays once, infinite loops continuously. @else
value) === '0' ? 'checked' : '' }}>
value) === '1' ? 'checked' : '' }}>
Controls whether this feature is active in API responses. Value is always returned as a string. @endif
is_active) ? 'checked' : '' }}>
Controls whether this feature control appears in the CMS interface and API responses. Unchecking this will hide the feature without deleting it.
Controls the display order in the feature list. Lower numbers appear first.
{{ $featureControl->type_text }} @if ($featureControl->is_system) System features are built-in and cannot be deleted. @else Custom features can be modified or deleted. @endif
Current API response for this feature:
{
    ...
    "{{ $featureControl->feature_key }}": "{{ $featureControl->value }}"
    ...
}
Created: {{ $featureControl->created_at->format('M d, Y \a\t H:i') }}
Last Updated: {{ $featureControl->updated_at->format('M d, Y \a\t H:i') }}
View Details Back to List @if (!$featureControl->is_system) @csrf @method('DELETE') @endif
@endsection