<?php

class ComingSoonController extends Controller
{
    public function show(): void
    {
        Auth::requireLogin();
        $path = trim($_GET['url'] ?? parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH), '/');
        $moduleName = ucwords(str_replace(['-', '_', '/'], ' ', $path)) ?: 'This module';

        $this->view('shared.coming-soon', [
            'pageTitle'  => $moduleName,
            'moduleName' => $moduleName,
        ]);
    }
}
