<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1,
            shrink-to-fit=no" />
    <meta name="description" content="" />
    <meta name="keywords" content="" />
    <meta name="csrf-token" content="{{ csrf_token() }}">
    <link rel="shortcut icon" href="{{url('')}}/assets/web/images/logo_icon.png" title="Favicon" sizes="16x16" />

    <!--With LTR -->
    <!-- <link rel="stylesheet" href="{{url('')}}/assets/web/css/lib/bootstrap.min.css"> -->
    <!--  -->

    <!--With RTL -->
    <link rel="stylesheet" href="{{url('')}}/assets/web/css/lib/bootstrap.rtl.min.css" />
    <!--  -->

    <!-- google font -->
    <!--  -->

    <link rel="stylesheet" href="{{url('')}}/assets/web/css/lib/animate.css" />
    <link rel="stylesheet" href="{{url('')}}/assets/web/css/lib/jquery.fancybox.css" />
    <link rel="stylesheet" href="{{url('')}}/assets/web/css/lib/swiper.min.css" />
    <link rel="stylesheet" href="{{url('')}}/assets/web/css/lib/all.min.css" />
    <link rel="stylesheet" href="{{url('')}}/assets/web/css/style.css" />
    <!-- <link rel="stylesheet" href="{{url('')}}/assets/web/css/style_en.css"> -->
    <script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>
    <link  rel="stylesheet" type="text/css" href="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.css">
    <!--Page Name-->
    <title> {{ __('web.project') .' | '.($title??'') }} </title>

</head>

<body>

        @include('web.layouts.menu')
        <!-- Modal -->
        @yield('content')

        @include('web.layouts.footer')

        @include('web.layouts.models')

        @yield('models')
        <!--Js Files & Libraries-->
        <script src="{{url('')}}/assets/web/js/lib/jquery-3.0.0.min.js"></script>
        <script src="{{url('')}}/assets/web/js/lib/jquery-migrate-3.0.0.min.js"></script>
        <script src="{{url('')}}/assets/web/js/lib/bootstrap.bundle.min.js"></script>
        <script src="{{url('')}}/assets/web/js/lib/wow.min.js"></script>
        <script src="{{url('')}}/assets/web/js/lib/jquery.fancybox.js"></script>
        <script src="{{url('')}}/assets/web/js/lib/swiper.min.js"></script>
        <script src="{{url('')}}/assets/web/js/lib/jquery.waypoints.min.js"></script>
        <script src="{{url('')}}/assets/web/js/lib/jquery.counterup.js"></script>
        <script src="{{url('')}}/assets/web/js/lib/back-to-top.js"></script>
        <script src="{{url('')}}/assets/web/js/main.js"></script>

        @yield('inject_js')
        @if ($errors->any())
            <script>

                setTimeout(
                    function()
                    {
                        toasterError({!! json_encode($errors->first()) !!});
                    }, 500);
            </script>
        @endif
        <script>
                if("{{Session::has('error')}}")
                {
                    setTimeout(
                        function()
                        {
                            toasterError({!! json_encode(Session::get('error')) !!});
                        }, 500);
                }
            </script>

            <script>
                if("{{session('success')}}")
                {
                    setTimeout(
                        function()
                        {
                            toasterSuccess("{{session('success')}}");
                        }, 500);
                }
            </script>
            <script>
                let url_add_to_cart = "{{route('web.addToCart')}}"
                let url_favorite = "{{route('web.favorite.store')}}"
                let url_change_city = "{{route('web.change.city')}}"
                let url_regions = "{{route('web.regions')}}"
                let url_cities = "{{route('web.cities')}}"
            </script>
            <script src="{{url('')}}/assets/web/js/custom/formAction.js"></script>
            <script src="{{url('')}}/assets/web/js/custom/relation.js"></script>
        <script src="{{url('')}}/assets/web/js/custom/response.js"></script>
            <script src="https://cdnjs.cloudflare.com/ajax/libs/toastr.js/latest/toastr.min.js"></script>

    </body>
</html>
