## 슈퍼관리자 삭제 게시물 관리
- 삭제된 게시물 목록에 표시 (빨간색 배경, 취소선)
- 게시물 복원 기능 추가 (POST /{post}/restore)
- 게시물 영구삭제 기능 추가 (DELETE /{post}/force)
- 통계 카드에 삭제됨 카운트 추가
## 페이지 타이틀 회사명 표시
- /boards: "회사명 게시판 관리" 형식으로 표시
- /boards/{code}/posts: "회사명 게시판명" 형식으로 표시
- 회사명 파란색으로 구분 표시
## 버그 수정
- 통계 카드 CSS: Tailwind 동적 클래스 문제 해결
(grid-cols-{{ }} → 정적 클래스로 변경)
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
47 lines
986 B
PHP
47 lines
986 B
PHP
<?php
|
|
|
|
namespace App\Http\Controllers;
|
|
|
|
use App\Services\BoardService;
|
|
use Illuminate\View\View;
|
|
|
|
class BoardController extends Controller
|
|
{
|
|
public function __construct(
|
|
private readonly BoardService $boardService
|
|
) {}
|
|
|
|
/**
|
|
* 게시판 목록 (Blade 화면)
|
|
*/
|
|
public function index(): View
|
|
{
|
|
$boardTypes = $this->boardService->getBoardTypes();
|
|
$currentTenant = auth()->user()->currentTenant();
|
|
|
|
return view('boards.index', compact('boardTypes', 'currentTenant'));
|
|
}
|
|
|
|
/**
|
|
* 게시판 생성 화면
|
|
*/
|
|
public function create(): View
|
|
{
|
|
return view('boards.create');
|
|
}
|
|
|
|
/**
|
|
* 게시판 수정 화면
|
|
*/
|
|
public function edit(int $id): View
|
|
{
|
|
$board = $this->boardService->getBoardById($id, true);
|
|
|
|
if (! $board) {
|
|
abort(404, '게시판을 찾을 수 없습니다.');
|
|
}
|
|
|
|
return view('boards.edit', compact('board'));
|
|
}
|
|
}
|