public function index(RoutesDataTable $routesDataTable)
    {
        $middlewareClosure = function ($middleware) {
            return $middleware instanceof Closure ? 'Closure' : $middleware;
        };

        return $routesDataTable->with([
            'id' => 'adminarea-routes-index-table',
            'middlewareClosure' => $middlewareClosure,
        ])->render('cortex/foundation::adminarea.pages.datatable-index');
    }