@extends('_version_01.iot.layouts.admin') @section('content') {!! Form::model($model, ['class'=>'form-horizontal',"files"=>true]) !!} @include('_version_01.iot.layouts.partials._alert')
{!! Form::label('name', App\Language::trans('Name'), ['class'=>'control-label col-md-4']) !!}
{!! Form::text('name', null, ['class'=>'form-control','required']) !!} {!!$errors->first('name', '')!!}
{!!Form::file("image_url", array("id"=>"image_url","class"=>"form-control"))!!} {!!$errors->first('image_url', ':message')!!}
@php $language_listing = $page_variables['language_listing']; $tab_status = ' active'; @endphp
@php $tab_status = ' active'; @endphp
@php if(isset($model->id)){ $content = json_decode($model->content); } @endphp @foreach($language_listing as $language)
{!! Form::label('content['.$language.']', App\Language::trans(ucfirst($language).' Content'), ['class'=>'control-label col-md-12']) !!}
{!! Form::textarea('content['.$language.']', (isset($model->id) ? $content->$language : null), ['id'=>'content['.$language.']', 'rows'=>'10','class'=>'form-control tinymce']) !!} {!!$errors->first('content['.$language.']', '')!!}
@php $tab_status =''; @endphp @endforeach
@include('_version_01.iot.layouts.partials._form_floaring_footer_standard') {!! Form::close() !!} @endsection @section('script') @endsection