2026-03-25 16:32:55 +09:00
|
|
|
<section class="border-b border-gray-300 p-2 shrink-0 bg-control-panel">
|
|
|
|
|
<div class="flex items-center gap-2">
|
2026-04-08 00:21:53 +09:00
|
|
|
<a href="<?= mgmt_url('packaging-units') ?>" class="text-blue-600 hover:underline text-sm">← 포장 단위 목록</a>
|
2026-03-25 16:32:55 +09:00
|
|
|
<span class="text-gray-400">|</span>
|
|
|
|
|
<span class="text-sm font-bold text-gray-700">변경 이력 — <?= esc($item->pu_bag_name) ?> (<?= esc($item->pu_bag_code) ?>)</span>
|
|
|
|
|
</div>
|
|
|
|
|
</section>
|
|
|
|
|
<div class="border border-gray-300 overflow-auto mt-2">
|
2026-04-22 15:35:28 +09:00
|
|
|
<?php
|
|
|
|
|
$fieldLabelMap = [
|
|
|
|
|
'pu_box_per_pack' => '박스당 팩 수',
|
|
|
|
|
'pu_pack_per_sheet' => '팩당 낱장 수',
|
|
|
|
|
'pu_start_date' => '적용시작일',
|
|
|
|
|
'pu_end_date' => '적용종료일',
|
|
|
|
|
'pu_state' => '상태',
|
|
|
|
|
];
|
|
|
|
|
?>
|
2026-03-25 16:32:55 +09:00
|
|
|
<table class="w-full data-table">
|
|
|
|
|
<thead>
|
|
|
|
|
<tr>
|
|
|
|
|
<th class="w-16">번호</th>
|
2026-04-22 15:35:28 +09:00
|
|
|
<th>변경 내용</th>
|
2026-03-25 16:32:55 +09:00
|
|
|
<th>이전 값</th>
|
|
|
|
|
<th>변경 값</th>
|
|
|
|
|
<th>변경일시</th>
|
|
|
|
|
</tr>
|
|
|
|
|
</thead>
|
|
|
|
|
<tbody class="text-right">
|
|
|
|
|
<?php foreach ($list as $row): ?>
|
|
|
|
|
<tr>
|
|
|
|
|
<td class="text-center"><?= esc($row->puh_idx) ?></td>
|
2026-04-22 15:35:28 +09:00
|
|
|
<td class="text-left pl-2"><?= esc($fieldLabelMap[(string) $row->puh_field] ?? $row->puh_field) ?></td>
|
2026-03-25 16:32:55 +09:00
|
|
|
<td><?= esc($row->puh_old_value) ?></td>
|
|
|
|
|
<td><?= esc($row->puh_new_value) ?></td>
|
|
|
|
|
<td class="text-center"><?= esc($row->puh_changed_at) ?></td>
|
|
|
|
|
</tr>
|
|
|
|
|
<?php endforeach; ?>
|
|
|
|
|
<?php if (empty($list)): ?>
|
|
|
|
|
<tr><td colspan="5" class="text-center text-gray-400 py-4">변경 이력이 없습니다.</td></tr>
|
|
|
|
|
<?php endif; ?>
|
|
|
|
|
</tbody>
|
|
|
|
|
</table>
|
|
|
|
|
</div>
|