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

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

  TORNA ALL'ELENCO
@if(isset($_REQUEST['error']))
Attenzione Il titolo della news è già stato utilizzato.
@endif @if(count($languages) > 0) @if(count($languages) > 1) @endif @for($l = 0; $l < count($languages); $l++) @php $lang_id = $languages[$l]->id; $boxlang = NULL; if($object != NULL && $l > 0) { $boxlang = isset($object->translations[$lang_id]) ? $object->translations[$lang_id] : NULL; } else if($object != NULL) $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", "title_".$lang_id, $value, "", "#555", ($l == 0), 0, 0, 255); $value = str_replace('"', '"', ($boxlang != NULL ? $boxlang->text : '')); echo $form->insertTextareaInputField("Testo", "text_".$lang_id, $value, "", "#666666", true, 0, 0, 10000, false, true, false); @endphp @if(count($languages) > 1)
@endif @endfor @endif
@include('admin.page.form.file', array( 'index' => 1, 'placeholder' => 'Icona', 'field' => 'icon', 'base_img_url' => asset('img/icone/'), 'singleimage' => true, 'dimension' => 'W: 210 H: 180', 'extensions' => 'png' ))
@php $element = array(); $obj = (object)[]; $obj->checked = ($object == NULL || ($object != NULL && $object->stato == 1)); $obj->value = 1; $obj->text = "Selezione per abilitare la visualizzazione dell'elemento"; array_push($element, $obj); echo $form->insertCheckboxGroup(" ", "stato", $element, 0, count($element), 0, false, true, true, true); @endphp
@stop