<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %>
<div class="menu">
    <div class="home"></div>
    <sec:authorize access="hasAnyAuthority('I','M','N')">
        <div class="dashboard">대시보드</div>
        <div class="record">이력 조회</div>
        <div class="statistics">통계 조회</div>
    </sec:authorize>
    <sec:authorize access="hasAnyAuthority('I','M','N','B')">
        <div class="system-manager">시스템 관리</div>
    </sec:authorize>
    <sec:authorize access="isAuthenticated()"><div class="logout">Log-Out</div></sec:authorize>
</div>
<script>
    const menu = '${menu}';
    if (menu) {
        $('.' + menu).addClass('on');
    }
</script>