@if (config('app.env') === 'production') @yield('scriptDataLayer') @endif @yield('imagePreload') @if(config('app.env') === 'production') @endif @yield('title', 'Giladiskon | Info Diskon, Promo, dan Katalog Belanja') @hasSection ('meta_description') @endif @hasSection ('meta_keyword') @endif @yield('headStyleAndScript')
@php $page_route = Route::currentRouteName() ? Route::currentRouteName() : null; $page = explode('.', $page_route); $type = ''; if($page[0] == "vouchers" || $page[0] == "deals" ) { $type = $page[0] == "vouchers" ? "voucher" : "deal"; } @endphp {{-- --}} @include('layouts.header') @yield('loginMobile') @yield('headerMobile') @yield('pageHeader') @yield('content') @section('mobileMenu') @show @section('footer') @include('layouts.footer') @show @yield('modal') @include('modal._modalLogin') @include('modal._modalLoader')
@section('script') @php $register_arrr_route = ["premium", "vouchers.detail", "user"]; @endphp @if(($user && ($user->expired_date == "" || \Carbon\Carbon::now()->addMonth(3) > $user->expired_date)) || in_array(Route::currentRouteName(), $register_arrr_route) || Str::contains(Route::currentRouteName(), "user")) @endif @show