diff --git a/app/Filament/Resources/ProductCharacteristicsMasterResource.php b/app/Filament/Resources/ProductCharacteristicsMasterResource.php index 947fc67..7bb818d 100644 --- a/app/Filament/Resources/ProductCharacteristicsMasterResource.php +++ b/app/Filament/Resources/ProductCharacteristicsMasterResource.php @@ -221,6 +221,12 @@ class ProductCharacteristicsMasterResource extends Resource ->afterStateUpdated(function ($state, callable $set) { $set('updated_by', Filament::auth()->user()?->name); }), + Forms\Components\TextInput::make('category') + ->label('Category') + ->reactive() + ->afterStateUpdated(function ($state, callable $set) { + $set('updated_by', Filament::auth()->user()?->name); + }), Forms\Components\Select::make('inspection_type') ->label('Inspection Type') ->searchable() @@ -351,6 +357,11 @@ class ProductCharacteristicsMasterResource extends Resource ->alignCenter() ->searchable() ->sortable(), + Tables\Columns\TextColumn::make('category') + ->label('Category') + ->alignCenter() + ->searchable() + ->sortable(), Tables\Columns\TextColumn::make('line.name') ->label('Line Name') ->alignCenter() diff --git a/app/Models/ProductCharacteristicsMaster.php b/app/Models/ProductCharacteristicsMaster.php index 931c04c..124040b 100644 --- a/app/Models/ProductCharacteristicsMaster.php +++ b/app/Models/ProductCharacteristicsMaster.php @@ -18,6 +18,7 @@ class ProductCharacteristicsMaster extends Model 'machine_id', 'characteristics_type', 'name', + 'category', 'inspection_type', 'lower', 'upper', diff --git a/database/migrations/2026_04_21_154805_add_category_to_product_characteristics_masters.php b/database/migrations/2026_04_21_154805_add_category_to_product_characteristics_masters.php new file mode 100644 index 0000000..6e0493a --- /dev/null +++ b/database/migrations/2026_04_21_154805_add_category_to_product_characteristics_masters.php @@ -0,0 +1,31 @@ +