<!DOCTYPE html>
<html>
    <head>
        <title>Home</title>
        <meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/css/bootstrap.min.css" integrity="sha384-zCbKRCUGaJDkqS1kPbPd7TveP5iyJE0EjAuZQTgFLD2ylzuqKfdKlfG/eSrtxUkn" crossorigin="anonymous">
        <link rel="stylesheet" type="text/css" href="/css/profile.css">
    </head>
    <body>
        <div class="container-fluid mt-3">
            <nav class="navbar navbar-expand-md bg-dark navbar-dark fixed-top">
                <button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#collapsibleNavbar">
                    <span class="navbar-toggler-icon"></span>
                </button>
                <div class="collapse navbar-collapse" id="collapsibleNavbar">
                    <a class="navbar-brand" href="#" style="color:chartreuse;">IIITA CMS</a>
                    <ul class="navbar-nav">
                        <li class="nav-item">
                            <a class="nav-link" href="/users/home">HOME</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="/users/conferences">CONFERENCES</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link active" href="/users/profile">PROFILE</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="/users/settings">SETTINGS</a>
                        </li> 
                        <li class="nav-item">
                            <a class="nav-link" href="/contact">CONTACT</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link" href="/users/destroy-session">LOGOUT</a>
                        </li>
                    </ul>
                </div> 
            </nav>
        </div>
        <div class="userInformationcontainer">
            <table>
                <tr>
                    <th>Name:</th>
                    <td><%=profileUser.name%></td>
                </tr>
                <tr>
                    <th>Email:</th>
                    <td><%=profileUser.email%></td>
                </tr>
                <tr>
                    <th>Gender:</th>
                    <% if(profileUser.gender) { %>
                        <td><%=profileUser.gender%></td>
                    <% } else { %>
                        <td>Information Unavailable</td>
                    <% } %>
               </tr>
                <tr>
                     <th>Account Type:</th>
                     <% if(profileUser.accountType) { %>
                        <td><%=profileUser.accountType%></td>
                     <% } else { %>
                        <td>Information Unavailable</td>
                     <% } %>
                 </tr>
                 <tr>
                     <th>Institution Name:</th>
                     <% if(profileUser.institutionName) { %>
                        <td><%=profileUser.institutionName%></td>
                     <% } else { %>
                        <td>Information Unavailable</td>
                     <% } %>
                 </tr>
                 <tr>
                      <th>Address:</th>
                      <% if(profileUser.address) { %>
                        <td><%=profileUser.address%></td>
                      <% } else { %>
                        <td>Information Unavailable</td>
                      <% } %>
                 </tr>
                 <tr>
                      <th>Account Creation Date:</th>
                      <td><%=profileUser.createdAt.toDateString()%></td>
                 </tr>
            </table>
        </div>
        <script src="https://cdn.jsdelivr.net/npm/jquery@3.5.1/dist/jquery.slim.min.js" integrity="sha384-DfXdz2htPH0lsSSs5nCTpuj/zy4C+OGpamoFVy38MVBnE+IbbVYUew+OrCXaRkfj" crossorigin="anonymous"></script>
        <script src="https://cdn.jsdelivr.net/npm/bootstrap@4.6.1/dist/js/bootstrap.bundle.min.js" integrity="sha384-fQybjgWLrvvRgtW6bFlB7jaZrFsaBXjsOMm/tB9LTS58ONXgqbR9W8oWht/amnpF" crossorigin="anonymous"></script>
    </body>
</html>