<!DOCTYPE html>
<html dir="ltr" lang="{{ str_replace('_', '-', app()->getLocale()) }}">

<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <!-- Tell the browser to be responsive to screen width -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta
		name="keywords"
        content="wrappixel, admin dashboard, html css dashboard, web dashboard, bootstrap 5 admin, bootstrap 5, css3 dashboard, bootstrap 5 dashboard, ample admin admin bootstrap 5 dashboard, frontend, responsive bootstrap 5 admin template, material design, material dashboard bootstrap 5 dashboard template"
	>
    <meta name="description" content="Admin Pro is powerful and clean admin dashboard template">
    <meta name="robots" content="noindex,nofollow">
    <meta name="csrf-token" content="{{ csrf_token() }}">

    <title>@yield('title')</title>

    <link rel="canonical" href="https://www.wrappixel.com/templates/ampleadmin/" />
    <!-- Favicon icon -->
    <link rel="icon" type="image/png" sizes="16x16" href="{{asset('assets/images/favicon.png')}}">

	<!-- sweetalert CSS -->
	<link href="{{ asset('/assets/libs/sweetalert2/dist/sweetalert2.min.css')}}" rel="stylesheet">
	<!-- toastr CSS -->
	<link href="{{asset('assets/extra-libs/toastr/dist/build/toastr.min.css')}}" rel="stylesheet">

	<!-- Template's Custom CSS -->
    <link href="{{asset('dist/css/style.min.css')}}" rel="stylesheet">

	<!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
	<![endif]-->

	<!-- your Custom CSS -->
    <link href="{{asset('project/css/styles.css')}}" rel="stylesheet">

    <style>
        /* CSS Style */
         .form-select{
			background-image:url({{asset('assets/images/custom-select.png')}});
		}

        .alert {
            margin: 3rem 2rem 0;
        }

        .alert svg{
            display: none;
        }

        .alert-success svg.success,
        .alert-danger  svg.danger {
            display: block;
        }

        .btn-disabled {
            color: #fff;
            background-color: #8898aa;
            border-color: #8898aa;
            opacity: 0.5;
            pointer-events: none;
        }
    </style>

	<!-- page's css -->
	@yield('css')

</head>

