<!-- SAM RULES: include=../inc/header.php; base=/tenant; width=1280; js=jQuery+BS5 -->
<?php
$CURRENT_SECTION = 'process';
include '../inc/header.php';
?>
<div class="container" style="max-width:1280px; margin-top:24px;">

    <!-- 헤더 -->
    <div class="d-flex align-items-center justify-content-between mb-3">
        <h2 class="m-0">공정 관리</h2>
        <a class="btn btn-primary" href="/tenant/process/process_form.php">+ 공정 생성</a>
    </div>

    <!-- 검색 -->
    <form class="row g-2 align-items-end mb-3" role="search">
        <div class="col-auto">
            <label for="q" class="form-label">공정명</label>
            <input type="text" id="q" class="form-control" placeholder="공정명 검색">
        </div>
        <div class="col-auto">
            <button type="button" class="btn btn-outline-secondary">검색</button>
        </div>
    </form>

    <!-- 리스트 -->
    <div class="border rounded p-2">
        <div class="table-responsive">
            <table class="table table-hover align-middle m-0 tbl-proc">
                <thead class="table-light">
                <tr>
                    <th style="width:18%;">공정명</th>
                    <th>설명</th>
                    <th style="width:10%; text-align:center;">작업 수</th>
                    <th style="width:14%;">등록일</th>
                    <th style="width:10%;">수정</th>
                    <th style="width:14%;">작업지시 설정</th>
                    <th style="width:8%;">삭제</th>
                </tr>
                </thead>
                <tbody>
                <tr>
                    <td><a href="/tenant/process/tasks.php">스크린</a></td>
                    <td>스크린 작업 공정</td>
                    <td class="text-center">4</td>
                    <td>2025-08-07</td>
                    <td><a class="btn btn-sm btn-info" href="/tenant/process/process_form.php">수정</a></td>
                    <td>
                        <a class="btn btn-sm btn-outline-primary" href="/tenant/process/process_settings.php">작업지시 설정</a>
                    </td>
                    <td><button class="btn btn-sm btn-danger">삭제</button></td>
                </tr>
                <tr>
                    <td><a href="/tenant/process/tasks.php">슬랫</a></td>
                    <td>슬랫 작업 공정</td>
                    <td class="text-center">3</td>
                    <td>2025-08-07</td>
                    <td><a class="btn btn-sm btn-info" href="/tenant/process/process_form.php">수정</a></td>
                    <td>
                        <a class="btn btn-sm btn-outline-primary" href="/tenant/process/process_settings.php">작업지시 설정</a>
                    </td>
                    <td><button class="btn btn-sm btn-danger">삭제</button></td>
                </tr>
                <tr>
                    <td><a href="/tenant/process/tasks.php">절곡</a></td>
                    <td>절곡 작업 공정</td>
                    <td class="text-center">4</td>
                    <td>2025-08-07</td>
                    <td><a class="btn btn-sm btn-info" href="/tenant/process/process_form.php">수정</a></td>
                    <td>
                        <a class="btn btn-sm btn-outline-primary" href="/tenant/process/process_settings.php">작업지시 설정</a>
                    </td>
                    <td><button class="btn btn-sm btn-danger">삭제</button></td>
                </tr>
                </tbody>
            </table>
        </div>
    </div>
</div>

<style>
    /* 스크린 작업지시현황과 동일한 컴팩트 테이블 톤 */
    .tbl-proc th{
        vertical-align: middle; text-align:center;
        white-space: nowrap; padding:.55rem .6rem;
    }
    .tbl-proc td{ vertical-align: middle; padding:.55rem .6rem; }
    .tbl-proc td:nth-child(1),
    .tbl-proc td:nth-child(2),
    .tbl-proc td:nth-child(4){ white-space: nowrap; }
</style>

<?php include '../inc/footer.php'; ?>
