@extends('_version_02.commons.layouts.admin') @section('content') @include('_version_02.commons.layouts.partials._alert') {!! Form::model($model, ['class'=>'form-horizontal','method'=>'get']) !!}
{{App\Language::trans('Test Setting')}}

{!! Form::label('function_name', App\Language::trans('Write On'), ['class'=>'control-label col-md-4']) !!}
{!!$errors->first('function_name', '')!!}
{!! Form::label('relay_switch_status', App\Language::trans('Switch Status'), ['class'=>'control-label col-md-12']) !!}
relay_switch_status) == true ? ($model->relay_switch_status == true ? 'checked' : '') : 'checked'}} value=1 id="relay_switch_status_on" name="relay_switch_status" checked class="custom-control-input">
relay_switch_status) == true ? ($model->relay_switch_status == false ? 'checked' : '') : ''}} id="relay_switch_status_off" name="relay_switch_status" class="custom-control-input">
{!!$errors->first('relay_switch_status', '')!!}
{!! Form::label('relay_ip', App\Language::trans('Device IP'), ['class'=>'control-label col-md-2']) !!}
{!! Form::text('relay_ip', null, ['id'=>'relay_ip', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control']) !!} {!!$errors->first('relay_ip', '')!!}
{!! Form::label('unit_id', App\Language::trans('Unit ID'), ['class'=>'control-label col-md-2']) !!}
{!! Form::text('unit_id', null, ['id'=>'unit_id', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control']) !!} {!!$errors->first('unit_id', '')!!}
{!! Form::label('meter_ip', App\Language::trans('Target Meter IP'), ['class'=>'control-label col-md-2']) !!}
{!! Form::text('meter_ip', null, ['id'=>'meter_ip', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control']) !!} {!!$errors->first('meter_ip', '')!!}
{!! Form::label('meter_data', App\Language::trans('Target Meter ID List'), ['class'=>'control-label col-md-2']) !!}
{!! Form::text('meter_data', null, ['id'=>'meter_data', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control']) !!} {!!$errors->first('meter_data', '')!!}
{!! Form::label('reference_no', App\Language::trans('Reference No.'), ['class'=>'control-label col-md-2']) !!}
{!! Form::text('reference_no', null, ['id'=>'reference_no', 'rows'=>'10' , 'cols'=>'80','class'=>'form-control']) !!} {!!$errors->first('reference_no', '')!!}
@include('_version_02.commons.layouts.partials._form_floating_footer_report') {!! Form::close() !!}
@php $priority_counter = 1 ; @endphp @foreach($cols as $col) @if($col != 'store_id') @if($col == 'id') @elseif(str_contains($col, '_id')) @else @endif @endif @php $priority_counter ++ ; @endphp @endforeach @php $priority_counter = 1 ; @endphp @foreach($model as $index => $row) @foreach($row->toArray() as $key => $value) @if($key == 'status') @elseif(str_contains($key, '_id')) @elseif($key != 'id') @endif @endforeach @include('_version_02.commons.layouts.partials._table_action_column') @endforeach
#{{App\Language::trans(ucwords(str_replace('_id', '', $col)))}}{{App\Language::trans(ucwords(str_replace('_', ' ', $col)))}}{{App\Language::trans('Action')}}
{{$index+1}}{{$row->display_status_string($key)}}{{$row->display_relationed($key, 'name')}}{{$value}}
@endsection @section('script') @endsection