adds help texts

This commit is contained in:
2026-02-16 16:00:16 +01:00
parent 514f1cb483
commit 78c51d55b5
9 changed files with 95 additions and 46 deletions

View File

@@ -87,18 +87,21 @@ public function fields(NovaRequest $request): array
BelongsTo::make('User', 'user', User::class)
->sortable()
->filterable()
->rules('required'),
->rules('required')
->help('The person who started this questionnaire session.'),
BelongsTo::make('Category', 'category', CategoryResource::class)
->sortable()
->filterable()
->rules('required'),
->rules('required')
->help('The assessment category for this session, such as Audit or Tax.'),
BelongsTo::make('Screening', 'screening', ScreeningResource::class)
->nullable()
->sortable()
->filterable()
->rules('nullable'),
->rules('nullable')
->help('The pre-screening that was completed before starting this session.'),
Select::make('Status')
->options([
@@ -108,13 +111,15 @@ public function fields(NovaRequest $request): array
])
->displayUsingLabels()
->sortable()
->filterable(),
->filterable()
->help('The current state of this session. "In Progress" means the user has not yet submitted, "Completed" means submitted, "Abandoned" means the user left without finishing.'),
Number::make('Score')
->sortable()
->filterable()
->copyable()
->rules('nullable', 'integer'),
->rules('nullable', 'integer')
->help('The total score from all scored questions. Only "Yes" answers count as points.'),
Select::make('Result')
->options([
@@ -124,15 +129,18 @@ public function fields(NovaRequest $request): array
])
->displayUsingLabels()
->sortable()
->filterable(),
->filterable()
->help('The final outcome based on the score. "Go" (10+ points) means pursue the opportunity, "Consult Leadership" (5-9 points) means seek advice, "No Go" (1-4 points) means do not pursue.'),
Textarea::make('Additional Comments')
->rules('nullable'),
->rules('nullable')
->help('Any extra notes the user added at the end of the questionnaire.'),
DateTime::make('Completed At')
->sortable()
->filterable()
->rules('nullable'),
->rules('nullable')
->help('The date and time when the user submitted this session.'),
HasMany::make('Answers', 'answers', AnswerResource::class),