@extends('admin.layout.master') @section('admin')
{{ Breadcrumbs::render('admin.themes.components.insert',$theme) }}

{!! trans('admin/themes.components.insert.title',['title'=>$theme->title]) !!}

@if($themeComponentDetailStatus)
{{$themeComponentDetail[
{!! trans('admin/themes.components.component_detail.title',['title'=>$themeComponentDetail["title"]]) !!}
{!! trans('admin/themes.components.component_detail.type',['type'=>$themeComponentDetail["type"]]) !!}

{{trans("admin/themes.components.component_detail.general")}}

@if($errors->any())
@foreach ($errors->all() as $error) {{ $error }}
@endforeach
@endif {{ html()->form()->method('POST')->class("form modulForm")->id("modulForm")->autocomplete("off")->attribute('enctype','multipart/form-data')->open() }} {{html()->hidden("component_type")->name("component_type")->value($themeComponentDetail["type"])}}
{{html()->label()->for("title")->text(trans("admin/themes.components.form.title")) }} {{html()->input()->name("title")->value(null)->id("title")->class("form-control")->required(true)}}
@include("admin.pages.themes.components.partials.".$themeComponentDetail["type"],['form'=>$form,'themeComponentRelational'=>[]])
{{ html()->button()->type("submit")->class("btn btn-info btn-sm")->id("btnAction")->html(' '.trans("admin/themes.components.insert.form.btn_insert")) }}
{{ html()->form()->close() }}
@endif @if(!$themeComponentDetailStatus)
@foreach($componentTypes as $componentTypeKey_2=>$componentTypeVal_2) @php $list=array_key_exists($componentTypeKey_2,$groupedListData) ? $groupedListData[$componentTypeKey_2]:[]; @endphp
@foreach($list as $lst) @endforeach
@php $tcnt++; @endphp @endforeach
@endif
@endsection @section('admin.javascript')