fixes issues
This commit is contained in:
@@ -40,7 +40,7 @@ final class CategoryResource extends Resource
|
||||
*
|
||||
* @var bool
|
||||
*/
|
||||
public static $displayInNavigation = false;
|
||||
public static $displayInNavigation = true;
|
||||
|
||||
/**
|
||||
* Get the displayable label of the resource.
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
use Laravel\Nova\Fields\HasMany;
|
||||
use Laravel\Nova\Fields\ID;
|
||||
use Laravel\Nova\Fields\Number;
|
||||
use Laravel\Nova\Fields\Text;
|
||||
use Laravel\Nova\Fields\Select;
|
||||
use Laravel\Nova\Fields\Textarea;
|
||||
use Laravel\Nova\Http\Requests\NovaRequest;
|
||||
use Maatwebsite\LaravelNovaExcel\Actions\DownloadExcel;
|
||||
@@ -80,8 +80,7 @@ public function fields(NovaRequest $request): array
|
||||
|
||||
BelongsTo::make('Question Group', 'questionGroup', QuestionGroupResource::class)
|
||||
->sortable()
|
||||
->filterable()
|
||||
->readonly(),
|
||||
->filterable(),
|
||||
|
||||
Textarea::make('Text')
|
||||
->rules('required')
|
||||
@@ -89,35 +88,35 @@ public function fields(NovaRequest $request): array
|
||||
|
||||
Boolean::make('Has Yes')
|
||||
->sortable()
|
||||
->filterable()
|
||||
->readonly(),
|
||||
->filterable(),
|
||||
|
||||
Boolean::make('Has No')
|
||||
->sortable()
|
||||
->filterable()
|
||||
->readonly(),
|
||||
->filterable(),
|
||||
|
||||
Boolean::make('Has NA', 'has_na')
|
||||
->sortable()
|
||||
->filterable()
|
||||
->readonly(),
|
||||
->filterable(),
|
||||
|
||||
Text::make('Details')
|
||||
Select::make('Details')
|
||||
->options([
|
||||
'optional' => 'Optional',
|
||||
'required' => 'Required',
|
||||
'req_on_yes' => 'Required on Yes',
|
||||
'req_on_no' => 'Required on No',
|
||||
])
|
||||
->displayUsingLabels()
|
||||
->nullable()
|
||||
->sortable()
|
||||
->filterable()
|
||||
->copyable()
|
||||
->readonly(),
|
||||
->filterable(),
|
||||
|
||||
Number::make('Sort Order')
|
||||
->sortable()
|
||||
->filterable()
|
||||
->copyable()
|
||||
->readonly(),
|
||||
->filterable(),
|
||||
|
||||
Boolean::make('Is Scored')
|
||||
->sortable()
|
||||
->filterable()
|
||||
->readonly(),
|
||||
->filterable(),
|
||||
|
||||
DateTime::make('Created At')
|
||||
->exceptOnForms()
|
||||
|
||||
Reference in New Issue
Block a user