@extends('themes.default.layout.master') @section('content')
@foreach($uiThemeComponents as $uiThemeComponent) @php $componentName='themes.default.components.'.$uiThemeComponent["component_type"]."." . $uiThemeComponent["theme_component"]; $componentPath = resource_path('views/' . str_replace('.', '/', $componentName) . '.blade.php'); $data=[ "title"=>$uiThemeComponent["title"], "themeID"=>$uiThemeComponent["theme_id"], "themeComponentRelID"=>$uiThemeComponent["id"], "limit"=>$uiThemeComponent["limit"], "contentType"=>$uiThemeComponent["content_type"], "componentSettings"=>json_decode($uiThemeComponent["component_settings"],true), "sliderWidth"=>$uiThemeComponent["slider_width"], "sliderHeight"=>$uiThemeComponent["slider_height"], "detail"=>$uiThemeComponent ]; @endphp @if (file_exists($componentPath)) @dynamicComponent($componentName,$data) @endif @endforeach
@endsection