improvements
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user