@php $is_home_page = true; @endphp @inject('helper', 'App\Helpers\BladeHelper') @extends('site.layout.app') @section('content') @php $model_sections = $seo && $seo->module ? $seo->module->getModelSections('sections') : null; @endphp @if ($model_sections) @foreach ($model_sections as $model_section) @if ($model_section->section && $model_section->section->src) @php $animation = $model_section->animation ?? ''; if ($_dir == 'rtl') { $animation = str_replace('right', 'xxxeftxxx', $animation); $animation = str_replace('left', 'xxxightxxx', $animation); $animation = str_replace('xxxightxxx', 'right', $animation); $animation = str_replace('xxxeftxxx', 'left', $animation); } @endphp @include('site.TemplateSection.' . $model_section->section->src, [ 'values' => $model_section->section->get_values($locale), 'css_classes' => $model_section->get_css_classes(), 'animation' => $animation, ]) @endif @endforeach @endif @stop