{{$content->title}} / {{trans('admin/contents.content_features.title')}}
{{ html()->form()->method('POST')->class("form modulForm")->id("modulForm")->autocomplete("off")->attribute('enctype','multipart/form-data')->open() }}
@foreach($contentFeatureList as $contentFeature)
@php
$contentFeatureType=$contentFeature->type;
$val="";
if(array_key_exists($contentFeature->id,$contentFeatureRel)){
$val=$contentFeatureRel[$contentFeature->id];
}
@endphp
@endforeach
{{trans("admin/contents.content_features.form.lang")}}
: {{html()->span()->style(['font-weight'=>'bold'])->text($content->language!==null ? $content->language->title: $content->lang_code)}}
{{html()->label()->for("html-".$contentFeature->id)->html($contentFeature->title) }}
@if($contentFeatureType==="text")
{{html()->textarea()->value($val)->name("html[".$contentFeature->id."]")->style(['max-height'=>'150px','min-height'=>'150px'])->id("html-".$contentFeature->id."-".$contentFeatureType)->class("form-control")}}
@elseif($contentFeatureType==="date")
@php
if(!empty($val)){
$val=\Carbon\Carbon::parse($val)->format("Y-m-d");
}
@endphp
{{html()->date()->value($val)->attribute('pattern','\d{2}/\d{2}/\d{4}')->name("html[".$contentFeature->id."]")->id("html-".$contentFeature->id."-".$contentFeatureType)->class("form-control")}}
@elseif($contentFeatureType==="input")
{{html()->input()->value($val)->name("html[".$contentFeature->id."]")->id("html-".$contentFeature->id."-".$contentFeatureType)->class("form-control")}}
@endif
{{html()->p()->style(['font-size'=>'12px'])->text($contentFeature->description)}}
{{ html()->button()->type("submit")->class("btn btn-info btn-sm")->id("btnAction")->html(' '.trans("admin/contents.content_features.detail.form.action")) }}
{{ html()->form()->close() }}