{{ __('register.commands.RegisterCommands', ['register' => $register->title]) }}

@if($register->permission == 'ReadWrite')
    @forelse($register->Commands as $i => $command)
  1. {{ $command->title }}

    @switch($command->type) @case('JSON')

    {{ __('register.commands.expand') }}

    @foreach(json_decode($command->value, true) as $key => $value)
    @endforeach
    @break @case('Switch')
      @foreach(json_decode($command->value) as $key => $value)
    • current == $value)>
    • @endforeach
    @break @case('SetPoint') @php $min = json_decode($command->value)[0]; $max = json_decode($command->value)[1]; @endphp
    @break @case('Selection')
    @php $items = json_decode($command->value, true); @endphp
    @break @default

    {{ $command->command }}

    @break @endswitch
  2. @empty
  3. {{ __('register.commands.NoCommands') }}

  4. @endforelse
@else

{{ __('register.commands.ReadOnly') }}

@endif