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

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

  TORNA ALL'ELENCO @if($object != NULL && isset($object->path)) PAGINA PUBBLICA @endif @if($object != NULL)   GESTIONE CONTENUTI @endif
@if(isset($_REQUEST['error']))
Attenzione Il titolo della tecnologia è 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->subtitle : '')); echo $form->insertTextInputField("Sottotitolo", "subtitle_".$lang_id, $value, "", "#555", false, 0, 0, 255); @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: 120', 'extensions' => 'png' ))
@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 tecnologia"; array_push($element, $obj); echo $form->insertCheckboxGroup(" ", "published", $element, 0, count($element), 0, false, true, true, true); @endphp
@stop