<!DOCTYPE html>
<html lang="Az" data-footer="true">

<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1">
	<title>Menyum.az Dashboard</title>
	<meta name="description" content="Menyu Code Symphony terefinden hazirlanmisdir">
	<link rel="icon" type="image/png" href="{{asset('/assets/web/image/durremlogo.png')}}" sizes="128x128">
	<meta name="application-name" content="&nbsp;">
	<meta name="msapplication-TileColor" content="#FFFFFF">
	<meta name="msapplication-TileImage" content="{{ asset('/assets/admin/menu/img/favicon/mstile-144x144.png') }}">
	<meta name="msapplication-square70x70logo" content="{{ asset('/assets/admin/menu/img/favicon/mstile-70x70.png') }}">
	<meta name="msapplication-square150x150logo" content="{{ asset('/assets/admin/menu/img/favicon/mstile-150x150.png') }}">
	<meta name="msapplication-wide310x150logo" content="{{ asset('/assets/admin/menu/img/favicon/mstile-310x150.png') }}">
	<meta name="msapplication-square310x310logo" content="{{ asset('/assets/admin/menu/img/favicon/mstile-310x310.png') }}">
	<link rel="preconnect" href="https://fonts.gstatic.com">
	<link href="https://fonts.googleapis.com/css2?family=Nunito+Sans:wght@300;400;700&display=swap" rel="stylesheet">
	<link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;700&display=swap" rel="stylesheet">
	<link rel="stylesheet" href="{{ asset('/assets/admin/menu/font/CS-Interface/style.css') }}">
	<link rel="stylesheet" href="{{ asset('/assets/admin/menu/css/vendor/bootstrap.min.css') }}">
    <link rel="shortcut icon" href="{{asset('/assets/web/image/sahil.jpeg')}}" type="image/x-icon">
	<link rel="stylesheet" href="{{ asset('/assets/admin/menu/css/vendor/OverlayScrollbars.min.css') }}">
	<link rel="stylesheet" href="{{ asset('/assets/admin/menu/css/styles.css') }}">
	<link rel="stylesheet" href="{{ asset('/assets/admin/menu/css/main.css') }}">
	<script src="{{ asset('/assets/admin/menu/js/base/loader.js') }}"></script>


    @stack('css')

    <script src="https://cdn.datatables.net/1.11.3/js/jquery.dataTables.min.js"></script>
    <link rel="stylesheet" href="https://cdn.datatables.net/1.11.3/css/jquery.dataTables.min.css">

</head>

<body>
	<div id="root">
		@include('app.admin.includes.header')
		@yield('content')
		@include('app.admin.includes.footer')
	</div>
    <script src="https://cdn.ckeditor.com/4.16.0/standard/ckeditor.js"></script>

    <script>
        document.addEventListener('DOMContentLoaded', function() {
            CKEDITOR.replace('description_az');
            CKEDITOR.replace('description_ru');
            CKEDITOR.replace('description_en');
            CKEDITOR.replace('description_meta');
            CKEDITOR.replace('condition_az');
            CKEDITOR.replace('condition_ru');
            CKEDITOR.replace('condition_en');
            CKEDITOR.replace('description');
            CKEDITOR.replace('keyword');
        });
    </script>

	<!-- SweetAlert2 CSS -->
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/sweetalert2@11/dist/sweetalert2.min.css">

<!-- SweetAlert2 JS -->
<script src="https://cdn.jsdelivr.net/npm/sweetalert2@11"></script>



<script>
    @if(session('success'))
        Swal.fire({
            icon: 'success',
            title: '{{ session('success') }}',
            timer: 5000,
            showConfirmButton: false
        });
    @endif

    @if(session('warning'))
        Swal.fire({
            icon: 'warning',
            title: '{{ session('warning') }}',
            timer: 5000,
            showConfirmButton: false
        });
    @endif

    @if(session('info'))
        Swal.fire({
            icon: 'info',
            title: '{{ session('info') }}',
            timer: 5000,
            showConfirmButton: false
        });
    @endif

    @if(session('status'))
        Swal.fire({
            icon: 'info',
            title: '{{ session('status') }}',
            timer: 5000,
            showConfirmButton: false
        });
    @endif

    @if($errors->any())
        let errorMessages = '';

        @foreach ($errors->all() as $error)
            errorMessages += "{{ $error }}<br>";
        @endforeach

        Swal.fire({
            icon: 'error',
            title: '{{ __('Error') }}',
            html: errorMessages,
        });
    @endif
</script>
	<script src="{{ asset('/assets/admin/menu/js/vendor/jquery-3.5.1.min.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/js/vendor/bootstrap.bundle.min.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/js/vendor/OverlayScrollbars.min.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/js/vendor/autoComplete.min.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/js/vendor/clamp.min.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/icon/acorn-icons.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/icon/acorn-icons-interface.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/js/vendor/jquery.barrating.min.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/js/base/helpers.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/js/base/globals.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/js/base/nav.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/js/base/search.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/js/base/settings.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/js/pages/dashboard.visual.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/js/common.js') }}"></script>
	<script src="{{ asset('/assets/admin/menu/js/scripts.js') }}"></script>
    @stack('js')
</body>

</html>
