1
0
forked from poc/pds

Added category column for items masters

This commit is contained in:
dhanabalan
2025-06-03 16:35:02 +05:30
parent 7760c64ed3
commit 29c092a860
5 changed files with 52 additions and 1 deletions

View File

@@ -66,6 +66,10 @@ class ItemResource extends Resource
])
->hint(fn ($get) => $get('iPlantError') ? $get('iPlantError') : null)
->hintColor('danger'),
Forms\Components\TextInput::make('category')
->label('Category')
->placeholder('Scan the Category'),
Forms\Components\TextInput::make('code')
->required()
->placeholder('Scan the valid code')
@@ -146,7 +150,7 @@ class ItemResource extends Resource
->placeholder('Scan the valid description')
->required()
->minLength(5)
->columnSpan(['default' => 1, 'sm' => 2]),
->columnSpan(['default' => 1, 'sm' => 1]),
// ->columnSpanFull(),
Forms\Components\TextInput::make('id')
->hidden()
@@ -178,6 +182,11 @@ class ItemResource extends Resource
->alignCenter()
->sortable()
->searchable(),
Tables\Columns\TextColumn::make('category')
->label('Category')
->alignCenter()
->sortable()
->searchable(),
Tables\Columns\TextColumn::make('description')
->label('Description')
->alignCenter()