{{-- huy copy --}} @yield('title') @yield('meta-sale') {{-- /huy copy --}} @if(config('app.env') === 'production') @endif @yield('style_link') @yield('style_code') @php $footer = $footer ?? true; @endphp {{-- @if (Request::header('Sec-Fetch-Dest') !== 'iframe') @endif --}}
@php $route = \Request::route(); $routeName = $route ? $route->getName() : null; $showNavbarRoutes = [ 'scripts.index', 'config-market.index', 'proxy-optimize.index', 'scripts.index-2', 'product.show', 'config-market.index-2', 'config-market.detail', 'proxy-optimize.index-2', 'proxy-optimize.detail', 'redeem-code.detail', 'redeem-code.index', 'resource-mmo.index', ]; $shouldShowNavbar = in_array($routeName, $showNavbarRoutes) || Request::header('Sec-Fetch-Dest') !== 'iframe'; @endphp @if($shouldShowNavbar) @include('user.layouts.sections.navbar.navbar') @endif @include('user.layouts.sections.navbar.navbarv2')
@yield('banner')
@yield('content')
@if (Request::header('Sec-Fetch-Dest') !== 'iframe') @if (isset($footer) && $footer)
@include('user.layouts.sections.footer.footerv2')
@endif @endif @include('layouts/sections/js') @include('layouts.sections.toastr') @yield('script_link') @yield('script_code')