<?=$this->extend('templates/front_example.php');?>

<?=$this->section('title');?>
    ZENITH - 시간차 관리
<?=$this->endSection();?>

<?=$this->section('content');?>
<div class="sub-contents-wrap">
    <div class="title-area">
        <h2 class="page-title">시간차 관리</h2>
        <button type="button" class="btn btn-dark ms-3" data-bs-toggle="modal" data-bs-target="#totalModal">전체조회</button>
    </div>
    <div class="row mt-5">
        <div class="col half">
            <h3 class="content-title">결재내역</h3>
            <div class="search-wrap">
                <form class="search d-flex justify-content-center">
                    <div class="term d-flex align-items-center">
                        <input type="text">
                        <button type="button"><i class="bi bi-calendar2-week"></i></button>
                        <span> ~ </span>
                        <input type="text">
                        <button type="button"><i class="bi bi-calendar2-week"></i></button>
                    </div>
                    <div class="input">
                        <input class="" type="text" placeholder="검색어를 입력하세요">
                        <button class="btn-primary" type="submit">조회</button>
                    </div>
                </form>
            </div>

            <div class="table-responsive">
                <table class="table table-striped table-hover table-default">
                    <colgroup>
                        <col style="width:10%">
                        <col>
                        <col style="width:20%">
                        <col style="width:17%">
                        <col style="width:15%">
                        <col style="width:15%">
                    </colgroup>
                    <thead class="table-dark">
                        <tr>
                            <th scope="col">작성자</th>
                            <th scope="col">작성일</th>
                            <th scope="col">문서번호</th>
                            <th scope="col">연차차감</th>
                            <th scope="col">발급쿠폰</th>
                            <th scope="col">결과</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td colspan="6" class="none">검색된 데이터가 없습니다.</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
        <div class="col half">
            <h3 class="content-title">신청현황</h3>
            <div class="search-wrap">
                <form class="search d-flex justify-content-center">
                    <div class="term d-flex align-items-center">
                        <input type="text">
                        <button type="button"><i class="bi bi-calendar2-week"></i></button>
                        <span> ~ </span>
                        <input type="text">
                        <button type="button"><i class="bi bi-calendar2-week"></i></button>
                    </div>
                    <div class="input">
                        <input class="" type="text" placeholder="검색어를 입력하세요">
                        <button class="btn-primary" type="submit">조회</button>
                    </div>
                </form>
            </div>

            <div class="table-responsive">
                <table class="table table-striped table-hover table-default">
                    <colgroup>
                        <col style="width:20%">
                        <col>
                        <col style="width:30%">
                        <col style="width:15%">
                    </colgroup>
                    <thead class="table-dark">
                        <tr>
                            <th scope="col">날짜</th>
                            <th scope="col">쿠폰사용</th>
                            <th scope="col">사용시간</th>
                            <th scope="col">상태</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td>
                                <div class="d-flex">
                                    <input type="text" class="form-control">
                                    <button type="button"><i class="bi bi-calendar2-week"></i></button>
                                </div>
                            </td>
                            <td></td>
                            <td>
                                <div class="d-flex align-items-center">
                                    <select class="form-select" aria-label="시간 선택">
                                        <option selected>-선택-</option>
                                        <option value="1">1</option>
                                        <option value="2">2</option>
                                        <option value="3">3</option>
                                    </select>
                                    <span class="m-1">시</span>
                                    <select class="form-select" aria-label="분 선택">
                                        <option selected>-선택-</option>
                                        <option value="1">00</option>
                                        <option value="2">10</option>
                                        <option value="3">20</option>
                                    </select>
                                    <span class="ms-1">분</span>
                                </div>
                            </td>
                            <td>
                                <button type="button" class="btn btn-danger">등록</button>
                            </td>
                        </tr>
                    </tbody>
                </table>
            </div>

            <div class="table-responsive">
                <table class="table table-striped table-hover table-default">
                    <colgroup>
                        <col style="width:15%">
                        <col>
                        <col style="width:20%">
                        <col style="width:15%">
                        <col style="width:15%">
                    </colgroup>
                    <thead class="table-dark">
                        <tr>
                            <th scope="col">사용자</th>
                            <th scope="col">쿠폰사용</th>
                            <th scope="col">사용일자</th>
                            <th scope="col">시간</th>
                            <th scope="col">결과</th>
                        </tr>
                    </thead>
                    <tbody>
                        <tr>
                            <td colspan="5" class="none">검색된 데이터가 없습니다.</td>
                        </tr>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
</div>
<?=$this->endSection();?>

<?=$this->section('modal');?>
<div class="modal fade" id="totalModal" tabindex="-1" aria-labelledby="totalModalLabel" aria-hidden="true">
    <div class="modal-dialog modal-lg modal-dialog-scrollable">
        <div class="modal-content">
            <div class="modal-header">
                <h1 class="modal-title" id="totalModalLabel">전체 조회</h1>
                <button type="button" class="btn-close" data-bs-dismiss="modal" aria-label="Close"></button>
            </div>
            <div class="modal-body">
                <div class="d-flex justify-content-between align-items-center">
                    <form class="row g-1">
                        <div class="col-5 d-flex align-items-center">
                            <input type="text" class="form-control">
                            <button type="button"><i class="bi bi-calendar2-week"></i></button>
                            <span class="me-2"> ~ </span>
                            <input type="text" class="form-control">
                            <button type="button"><i class="bi bi-calendar2-week"></i></button>
                        </div>
                        <div class="col-7 d-flex">
                            <input type="password" class="form-control">
                            <button type="submit" class="btn btn-primary w-25 ms-2">조회</button>
                        </div>
                    </form>
                </div>
                <div class="table-responsive">
                    <table class="table table-bordered table-modal">
                        <colgroup>
                            <col>
                            <col style="width:11%;">
                            <col style="width:8%;">
                            <col style="width:10%;">
                            <col style="width:10%;">
                            <col style="width:8%;">
                        </colgroup>
                        <thead>
                            <tr>
                                <th scope="col" rowspan="2" class="align-middle">사용자</th>
                                <th scope="col" colspan="2">검색기간</th>
                                <th scope="col" colspan="3">전체</th>
                            </tr>
                            <tr>
                                <th scope="col">발급</th>
                                <th scope="col">사용</th>
                                <th scope="col">발급</th>
                                <th scope="col">사용</th>
                                <th scope="col">잔여</th>
                            </tr>
                        </thead>
                        <tbody>
                            <tr>
                                <td colspan="6" class="none">검색된 데이터가 없습니다.</td>
                            </tr>
                        </tbody>
                    </table>
                </div>
            </div>
        </div>
    </div>
</div>
<?=$this->endSection();?>
