<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<jsp:include page="${data._INCLUDE}/header.jsp"></jsp:include>
</head>
<body>
    <div class="wrapper">
        <jsp:include page="${data._INCLUDE}/sidebar.jsp"></jsp:include>
        
        <div class="main">
            <jsp:include page="${data._INCLUDE}/top.jsp"></jsp:include>

            <main class="content">
                <div class="container-fluid p-0">
                    <!-- 환자관리 : 신규환자 등록 START -->
                    <div class="row">
                        <div class="col-12 col-lg-6">
                            <h1 class="h3 mb-3">
                            생활치료센터 조회
                            </h1>
                        </div>
                        <div class="col-12 col-lg-6  text-right">
                            <nav aria-label="breadcrumb">
                                <ol class="breadcrumb">
                                    <li class="breadcrumb-item"><a href="javscript:;">Home</a></li>
                                    <li class="breadcrumb-item">의료진 관리</li>
                                    <li class="breadcrumb-item active">의료진 정보 조회</li>
                                </ol>
                            </nav>
                        </div>
                    </div>
                    <div class="row">
                        <div class="col-12">
                            <div class="card">
                                <div class="card-body">
                                    <div class="row mb-3">
                                        <div class="col-12">
                                            <div class="text-right">
                                                <button class="btn btn-primary w100" onclick="location.href='./edit?centerCode=${centerCode}';">정보수정</button>
                                            </div>
                                        </div>
                                    </div>
                                    <table class="table mobile-table">
                                        <colgroup>
                                            <col style="width:15%">
                                            <col style="width:35%">
                                            <col style="width:15%">
                                            <col style="width:35%">
                                        </colgroup>
                                        <tr>
                                            <th>생활치료센터명</th>
                                            <td>
                                                <c:out value="${centerInfo.centerName}" />
                                            </td>
                                            <th>지역</th>
                                            <td>
                                                <c:out value="${centerInfo.locationName}" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>주소</th>
                                            <td>
                                                <c:out value="${centerInfo.centerAddress}" />
                                            </td>
                                            <th>전화번호</th>
                                            <td>
                                                <c:out value="${centerInfo.centerNumber}" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>수용인원(명)</th>
                                            <td>
                                                <c:out value="${centerInfo.totalCapacity}" />
                                            </td>
                                            <th>의료진 수(명)</th>
                                            <td>
                                                <c:out value="${centerInfo.totalStaff}" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>담당자</th>
                                            <td>
                                                <c:out value="${centerInfo.staffName}(${centerInfo.staffId})" />
                                            </td>
                                            <th>담당자 휴대전화번포</th>
                                            <td>
                                                <c:out value="${centerInfo.staffPhoneNumber}" />
                                            </td>
                                        </tr>
                                        <tr>
                                            <th>등록일자</th>
                                            <td>
                                                <c:out value="${centerInfo.createDate}" />
                                            </td>
                                            <th>수정일자</th>
                                            <td>
                                                <c:out value="${centerInfo.updateDate}" />
                                            </td>
                                        </tr>
                                    </table>
                                    <div class="row mt-3">
                                        <div class="col-12">
                                            <div class="text-right">
                                                <button type="button" class="btn btn-primary w100" onclick="location.href='./list';">확인</button>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <!-- 환자관리 : 신규환자 등록 END -->
                </div>
            </main>

            <jsp:include page="${data._INCLUDE}/footer.jsp"></jsp:include>
        </div>
    </div>
</body>
</html>