<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://kit.fontawesome.com/0a7b647480.js" crossorigin="anonymous"></script>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.css">
    <script src="https://cdnjs.cloudflare.com/ajax/libs/noty/3.1.4/noty.min.js"></script>
    <script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.6.0/jquery.min.js"></script>
    <base href='/'>
    <link rel="stylesheet" href=" <%= assetPath('css/layout.css') %> ">
    <link rel="stylesheet" href=" <%= assetPath('css/header.css') %> ">
    <link rel="stylesheet" href=" <%= assetPath('css/footer.css') %> ">

    <%- style %>
        <title>
            <%=title%>
        </title>
</head>

<body>

    <%- include('./_header') %>



        <%- body %>
            <%- include('./_footer') %>

                <%- script %>

                    <script>
        <% if (flash.success && flash.success.length > 0) {%>
                            new Noty({
                                theme: 'relax',
                                text: "<%= flash.success %>",
                                type: 'success',
                                layout: 'topRight',
                                timeout: 1500
                            }).show();
        <%} %>

        <% if (flash.error && flash.error.length > 0) {%>
                            new Noty({
                                theme: 'relax',
                                text: "<%= flash.error %>",
                                type: 'error',
                                layout: 'topRight',
                                timeout: 1500
                            }).show();
        <%} %>
                    </script>

</body>

</html>