<!doctype html>
<html lang="fr">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="robots" content="noindex, nofollow">
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>Jardin'enVie</title>
    <meta name="description" content="Vente de semences, variété anciennes">
    <meta name="keywords" content="">

    <link rel="icon" type="image/vnd.microsoft.icon" href="{{ asset('img/favicon.ico') }}">
    <link rel="shortcut icon" type="image/x-icon" href="{{ asset('img/favicon.ico') }}">
    <link rel="stylesheet" href="/css/site.min.css?{{ date('Ymd') }}" type="text/css" media="all">

    @stack('styles')
    @stack('css')

</head>

<body class="bg-green-dark">

    <div class="container bg-light" style="min-height: 100vh;">
        <main>
            @include('Shop.layout.partials.header')
            <div class="content-wrapper">
                <section>
                    <div class="container-fluid p-0">
                        @yield('content')
                    </div>
                </section>
            </div>
            @include('Shop.layout.partials.footer')
            @include('cookie-consent::index')
        </main>
    </div>

    <script type="text/javascript" src="/js/site.min.js"></script>

    @stack('scripts')

    <script>
        $.ajaxSetup({
            headers: {
                'X-CSRF-TOKEN': '{{ csrf_token() }}'
            }
        });
    </script>
    @if (Session::has('growl'))
        <script>
            $(function() {
                @if (is_array(Session::get('growl')))
                    growl("{!! Session::get('growl')[0] !!}", "{{ Session::get('growl')[1] }}");
                @else
                    growl("{{ Session::get('growl') }}");
                @endif
            });
        </script>
    @endif

    <script>
        function refreshBasketTop() {
            $.get("{{ route('Shop.Basket.getSummary') }}", function(response) {
                $('#count-basket').html(response.data.quantity);
                $('#total-basket').html(response.data.total);
            });
        }
    </script>

    @stack('js')

</body>

</html>
