diff --git a/app/Filament/Resources/CarShowCategoryResource/RelationManagers/VehicleRelationManager.php b/app/Filament/Resources/CarShowCategoryResource/RelationManagers/VehicleRelationManager.php new file mode 100644 index 0000000..2ec0c9e --- /dev/null +++ b/app/Filament/Resources/CarShowCategoryResource/RelationManagers/VehicleRelationManager.php @@ -0,0 +1,53 @@ +schema([ + Forms\Components\TextInput::make('type') + ->required() + ->maxLength(255), + ]); + } + + public static function table(Table $table): Table + { + return $table + ->columns([ + Tables\Columns\TextColumn::make('type'), + Tables\Columns\TextColumn::make('owner'), + Tables\Columns\TextColumn::make('year'), + Tables\Columns\TextColumn::make('make'), + Tables\Columns\TextColumn::make('model'), + ]) + ->filters([ + // + ]) + ->headerActions([ + Tables\Actions\CreateAction::make(), + ]) + ->actions([ + Tables\Actions\EditAction::make(), + Tables\Actions\DeleteAction::make(), + ]) + ->bulkActions([ + Tables\Actions\DeleteBulkAction::make(), + ]); + } +}