@extends('admin.layout.base') @section('content') @php $form = new \App\Http\Controllers\FormCtrl(); @endphp

@if($object == NULL) Crea @else Modifica @endif Faq

  TORNA ALL'ELENCO
@if($object != NULL)
{{$object->label}}
@endif
{!!$form->insertSelectField('Sezione', 'menu_id', 0, 'Seleziona', ($object != NULL && !empty($object) ? $object->menu_id : 0), true, $pages, "resetStepSelect(this.id)");!!} @if(count($languages) > 1) @endif @for($l = 0; $l < count($languages); $l++) @php $lang_id = $languages[$l]->id; $boxlang = NULL; if($object != NULL && !empty($object) && $l > 0) { $boxlang = isset($object->translations[$lang_id]) ? $object->translations[$lang_id] : NULL; } else if($object != NULL && !empty($object)) $boxlang = $object; $boxClass = (!$languages[$l]->selected ? " displaynone" : ""); @endphp @if(count($languages) > 1)
@endif @php $value = str_replace('"', '"', ($boxlang != NULL ? $boxlang->title : '')); echo $form->insertTextInputField("Titolo", "titolo_".$lang_id, $value, "", "#555", ($l == 0), 0, 0, 255); $value = str_replace('"', '"', ($boxlang != NULL ? $boxlang->description : '')); echo $form->insertTextareaInputField("Testo", "testo_".$lang_id, $value, "", "#666666", ($l == 0), 0, 0, 30000, false, true, false); @endphp @if(count($languages) > 1)
@endif @endfor
@php $element = array(); $obj = (object)[]; $obj->checked = ($object == NULL || ($object != NULL && $object->published == 1)); $obj->value = 1; $obj->text = "Selezione per abilitare la visualizzazione della faq"; array_push($element, $obj); echo $form->insertCheckboxGroup(" ", "published", $element, 0, count($element), 0, false, true, true, true); @endphp
@stop