@section('header_second')
@if (layout_module()) @php $t_h_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($t_h_file)) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.header.' . $t_h_file) @endif @endif @if(layout_module()->sub_header) @php $s_h_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($s_h_file)) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.header.' . $s_h_file) @endif @endif @endif @php $h_file = layout_module()->header; $file_name = layout_module()->header . '.blade.php'; $file_path = resource_path('views/livewire/frontend/modules/header'); @endphp @if (isset($h_file)) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.header.' . $h_file) @endif @endif @php $b_h_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($b_h_file)) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.header.' . $b_h_file) @endif @endif @endif
@yield('content') @if (layout_module()) @php $f_file = layout_module()->footer; $file_name = layout_module()->footer . '.blade.php'; $file_path = resource_path('views/livewire/frontend/modules/footer'); @endphp @if (isset($f_file)) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.footer.' . $f_file) @endif @endif @endif @if (layout_module()) @php $s_f_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($s_f_file)) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.footer.' . $s_f_file) @endif @endif @php $b_f_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($b_f_file)) @if (is_file($file_path . '/' . $file_name) && file_exists($file_path . '/' . $file_name)) @livewire('frontend.modules.footer.' . $b_f_file) @endif @endif @endif
@endsection