@inject('helper', 'App\Helpers\BladeHelper') @php $layout = 'site.layout.app'; if ($data['slug'] == 'about-app') { $layout = 'site.layout.landing'; } @endphp @extends($layout) @section('content') @if ($data['slug'] != 'about-app') @include('site.partials.breadcrumb', [ 'title' => $data['title_' . $locale], 'links' => [ __('site.Home') => url('/' . $locale), $data['title_' . $locale] => '', ], ]) @endif @php $model_sections = $seo && $seo->module ? $seo->module->getModelSections('sections') : null; @endphp
@php $menu_items = []; @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); } $values = $model_section->section->get_values($locale); if (isset($values['menu']['lable_menu']) && $values['menu']['lable_menu'] != '') { $menu_items[$model_section->section->src] = $values['menu']['lable_menu']; } @endphp @include('site.TemplateSection.' . $model_section->section->src, [ 'values' => $values, 'css_classes' => $model_section->get_css_classes(), 'animation' => $animation, ]) @endif @endforeach @endif
@stop