sortable(), Text::make('Name') ->sortable() ->rules('required'), Text::make('Employee ID') ->sortable() ->rules('required', 'unique:technicians,employee_id,{{resourceId}}'), Text::make('Email') ->sortable() ->rules('required', 'email', 'unique:technicians,email,{{resourceId}}'), Text::make('Phone') ->hideFromIndex() ->rules('nullable'), Select::make('Specialization') ->options([ 'mechanical' => 'Mechanical', 'electrical' => 'Electrical', 'body' => 'Body Work', 'general' => 'General', ]) ->displayUsingLabels() ->sortable(), Boolean::make('Is Active') ->sortable(), BelongsToMany::make('Repair Orders'), HasMany::make('Repair Tasks'), ]; } public function filters(NovaRequest $request) { return [ new TechnicianSpecializationFilter, ]; } }