<!-- theme preloader Start -->
@include('frontend.includes.partials.preloader')
<!-- theme preloader end -->
<!-- back to top area Start -->
@include('frontend.includes.partials.backToTop')
<!-- back to top area end -->

<!-- jquery -->
<script src="{{ asset('assets/js/jquery-3.7.1.min.js') }}"></script>
<!-- bootstrap five js -->
<script src="{{ asset('assets/js/bootstrap.bundle.min.js') }}"></script>
<!-- nice select js -->
<script src="{{ asset('assets/js/jquery.nice-select.min.js') }}"></script>
<!-- magnific popup js -->
<script src="{{ asset('assets/js/jquery.magnific-popup.min.js') }}"></script>
<!-- swiper slider js -->
<script src="{{ asset('assets/js/swiper-bundle.min.js') }}"></script>
<!-- viewport js -->
<script src="{{ asset('assets/js/viewport.jquery.js') }}"></script>
<!-- odometer js -->
<script src="{{ asset('assets/js/odometer.min.js') }}"></script>
<!-- vanilla tilt js -->
<script src="{{ asset('assets/js/vanilla-tilt.min.js') }}"></script>
<!-- aos js -->
<script src="{{ asset('assets/js/aos.js') }}"></script>
<!-- splittext js -->
<script src="{{ asset('assets/js/SplitText.min.js') }}"></script>
<!-- scrollto js -->
<script src="{{ asset('assets/js/ScrollToPlugin.min.js') }}"></script>
<!-- scrolltrigger js -->
<script src="{{ asset('assets/js/ScrollTrigger.min.js') }}"></script>
<!-- gsap js -->
<script src="{{ asset('assets/js/gsap.min.js') }}"></script>
<!-- ==== / js dependencies end ==== -->
<!-- template settings js -->
<script src="{{ asset('assets/js/template-settings.js') }}"></script>
<!-- main js -->
<script src="{{ asset('assets/js/custom.js') }}"></script>
<!-- Toastr js -->
<script src="{{ asset('assets/js/toastr.min.js') }}"></script>

@if ($errors->any())
    @foreach ($errors->all() as $error)
        <script>
            (function($) {
                "use strict";
                toastr.warning('{{ $error }}')
            })
            (jQuery);
        </script>
    @endforeach
@endif
@if (Session::has('message'))
    <script>
        (function($) {
            "use strict";
            toastr.success('{{ Session::get('message') }}');
        })(jQuery);
    </script>
@endif
@if (session()->has('success'))
    <script>
        (function($) {
            "use strict";
            toastr.success('{{ session()->get('success') }}')
        })(jQuery);
    </script>
@endif
@if (session()->has('error'))
    <script>
        (function($) {
            "use strict";
            toastr.error('{{ session()->get('error') }}')
        })(jQuery);
    </script>
@endif
