@php use App\Library\ComponentLibrary as ComponentLibrary; $themeComponenContentList=ComponentLibrary::themeComponenContentList($themeID,$themeComponentRelID,$limit,$contentType); $langCode=config('app.locale'); $componentSettingTitle=""; $componentSettingDescription=""; 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"]:"":""; } $margin=sprintf("margin:%spx %spx %spx %spx",$detail["margin_top"],$detail["margin_right"],$detail["margin_bottom"],$detail["margin_left"]); $padding=sprintf("padding:%spx %spx %spx %spx",$detail["padding_top"],$detail["padding_right"],$detail["padding_bottom"],$detail["padding_left"]); $bgColor=sprintf('background-color:%s',$detail["bg_color"]); @endphp @if(count($themeComponenContentList) > 0)
@if(is_array($componentSettings))
@if(!empty($componentSettingTitle))

{{$componentSettingTitle}}

@endif @if(!empty($componentSettingDescription))

{{$componentSettingDescription}}

@endif
@endif
@foreach($themeComponenContentList as $themeComponenContent)
@if(!empty($themeComponenContent["default_image_full"]))
{{$themeComponenContent[
@endif
@endforeach
@endif