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

Feature Control Details

Edit @if (!$featureControl->is_system)
@csrf @method('DELETE')
@endif

{{ $featureControl->feature_name }}

Feature Information
{{ $featureControl->feature_key }}
{{ $featureControl->feature_name }}
{{ $featureControl->value }} ({{ $featureControl->status_text }})
{{ $featureControl->type_text }} @if ($featureControl->is_system) Cannot be deleted @endif
{{ $featureControl->sort_order }}
{{ $featureControl->is_active ? 'Yes' : 'No' }}
@if ($featureControl->description)
{{ $featureControl->description }}
@endif
API Response Example

This feature appears in API responses with the following format:

{
    "Logo": "1",
    "Bg": "1",
    "adv": "1",
    "runText": "1",
    "PIP": "0",
    "idleHome": "1",
    "{{ $featureControl->feature_key }}": "{{ $featureControl->value }}"
}
API Endpoint: GET /api/post-info?deviceName=ROOM_NAME
Quick Actions
@if ($featureControl->canBeToggled())
value === '1' ? 'checked' : '' }} onchange="toggleFeatureStatus({{ $featureControl->id }}, this.checked)">
{{ $featureControl->status_text }}
@else
{{ $featureControl->value }}
Custom Value (Use Edit to change)
@endif
Edit Feature @if (!$featureControl->is_system)
@csrf @method('DELETE')
@else @endif
Timeline
Created
{{ $featureControl->created_at->format('M d, Y') }}
{{ $featureControl->created_at->format('g:i A') }}
Last Updated
{{ $featureControl->updated_at->format('M d, Y') }}
{{ $featureControl->updated_at->format('g:i A') }}
Time Ago
{{ $featureControl->updated_at->diffForHumans() }}
@endsection