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

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

  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 del case study è 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->insertTextareaInputField("Sottotitolo", "subtitle_".$lang_id, $value, "", "#666666", ($l == 0), 0, 0, 1000, false, false, false); $value = str_replace('"', '"', ($boxlang != NULL ? $boxlang->pretext : '')); echo $form->insertTextareaInputField("Didascalia", "pretext_".$lang_id, $value, "", "#666666", false, 0, 0, 1000, false, false, false); $value = str_replace('"', '"', ($boxlang != NULL ? $boxlang->text : '')); echo $form->insertTextareaInputField("Testo", "text_".$lang_id, $value, "", "#666666", ($l == 0), 0, 0, 1000, false, true, false); $value = str_replace('"', '"', (($boxlang != NULL) ? $boxlang->alt_cover : '')); echo $form->insertTextInputField("Alt cover", "alt_cover_".$lang_id, $value, "", "#555", false, 0, 0, 155); @endphp @if(count($languages) > 1)
@endif @endfor @endif
@include('admin.page.form.file', array( 'index' => 1, 'placeholder' => 'Cover', 'field' => 'cover', 'base_img_url' => asset('img/casestudy/thumb/'), 'singleimage' => true, 'dimension' => 'W: 1800', 'extensions' => 'jpg, jpeg, gif, png' ))
Tecnologie
@for($n = 0; $n < count($technologies); $n++)
@php $ischecked = ($technologies[$n]->checked == 0 ? "" : " ischecked=\"1\" checked=\"checked\""); @endphp
@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 del case study"; array_push($element, $obj); echo $form->insertCheckboxGroup(" ", "published", $element, 0, count($element), 0, false, true, true, true); @endphp
@stop