<!DOCTYPE html>
<html lang="">
    <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="keyword" content="">
        <meta name="author" content="Wafaa Hegazy">
        <!--Page Name-->
        <title> {{__('web.project')}} | {{$title ?? ''}} </title>
        <!--Page Icon-->
        <link rel="shortcut icon" href="{{url('')}}/assets/web/images/logo.svg" type="image/x-icon"/>
        <!--Bootstrap with RTL-->

        @if(getCurrentLocale() == 'ar')
            <link rel="stylesheet" href="{{url('')}}/assets/web/css/lib/bootstrap.rtl.css">
    @else
        <!--Bootstrap with LTR-->
            <link rel="stylesheet" href="{{url('')}}/assets/web/css/lib/bootstrap.min.css">
    @endif
    <!-- Bootstrap icons  -->
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap-icons@1.7.2/font/bootstrap-icons.css">
        <!-- Fontawosome icons  -->
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.1.1/css/all.min.css" integrity="sha512-KfkfwYDsLkIlwQp6LFnl8zNdLGxu9YAA1QvwINks4PhcElQSvqcyVLLD9aMhXd13uQjoXtEKNosOWaZqXgel0g==" crossorigin="anonymous" referrerpolicy="no-referrer" />    <!--Css Files & Libraries-->
        <!-- Font & Libraries  -->
        <link href="https://fonts.googleapis.com/css2?family=Montserrat:wght@100;200;300;400;500;600;700;800;900&display=swap" rel="stylesheet">
        <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/style.css">
        <link rel="stylesheet" href="{{url('')}}/assets/web/css/media.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">
    </head>
    <body>


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

        @include('web.layouts.footer')
        <!--Js Files & Libraries-->
        <!--Js Files & Libraries-->
        <script src="{{url('')}}/assets/web/js/lib/jquery4.js"></script>
        <script src="{{url('')}}/assets/web/js/lib/popper.js"></script>
        <script src="{{url('')}}/assets/web/js/lib/bootstrap.bundle.min.js"></script>
        <script src="{{url('')}}/assets/web/js/lib/jquery.fancybox.js"></script>
        <script src="{{url('')}}/assets/web/js/lib/swiper.js"></script>
        <script src="{{url('')}}/assets/web/js/lib/wow.min.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')

        <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 src="{{url('')}}/assets/web/js/custom/formAction.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>
