Files
sam-manage/resources/views/customer-center/index.blade.php
kent b992886fca feat(mng): 고객센터 게시판 목록 페이지 추가
- /customer-center 라우트 신규 생성
- 활성화된 시스템 게시판만 표시
- 테이블 컬럼: ID, 유형, 코드, 게시판명, 게시글 수, 생성일
- 관리 기능(구분, 필드, 상태, 액션) 제외한 읽기 전용 뷰

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-27 20:50:58 +09:00

45 lines
1.2 KiB
PHP

@extends('layouts.app')
@section('title', '고객센터')
@section('content')
<!-- 페이지 헤더 -->
<div class="flex flex-col sm:flex-row sm:justify-between sm:items-center gap-4 mb-6">
<h1 class="text-2xl font-bold text-gray-800">고객센터</h1>
</div>
<!-- 테이블 영역 -->
<div id="board-table" class="bg-white rounded-lg shadow-sm overflow-hidden">
<!-- 로딩 스피너 -->
<div class="flex justify-center items-center p-12">
<div class="animate-spin rounded-full h-12 w-12 border-b-2 border-blue-600"></div>
</div>
</div>
@endsection
@push('scripts')
<script>
// 테이블 로드 함수
function loadTable() {
fetch('/api/admin/customer-center', {
headers: {
'X-CSRF-TOKEN': '{{ csrf_token() }}',
'HX-Request': 'true'
}
})
.then(response => response.text())
.then(html => {
document.getElementById('board-table').innerHTML = html;
})
.catch(error => {
console.error('Error:', error);
});
}
// 초기 로드
document.addEventListener('DOMContentLoaded', function() {
loadTable();
});
</script>
@endpush