@php $limit=5; $contentType="content"; if(count($themeComponentRelational) > 0){ $limit=$themeComponentRelational["limit"]; $contentType=$themeComponentRelational["content_type"]; } @endphp
{{html()->label()->for("content_type")->text(trans("admin/themes.components.form.content_type")) }} @if(count($themeComponentRelational) > 0) @php $typeTitle=array_key_exists($contentType,$form["componentContentTypes"]) ? $form["componentContentTypes"][$contentType]:$contentType; @endphp : {{html()->span()->text($typeTitle)->style(['font-size'=>'12px','font-weight'=>'bold']) }} {{html()->hidden()->name("content_type")->value($contentType)->id("content_type")->class("form-control content_type")}} @else {{html()->select()->name("content_type")->options($form["componentContentTypes"])->value($contentType)->id("content_type")->class("form-control content_type")}} @endif
{{html()->label()->for("limit")->text(trans("admin/themes.components.form.limit")) }} {{html()->number()->name("limit")->value($limit)->required(true)->id("limit")->class("form-control")}}