@section('header_second')
@if ($page->header) @if (layout_module()) @php $file = layout_module()->top_header; $file_name = layout_module()->top_header . '.blade.php'; $file_path = resource_path('views/livewire/frontend/modules/header'); @endphp @if (isset($file) && $page->top_header) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.header.' . $file) @endif @endif @if(layout_module()->sub_header) @php $file = layout_module()->sub_header; $file_name = layout_module()->sub_header . '.blade.php'; $file_path = resource_path('views/livewire/frontend/modules/header'); @endphp @if (isset($file) && $page->sub_header) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.header.' . $file) @endif @endif @endif @php $file = layout_module()->header; $file_name = layout_module()->header . '.blade.php'; $file_path = resource_path('views/livewire/frontend/modules/header'); @endphp @if (isset($file) && $page->menu_header) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.header.' . $file) @endif @endif @php $file = layout_module()->bottom_header; $file_name = layout_module()->bottom_header . '.blade.php'; $file_path = resource_path('views/livewire/frontend/modules/header'); @endphp @if (isset($file) && $page->menu_header) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.header.' . $file) @endif @endif @endif @endif
@yield('content') @if ($page->footer) @if (layout_module()) @php $file = layout_module()->top_footer; $file_name = layout_module()->top_footer . '.blade.php'; $file_path = resource_path('views/livewire/frontend/modules/footer'); @endphp @if (isset($file) && $page->top_footer) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.footer.' . $file) @endif @endif @php $file = layout_module()->footer; $file_name = layout_module()->footer . '.blade.php'; $file_path = resource_path('views/livewire/frontend/modules/footer'); @endphp @if (isset($file) && $page->menu_footer) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.footer.' . $file) @endif @endif @php $file = layout_module()->sub_footer; $file_name = layout_module()->sub_footer . '.blade.php'; $file_path = resource_path('views/livewire/frontend/modules/footer'); @endphp @if (isset($file) && $page->sub_footer) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.footer.' . $file) @endif @endif @php $file = layout_module()->button_footer; $file_name = layout_module()->button_footer . '.blade.php'; $file_path = resource_path('views/livewire/frontend/modules/footer'); @endphp @if (isset($file) && $page->buttom_footer) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.footer.' . $file) @endif @endif @endif @endif
@endsection