<?php

namespace App\Http\Controllers;

use Illuminate\View\View;

class LegacyLayoutController extends Controller
{
    public function show(string $path = ''): View
    {
        $targetUrl = $path !== ''
            ? url($path)
            : route('dashboard.index');

        return view('layout.core', [
            'site'       => env('APP_STAGE', 'DEV'),
            'initialUrl' => $targetUrl,
        ]);
    }
}
