public function index(Request $request, Terminal $terminal)
    {
        $token = null;

        if ($request->hasSession() === true) {
            $token = $request->session()->token();
        }

        $terminal->call('list --ansi');
        $options = json_encode([
            'username' => 'LARAVEL',
            'hostname' => php_uname('n'),
            'os' => PHP_OS,
            'csrfToken' => $token,
            'helpInfo' => $terminal->output(),
            'basePath' => app()->basePath(),
            'environment' => app()->environment(),
            'version' => app()->version(),
            'endpoint' => route('adminarea.console.terminal.execute'),
            'interpreters' => [
                'mysql' => 'mysql',
                'artisan tinker' => 'tinker',
                'tinker' => 'tinker',
            ],
            'confirmToProceed' => [
                'artisan' => [
                    'migrate',
                    'migrate:install',
                    'migrate:refresh',
                    'migrate:reset',
                    'migrate:rollback',
                    'db:seed',
                ],
            ],
        ]);

        return view('cortex/console::adminarea.pages.terminal', compact('options'));
    }