improvements

This commit is contained in:
2026-02-19 14:32:42 +01:00
parent 78c51d55b5
commit f1824ff752
16 changed files with 1244 additions and 31 deletions

View File

@@ -4,6 +4,7 @@
namespace App\Nova;
use App\Nova\Actions\DownloadExcel;
use Laravel\Nova\Fields\BelongsTo;
use Laravel\Nova\Fields\DateTime;
use Laravel\Nova\Fields\HasMany;
@@ -12,7 +13,6 @@
use Laravel\Nova\Fields\Select;
use Laravel\Nova\Fields\Textarea;
use Laravel\Nova\Http\Requests\NovaRequest;
use App\Nova\Actions\DownloadExcel;
final class SessionResource extends Resource
{
@@ -107,12 +107,13 @@ public function fields(NovaRequest $request): array
->options([
'in_progress' => 'In Progress',
'completed' => 'Completed',
'unfinished' => 'Unfinished',
'abandoned' => 'Abandoned',
])
->displayUsingLabels()
->sortable()
->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.'),
->help('The current state of this session. "In Progress" means the user has not yet submitted, "Completed" means submitted, "Unfinished" means the session was auto-closed after inactivity, "Abandoned" means the user left without finishing.'),
Number::make('Score')
->sortable()