@php
use Carbon\Carbon;
$title = $register->title;
@endphp@extends('layouts.app')@section('title', $title)
@section('content')
| # | {{ __('forms.title') }} | {{ __('forms.command') }} | {{ __('forms.type') }} | {{ __('forms.values') }} |
|---|---|---|---|---|
| {{ $key + 1 }} | {{ $command->title }} | {{ $command->command }} | {{ $command->GetType() }} |
@switch($command->type)
@case('Switch')
{{ implode(' | ', json_decode($command->value)) }}
@break
@case('SetPoint')
{{ 'From ' . json_decode($command->value)[0] . ' To ' . json_decode($command->value)[1] }}
@break
@case('Selection')
@foreach(json_decode($command->value, true) as $key => $value)
@break
@case('JSON')
{{ $command->value }}
@break
@default
---
@break
@endswitch
{{ $key . ' : ' . $value }} @endforeach |
| {{ __('table.NoRecords') }} | ||||