{!! trans('admin/themes.components.detail.title',['title'=>$themeComponentRelational->title]) !!}
@if(session()->has('validationErrors'))
{!! session()->get('validationErrors') !!}
@endif
@if($errors->any())
@foreach ($errors->all() as $error)
{!! $error !!}
@endforeach
@endif
@endforeach
{!! trans('admin/themes.components.component_detail.title',['title'=>$themeComponentDetail["preview_title"]]) !!}
{!! trans('admin/themes.components.component_detail.type',['type'=>$themeComponentDetail["preview_type"]]) !!}
{!! trans('admin/themes.components.component_detail.type',['type'=>$themeComponentDetail["preview_type"]]) !!}
{{ html()->form()->method('POST')->class("form modulForm")->id("modulForm")->autocomplete("off")->attribute('enctype','multipart/form-data')->open() }}
@if($themeComponentDetail["preview_type"]==="content" || $themeComponentDetail["preview_type"]==="slider")
@endif
@include("admin.pages.themes.components.partials.".$themeComponentDetail["preview_type"],['form'=>$form,'themeComponentRelational'=>$themeComponentRelational->toArray()])
{{ html()->form()->close() }}
{{trans("admin/themes.components.component_detail.component_settings.title")}}
@foreach($form["languages"] as $lang)
@php
$langID=$lang["id"];
$langCode=$lang["code"];
$componentSettingTitle="";
$componentSettingDescription="";
$componentSettingLink="";
$componentSettingLinkText="";
if(is_array($componentSettings)){
$componentSettingTitle=array_key_exists($langCode,$componentSettings) ? array_key_exists('title',$componentSettings[$langCode]) ? $componentSettings[$langCode]["title"]:"":"";
$componentSettingDescription=array_key_exists($langCode,$componentSettings) ? array_key_exists('description',$componentSettings[$langCode]) ? $componentSettings[$langCode]["description"]:"":"";
$componentSettingLink=array_key_exists($langCode,$componentSettings) ? array_key_exists('link',$componentSettings[$langCode]) ? $componentSettings[$langCode]["link"]:"":"";
$componentSettingLinkText=array_key_exists($langCode,$componentSettings) ? array_key_exists('link_text',$componentSettings[$langCode]) ? $componentSettings[$langCode]["link_text"]:"":"";
}
@endphp
@endforeach
{{html()->label()->for("lang")->html(trans("admin/contents.form.lang")) }}
{{html()->span()->id("lang-".$langID)->html($lang["title"])->style(['font-size'=>'12px','margin'=>' 5px 0','font-weight'=>'bold']) }}
{{html()->label("componentSettingTitle")->for("componentSettingTitle")->text(trans("admin/themes.components.component_detail.component_settings.form.title"))}}
{{html()->input()->name("componentSettings[".$langCode."][title]")->value($componentSettingTitle)->id("componentSettingTitle")->class("form-control")}}
{{html()->label("componentSettingDescription")->for("componentSettingDescription")->text(trans("admin/themes.components.component_detail.component_settings.form.description"))}}
{{html()->textarea()->name("componentSettings[".$langCode."][description]")->value($componentSettingDescription)->id("componentSettingDescription")->class("form-control")->style(['min-height'=>'100px','max-height'=>'100px'])}}
{{html()->label("componentSettingTitle")->for("componentSettingTitle")->text(trans("admin/themes.components.component_detail.component_settings.form.link"))}}
{{html()->input()->name("componentSettings[".$langCode."][link]")->value($componentSettingLink)->id("componentSettingLink")->class("form-control")}}
{{html()->label("componentSettingTitle")->for("componentSettingTitle")->text(trans("admin/themes.components.component_detail.component_settings.form.link_text"))}}
{{html()->input()->name("componentSettings[".$langCode."][link_text]")->value($componentSettingLinkText)->id("componentSettingLinkText")->class("form-control")}}
{{trans("admin/themes.components.component_detail.general")}}
{{html()->hidden("component_type")->name("component_type")->value($themeComponentDetail["preview_type"])}}
{{html()->label()->for("status")->text(trans("admin/themes.components.form.status")) }}
{{html()->select()->options( $form["statuses"])->name("status")->required(true)->value($themeComponentRelational->status)->id("status")->class("form-control")}}
{{html()->label()->for("title")->text(trans("admin/themes.components.form.title")) }}
{{html()->input()->name("title")->required(true)->value($themeComponentRelational->title)->id("title")->class("form-control")}}
{{html()->label()->for("margin_top")->text(trans("admin/themes.components.form.margin_top")) }}
{{html()->number()->required(true)->name("margin_top")->value($themeComponentRelational->margin_top)->id("margin_top")->class("form-control")}}
{{html()->label()->for("margin_right")->text(trans("admin/themes.components.form.margin_right")) }}
{{html()->number()->required(true)->name("margin_right")->value($themeComponentRelational->margin_right)->id("margin_right")->class("form-control")}}
{{html()->label()->for("margin_bottom")->text(trans("admin/themes.components.form.margin_bottom")) }}
{{html()->number()->required(true)->name("margin_bottom")->value($themeComponentRelational->margin_bottom)->id("margin_bottom")->class("form-control")}}
{{html()->label()->for("margin_left")->text(trans("admin/themes.components.form.margin_left")) }}
{{html()->number()->required(true)->name("margin_left")->value($themeComponentRelational->margin_left)->id("margin_left")->class("form-control")}}
{{html()->label()->for("padding_top")->text(trans("admin/themes.components.form.padding_top")) }}
{{html()->number()->required(true)->name("padding_top")->value($themeComponentRelational->padding_top)->id("padding_top")->class("form-control")}}
{{html()->label()->for("padding_right")->text(trans("admin/themes.components.form.padding_right")) }}
{{html()->number()->required(true)->name("padding_right")->value($themeComponentRelational->padding_right)->id("padding_right")->class("form-control")}}
{{html()->label()->for("padding_bottom")->text(trans("admin/themes.components.form.padding_bottom")) }}
{{html()->number()->required(true)->name("padding_bottom")->value($themeComponentRelational->padding_bottom)->id("padding_bottom")->class("form-control")}}
{{html()->label()->for("padding_left")->text(trans("admin/themes.components.form.padding_left")) }}
{{html()->number()->name("padding_left")->required(true)->value($themeComponentRelational->padding_left)->id("padding_left")->class("form-control")}}
{{html()->label()->for("bg_color")->text(trans("admin/themes.components.form.bg_color")) }}
{{html()->input()->name("bg_color")->value($themeComponentRelational->bg_color)->id("bg_color")->attribute('data-control','hue')->style(['padding-left'=>'40px'])->class("form-control arkplanRengiPicker")}}
{{ html()->button()->type("submit")->class("btn btn-info btn-sm")->id("btnAction")->html(trans("admin/themes.components.detail.form.btn_update")) }}