feat: [claude-code] 활용방안 PPTX 다운로드 기능 추가

- UsagePlanController에 download 메서드 추가
- 라우트에 /usage-plan/download 추가
- 뷰 헤더에 PPTX 다운로드 버튼 추가
- 7장 슬라이드 PPTX 파일 배치
This commit is contained in:
김보곤
2026-03-02 13:24:43 +09:00
parent fce349392d
commit 31e9b5d605
4 changed files with 17 additions and 1 deletions

View File

@@ -6,6 +6,7 @@
use Illuminate\Http\Request;
use Illuminate\Http\Response;
use Illuminate\View\View;
use Symfony\Component\HttpFoundation\BinaryFileResponse;
class UsagePlanController extends Controller
{
@@ -17,4 +18,12 @@ public function index(Request $request): View|Response
return view('claude-code.usage-plan.index');
}
public function download(): BinaryFileResponse
{
$path = public_path('downloads/sam-usage-plan.pptx');
abort_unless(file_exists($path), 404, 'PPTX 파일을 찾을 수 없습니다.');
return response()->download($path, 'SAM_활용방안.pptx');
}
}

Binary file not shown.

View File

@@ -40,8 +40,14 @@
<h1 class="text-2xl font-bold text-gray-900">SAM 활용방안</h1>
<p class="mt-1 text-sm text-gray-500">AI 자동화로 중소 제조업을 혁신하다 | ()코드브릿지엑스의 비전</p>
</div>
<div class="flex items-center gap-2">
<div class="flex items-center gap-3">
<span class="text-xs text-gray-400">CodeBridgeX | 2026.03</span>
<a href="{{ route('claude-code.usage-plan.download') }}"
class="inline-flex items-center gap-1.5 px-3 py-1.5 text-sm font-medium text-white bg-indigo-600 rounded-lg hover:bg-indigo-700 transition-colors"
title="PPTX 다운로드">
<svg class="w-4 h-4" fill="none" stroke="currentColor" viewBox="0 0 24 24"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M12 10v6m0 0l-3-3m3 3l3-3m2 8H7a2 2 0 01-2-2V5a2 2 0 012-2h5.586a1 1 0 01.707.293l5.414 5.414a1 1 0 01.293.707V19a2 2 0 01-2 2z"/></svg>
PPTX
</a>
</div>
</div>

View File

@@ -733,6 +733,7 @@
Route::get('/cowork', [ClaudeCodeCoworkController::class, 'index'])->name('cowork.index');
Route::get('/usage-plan', [ClaudeCodeUsagePlanController::class, 'index'])->name('usage-plan.index');
Route::get('/usage-plan/download', [ClaudeCodeUsagePlanController::class, 'download'])->name('usage-plan.download');
});
/*