@if (config('app.env') === 'production') @if(config('giladiskon.use_netcore')) @yield('scriptDataLayer') @endif @endif @yield('imagePreload') @if(config('app.env') === 'production') @endif @yield('meta') @yield('canonical') @php $meta_title = 'Giladiskon | Info Diskon, Promo, dan Katalog Belanja'; $meta_description = 'Informasi promo, diskon, promo online, kode promo dari brand dan merchant pilihan. Belanja hemat hanya dengan Giladiskon.'; $meta_keyword = ""; if(request()->seo) { $meta_title = request()->seo->meta_title ? request()->seo->meta_title : $meta_title; $meta_description = request()->seo->meta_description ? request()->seo->meta_description : $meta_description; $meta_keyword = request()->seo->meta_keyword ? request()->seo->meta_keyword : $meta_keyword; } @endphp @yield('title', $meta_title) @if (env('APP_ENV') != 'production') @endif @hasSection ('meta_keyword') @endif @if (!empty($meta_keyword)) @endif @livewireStyles @yield('headStyleAndScript') @yield('scriptBodyTop')
@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 @livewireScripts