<body>
    <!-- -------------------------------------------------------------- -->
    <!-- Preloader - style you can find in spinners.css -->
    <!-- -------------------------------------------------------------- -->
    <div class="preloader">
        <svg class="tea lds-ripple" width="37" height="48" viewbox="0 0 37 48" fill="none" xmlns="http://www.w3.org/2000/svg">
            <path
                d="M27.0819 17H3.02508C1.91076 17 1.01376 17.9059 1.0485 19.0197C1.15761 22.5177 1.49703 29.7374 2.5 34C4.07125 40.6778 7.18553 44.8868 8.44856 46.3845C8.79051 46.79 9.29799 47 9.82843 47H20.0218C20.639 47 21.2193 46.7159 21.5659 46.2052C22.6765 44.5687 25.2312 40.4282 27.5 34C28.9757 29.8188 29.084 22.4043 29.0441 18.9156C29.0319 17.8436 28.1539 17 27.0819 17Z"
                stroke="var(--gs-primary)"
                stroke-width="2"
            ></path>
            <path
                d="M29 23.5C29 23.5 34.5 20.5 35.5 25.4999C36.0986 28.4926 34.2033 31.5383 32 32.8713C29.4555 34.4108 28 34 28 34"
                stroke="var(--gs-primary)"
                stroke-width="2"
            ></path>
            <path
                id="teabag"
                fill="var(--gs-primary)"
                fill-rule="evenodd"
                clip-rule="evenodd"
                d="M16 25V17H14V25H12C10.3431 25 9 26.3431 9 28V34C9 35.6569 10.3431 37 12 37H18C19.6569 37 21 35.6569 21 34V28C21 26.3431 19.6569 25 18 25H16ZM11 28C11 27.4477 11.4477 27 12 27H18C18.5523 27 19 27.4477 19 28V34C19 34.5523 18.5523 35 18 35H12C11.4477 35 11 34.5523 11 34V28Z"
            ></path>
            <path
                id="steamL"
                d="M17 1C17 1 17 4.5 14 6.5C11 8.5 11 12 11 12"
                stroke-width="2"
                stroke-linecap="round"
                stroke-linejoin="round"
                stroke="var(--gs-secondary)"
            ></path>
            <path
                id="steamR"
                d="M21 6C21 6 21 8.22727 19 9.5C17 10.7727 17 13 17 13"
                stroke="var(--gs-secondary)"
                stroke-width="2"
                stroke-linecap="round"
                stroke-linejoin="round"
            ></path>
        </svg>
    </div>

    <!-- -------------------------------------------------------------- -->
    <!-- Main wrapper - style you can find in pages.scss -->
    <!-- -------------------------------------------------------------- -->
    <div id="main-wrapper">
        <!-- topbar -->
		@include('partials.topbar')

        <!-- Menu -->
		@include('partials.menu')

        <!-- -------------------------------------------------------------- -->
        <!-- Page wrapper  -->
        <!-- -------------------------------------------------------------- -->
        <div class="page-wrapper">
            <!-- Bread crumb -->
			@include('partials.breadcrumb')

            <!-- -------------------------------------------------------------- -->
            <!-- Container fluid  -->
            <!-- -------------------------------------------------------------- -->
            <div class="container-fluid page-content">

                <!-- Page Content -->
				@yield('content')
                <!-- End Page Content -->

            </div>
            <!-- -------------------------------------------------------------- -->
            <!-- End Container fluid  -->
            <!-- -------------------------------------------------------------- -->

			<!-- footer -->
			@include('partials.footer')

        </div>
        <!-- -------------------------------------------------------------- -->
        <!-- End Page wrapper  -->
        <!-- -------------------------------------------------------------- -->
    </div>
    <!-- -------------------------------------------------------------- -->
    <!-- End Wrapper -->
    <!-- -------------------------------------------------------------- -->

	<!-- right sidebar -->
	@include('partials.aside')

    <div class="chat-windows"></div>

    <!-- -------------------------------------------------------------- -->
    <!-- All Jquery -->
    <!-- -------------------------------------------------------------- -->
    <script src="{{asset('assets/libs/jquery/dist/jquery.min.js')}}"></script>
    <!-- Bootstrap tether Core JavaScript -->
    <script src="{{asset('assets/libs/bootstrap/dist/js/bootstrap.bundle.min.js')}}"></script>
    <!-- apps -->
    <script src="{{asset('dist/js/app.min.js')}}"></script>
    <script src="{{asset('dist/js/app.init.horizontal.js')}}"></script>
    <script src="{{asset('dist/js/app-style-switcher.horizontal.js')}}"></script>
    <!-- slimscrollbar scrollbar JavaScript -->
    <script src="{{asset('assets/libs/perfect-scrollbar/dist/perfect-scrollbar.jquery.min.js')}}"></script>
    <script src="{{asset('assets/extra-libs/sparkline/sparkline.js')}}"></script>
    <!--Wave Effects -->
    <script src="{{asset('dist/js/waves.js')}}"></script>
    <!--Menu sidebar -->
    <script src="{{asset('dist/js/sidebarmenu.js')}}"></script>
    <!--Template's Custom JavaScript -->
   	<script src="{{asset('dist/js/feather.min.js')}}"></script>
    <script src="{{asset('dist/js/custom.min.js')}}"></script>
    <!--Moments JS -->
    <script src="{{asset('dist/js/moment-with-locales.min.js')}}"></script>


    <!-- -----------------------------------------------------------------------
		Assuming you'll need toastr and/or sweatalert almost in all your pages
		we include them directly here !
	------------------------------------------------------------------------ -->
	<!-- toastr -->
    <script src="{{asset('assets/extra-libs/toastr/dist/build/toastr.min.js')}}"></script>
	<!-- sweetalert -->
    <script src="{{asset('assets/libs/sweetalert2/dist/sweetalert2.all.min.js')}}"></script>
    <!-- Block-UI -->
    <script src="{{ asset('assets/libs/block-ui/jquery.blockUI.js') }}"></script>

	<!-- project's scripts -->
    <script src="{{asset('project/js/helpers.js')}}"></script>

    {{-- Set custom theme color --}}
    <script>
        var r = document.querySelector(':root');
        r.style.setProperty('--gs-primary', "{{ session('couleurs')['firstColor'] }}");
        r.style.setProperty('--gs-primary-light', "{{ session('couleurs')['firstLight'] }}");
        r.style.setProperty('--gs-text-primary', "{{ session('couleurs')['textColor1'] }}");
        r.style.setProperty('--gs-secondary', "{{ session('couleurs')['secondColor'] }}");
        r.style.setProperty('--gs-secondary-light', "{{ session('couleurs')['secondLight'] }}");
        r.style.setProperty('--gs-text-secondary', "{{ session('couleurs')['textColor2'] }}");
        r.style.setProperty('--gs-third', "{{ session('couleurs')['thirdColor'] }}");
        r.style.setProperty('--gs-third-light', "{{ session('couleurs')['thirdLight'] }}");
        r.style.setProperty('--gs-text-third', "{{ textColor(session('couleurs')['secondLight']) }}");

    </script>
    <script>
        // Sweet Alert
        const swalWithBootstrapButtons = Swal.mixin({
            customClass: {
                confirmButton: 'btn btn-success',
                cancelButton: 'btn btn-danger'
            },
            buttonsStyling: false
        });

        const blockOptions = {
            message: '<i class="fa fa-refresh fa-spin text-dark"></i>',
            // timeout: 2000, //unblock after 2 seconds
            overlayCSS: {
                backgroundColor: 'rgb(0 0 0 / 21%)',
                opacity: 0.5,
                cursor: 'wait'
            },
            css: {
                border: 0,
                padding: 0,
                backgroundColor: 'transparent'
            },
        };

        function showProfile(e) {
            let toActive = $(e).attr('href').split('#')[1];

            $('.profile-tabs .nav-link').removeClass('active');

            $('.profile-tabs + div').find('.tab-pane').removeClass('active');

            $('.nav-link[href="#'+ toActive +'"]').addClass('active');

            $('.tab-pane#'+ toActive).addClass('active');
        }
    </script>

	<!-- page's scripts  -->
	@yield('script')

</body>

</html>
