feat:대시보드 일정관리 달력 추가

- Schedule 모델 생성 (schedules 테이블, type별 색상 상수)
- DashboardCalendarController 생성 (CRUD + 달력 partial)
- 대시보드 뷰에 월간 달력 섹션 추가 (HTMX + Vanilla JS)
- 일정 생성/수정/삭제 모달 구현
- 공휴일 빨간색 표시, 일정 유형별 색상 뱃지

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
김보곤
2026-02-10 20:11:36 +09:00
parent 00dff8951c
commit 0281e4a8aa
5 changed files with 737 additions and 2 deletions

View File

@@ -618,9 +618,19 @@
// 대시보드
Route::get('/dashboard', function () {
if (request()->header('HX-Request')) {
return response('', 200)->header('HX-Redirect', route('dashboard'));
}
return view('dashboard.index');
})->name('dashboard');
// 대시보드 달력
Route::get('/dashboard/calendar', [\App\Http\Controllers\DashboardCalendarController::class, 'calendar'])->name('dashboard.calendar');
Route::post('/dashboard/schedules', [\App\Http\Controllers\DashboardCalendarController::class, 'store'])->name('dashboard.schedules.store');
Route::get('/dashboard/schedules/{id}', [\App\Http\Controllers\DashboardCalendarController::class, 'show'])->name('dashboard.schedules.show');
Route::put('/dashboard/schedules/{id}', [\App\Http\Controllers\DashboardCalendarController::class, 'update'])->name('dashboard.schedules.update');
Route::delete('/dashboard/schedules/{id}', [\App\Http\Controllers\DashboardCalendarController::class, 'destroy'])->name('dashboard.schedules.destroy');
// 루트 리다이렉트
Route::get('/', function () {
return redirect()->route('dashboard');