@extends('layouts.' . $template_name) @section('own-content') {{-- se incluye el contenedor sidebar y subheader --}} @include('shared.commons.container-sidebar-subheader', ['windows_side' => true]) {{-- json_encode($array_logos) --}} @if ($template_name != 'template6') {{-- section slider primary for all templates --}} @include('shared.slider-body'.(($template_config->template->slider_models == 'backgrund') ? '-'.$template_config->template->slider_models:'')) {{-- section name-resto for all templates --}} @include('shared.sections.home-section-name') {{-- ./ --}} @if ($template_name != 'template3') {{-- section btns apps for all templates --}} @include('shared.sections.home-section-apps') {{-- ./ --}} @endif {{-- sections for templates --}} @php // organizate sections for attr order $collection = collect($page_config->seccion)->sortBy('order'); @endphp @foreach ($collection as $section) @if ($section->is_active) @includeIf('shared.' . $template_name . '.home_section' . $section->id, ['data' => $section]) @endif @endforeach {{-- ./ --}} @endif @if ($template_name == 'template6') @include('shared.template6.slider-body') @include('shared.template6.home_section1') @include('shared.template6.home_section2') @include('shared.template6.home_section3') {{-- section btns apps for all templates --}} @include('shared.sections.home-section-apps') {{-- ./ --}} @include('layouts.modal-confirm-location') @endif {{-- ./ --}} {{-- json_encode($branches) --}} @stop