<?php

namespace App\Http\Controllers\Dashboard;

use Illuminate\Http\Request;

class ContentController extends Controller
{
    public function index(Request $request)
    {
        // Simulated pageRoutes (replace with your actual routes)
        $pageRoutes = [
            ['path' => '/my-profile', 'name' => 'Home'],
            ['path' => '/my-profile/users', 'name' => 'Users', 'params' => true],
        ];
        $root = $request->path() === '/my-profile';

        return view('dashboard.content', compact('pageRoutes', 'root'));
    }
}