@extends('_version_01.iot.layouts.admin') @section('content') @include('_version_01.iot.layouts.partials._alert') {!! Form::model($model, ['class'=>'form-horizontal']) !!} @php $i = 1; //dd($model); $automation_sequences = isset($model['automation_sequences']) ? json_decode($model['automation_sequences']) : array(); //dd($automation_sequences); @endphp
{!! Form::label('name', App\Language::trans('Name'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('name', null, ['class'=>'form-control','required']) !!} {!!$errors->first('name', '')!!}
@foreach($automation_sequences as $row) @php //dd($row); @endphp @php $i++; @endphp @endforeach
# {{App\Language::trans('Type')}} {{App\Language::trans('Period in Minutes')}} {{App\Language::trans('Add Row')}}
{{$i}} {!!Form::select('automation_sequences['.$i.'][whatapp_id]', App\Property\Whatapp::combobox(), $row->whatapp_id, ['class'=>'form-control','required'])!!} {!!Form::text('automation_sequences['.$i.'][interval_mins]', $row->interval_mins, ['class'=>'form-control'])!!}
{{$i}} {!! Form::select('automation_sequences['.$i.'][whatapp_id]', App\Property\Whatapp::combobox(), null, ['class'=>'form-control']) !!} {!!Form::number('automation_sequences['.$i.'][interval_mins]', null, ['min'=>0,'step'=>'0.01', 'class'=>'form-control'])!!}
@include('_version_01.iot.layouts.partials._form_floaring_footer_standard') @endsection @section('script') @endsection