schema([ TextEntry::make('create_application') ->hiddenLabel() ->state(new HtmlString(Blade::render('

Visit the Google API Console and create or select the project you want to use.

Navigate or search Credentials, click on the Create Credentials button and select OAuth client ID. On the Application type select Web Application.

On Authorized JavaScript origins and Authorized redirect URIs add and use the values below.

'))), TextInput::make('_noenv_origin') ->label('Authorized JavaScript origins') ->dehydrated() ->disabled() ->hintCopy() ->default(fn () => url('')), TextInput::make('_noenv_callback') ->label('Authorized redirect URIs') ->dehydrated() ->disabled() ->hintCopy() ->default(fn () => url('/auth/oauth/callback/google')), TextEntry::make('register_application') ->hiddenLabel() ->state(new HtmlString('

When you filled all fields click on Create.

')), ]), ], parent::getSetupSteps()); } public function getIcon(): string { return 'tabler-brand-google-f'; } public function getHexColor(): string { return '#4285f4'; } }