<script src="{{ asset('front/theme-2/js/jquery-3.7.1.min.js') }}"></script>
<script src="{{ asset('front/theme-2/js/bootstrap.bundle.min.js') }}"></script>
<script src="{{ asset('front/theme-2/js/select2.min.js') }}"></script>
<script src="{{ asset('front/theme-2/js/jquery.nice-select.min.js') }}"></script>
<script src="{{ asset('front/theme-2/js/jquery.appear.min.js') }}"></script>
<script src="{{ asset('front/theme-2/js/odometer.min.js') }}"></script>
<script src="{{ asset('front/theme-2/js/magnific-popup.min.js') }}"></script>
<script src="{{ asset('front/theme-2/js/swiper.min.js') }}"></script>
<script src="{{ asset('front/theme-2/js/cookie.js') }}"></script>
<script src="{{ asset('front/theme-2/js/meanmenu.min.js') }}"></script>
<script src="{{ asset('front/theme-2/js/main.js') }}"></script>
<script src="{{ asset('global/js/lucide.min.js') }}"></script>
<script src="{{ asset('global/js/custom.js?v=1.1') }}"></script>

<script>
    "use strict";

    lucide.createIcons();

    // Color Switcher
    $(".color-switcher").on('click', function () {
        $("body").toggleClass("dark-theme");

        var url = '{{ route("mode-theme") }}';

        $.get(url);
    });

    // let isDisabled = "{{ setting('site_animation','permission') == 1 ?  'mobile' : 'true' }}"

    // $(window).on('load', function () {
    //     AOS.init({
    //         duration: 1000,
    //         mirror: true,
    //         once: true,
    //         disable: isDisabled == 'true' ? true : 'mobile',
    //     });
    // });

</script>

@include('global.__t_notify')
@if(auth()->check())
    <script src="{{ asset('global/js/pusher.min.js') }}"></script>
    @include('global.__notification_script',['for'=>'user','userId' => auth()->user()->id])
@endif
@yield('script')
@stack('js')
@php
    $googleAnalytics = plugin_active('Google Analytics');
    $tawkChat = plugin_active('Tawk Chat');
    $fb = plugin_active('Facebook Messenger');
@endphp

@if($googleAnalytics)
    @include('frontend::plugin.google_analytics',['GoogleAnalyticsId' => json_decode($googleAnalytics?->data,true)['app_id']])
@endif
@if($tawkChat)
    @include('frontend::plugin.tawk',['data' => json_decode($tawkChat->data, true)])
@endif
@if($fb)
    @include('frontend::plugin.fb',['data' => json_decode($fb->data, true)])
@endif


