@php $view = "platforms.{$platform}-settings"; // 將點號轉成斜線,組成正確路徑 $viewPath = resource_path('views/components/' . str_replace('.', '/', $view) . '.blade.php'); $componentExists = file_exists($viewPath); @endphp @if ($componentExists) @else
尚未提供 {{ strtoupper($platform) }} 的設定元件。
@endif