feat: add Trunçgil Akademi page template and automated seeder for course offerings

This commit is contained in:
Ümit Tunç
2026-05-26 21:21:58 +03:00
parent 7d7c018496
commit 3d2f2ab64e
5 changed files with 565 additions and 15 deletions
+1 -15
View File
@@ -78,21 +78,7 @@ class PageController extends Controller
{
$settings = $this->getSettings();
// 3a. Akademi Sayfası Yönlendirmeleri
if ($slug === 'truncgil-akademi') {
$host = request()->getHost();
$path = request()->path();
// Eğer ana domainden geliyorsa -> Subdomain'e yönlendir
if ($host !== 'akademi.truncgil.com.tr') {
return redirect()->to('https://akademi.truncgil.com.tr/', 301);
}
// Eğer subdoman'de ama slug ile geliyorsa (/truncgil-akademi) -> Ana dizine yönlendir (/)
if ($host === 'akademi.truncgil.com.tr' && $path !== '/') {
return redirect()->to('https://akademi.truncgil.com.tr/', 301);
}
}
// Redirection logic disabled for rendering the page locally on main domain.
// 1. Statik View Kontrolü
if (view()->exists("templates.$slug")) {