<!DOCTYPE html>
<!--[if lt IE 9]><script src="{{ asset('js/respond.min.js') }}"></script><![endif]-->
<!--[if IE 9]><html class="lt-ie10" lang="en" > <![endif]-->
<html class="no-js" lang="en" >

<head>
    <meta charset="utf-8">
    <!-- If you delete this meta tag World War Z will become a reality -->
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="pragma" content="no-cache">

    <meta http-equiv="cache-control" content="private, max-age=0, no-cache">
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="expires" content="0">

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

    <!-- If you are using the CSS version, only link these 2 files, you may add app.css to use for your overrides if you like -->
    <link rel="stylesheet" href="{{ asset('/css/normalize.css') }}">
    <link rel="stylesheet" href="{{ asset('/css/foundation.css') }}">
    <link rel="stylesheet" href="{{ asset('/css/font-awesome.min.css') }}">
    <link rel="stylesheet" href="{{ asset('/css/app.css') }}">
    <link rel="stylesheet" href="{{ asset('/css/styles.css') }}">
    <link rel="stylesheet" href="{{ asset('/css/slick.css') }}">

    @yield('styles')

    <script src="{{ asset('/js/vendor/modernizr.js') }}"></script>
    <script type="text/javascript">
    $(window).load(function() {
        $(".loader").fadeOut("slow");
    });
    </script>
    <script>
    var myVar;

    function myFunction() {
        myVar = setTimeout(showPage, 3000);
    }

    function showPage() {
      document.getElementById("loader").style.display = "none";
      document.getElementById("myDiv").style.display = "block";
    }
    </script>


</head>
@if(Session::has('view-search-error'))
    <div data-alert class="alert-box alert">
        {{ Session::get('view-search-error') }}
        <a href="#" class="close">&times;</a>
    </div>
@endif

<!-- error message -->
@if(Session::has('view-error'))
    <div data-alert class="alert-box alert">
        {{ Session::get('view-error') }}
        <a href="#" class="close">&times;</a>
    </div>
@endif

<!-- success message -->
@if(Session::has('view-success'))
    <div data-alert class="alert-box">
        {{ Session::get('view-success') }}
        <a href="#" class="close">&times;</a>
    </div>
@endif
<body onload="myFunction()" style="margin:0;z-index: -1;">
<div id="loader"></div>
<div style="display:none;" id="myDiv" class="animate-bottom">
<!-- body content here -->

 @yield('content')

<script src="{{ asset('/js/vendor/jquery.js') }}"></script>

<script src="{{ asset('/js/foundation.min.js') }}"></script>
<script>
    $(document).foundation();
</script>
<script>

</script>
<script src="{{ asset('/js/scripts.js') }}" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function() {
            window.history.pushState(null, "", window.location.href);
            window.onpopstate = function() {
                window.history.pushState(null, "", window.location.href);
            };
        });
</script>

@yield('scripts')
</div>
</body>
</html>