Added uom column and updated columnSpan alignments
This commit is contained in:
@@ -111,6 +111,7 @@ class ItemResource extends Resource
|
|||||||
->label('Hourly Quantity')
|
->label('Hourly Quantity')
|
||||||
->placeholder('Scan the valid quantity')
|
->placeholder('Scan the valid quantity')
|
||||||
->integer()
|
->integer()
|
||||||
|
->default(1)
|
||||||
->minValue(1)
|
->minValue(1)
|
||||||
->reactive()
|
->reactive()
|
||||||
->afterStateUpdated(function ($state, callable $set, callable $get) {
|
->afterStateUpdated(function ($state, callable $set, callable $get) {
|
||||||
@@ -135,15 +136,22 @@ class ItemResource extends Resource
|
|||||||
])
|
])
|
||||||
->hint(fn ($get) => $get('iHourQuanError') ? $get('iHourQuanError') : null)
|
->hint(fn ($get) => $get('iHourQuanError') ? $get('iHourQuanError') : null)
|
||||||
->hintColor('danger'),
|
->hintColor('danger'),
|
||||||
Forms\Components\Textarea::make('description')
|
Forms\Components\TextInput::make('uom')
|
||||||
->required()
|
->required()
|
||||||
->placeholder('Scan the valid description'),
|
->label('Unit of Measure')
|
||||||
|
->placeholder('Scan the valid uom'),
|
||||||
|
|
||||||
|
Forms\Components\TextInput::make('description')
|
||||||
|
->placeholder('Scan the valid description')
|
||||||
|
->required()
|
||||||
|
->minLength(5)
|
||||||
|
->columnSpan(['default' => 1, 'sm' => 2]),
|
||||||
// ->columnSpanFull(),
|
// ->columnSpanFull(),
|
||||||
Forms\Components\TextInput::make('id')
|
Forms\Components\TextInput::make('id')
|
||||||
->hidden()
|
->hidden()
|
||||||
->readOnly(),
|
->readOnly(),
|
||||||
])
|
])
|
||||||
->columns(2),
|
->columns(3),
|
||||||
]);
|
]);
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -162,8 +170,14 @@ class ItemResource extends Resource
|
|||||||
->sortable()
|
->sortable()
|
||||||
->searchable(),
|
->searchable(),
|
||||||
Tables\Columns\TextColumn::make('hourly_quantity')
|
Tables\Columns\TextColumn::make('hourly_quantity')
|
||||||
|
->label('Hourly Quantity')
|
||||||
|
->alignCenter()
|
||||||
->numeric()
|
->numeric()
|
||||||
->sortable(),
|
->sortable(),
|
||||||
|
Tables\Columns\TextColumn::make('uom')
|
||||||
|
->label('Unit of Measure')
|
||||||
|
->alignCenter()
|
||||||
|
->sortable(),
|
||||||
Tables\Columns\TextColumn::make('plant.name')
|
Tables\Columns\TextColumn::make('plant.name')
|
||||||
->sortable()
|
->sortable()
|
||||||
->searchable(),
|
->searchable(),
|
||||||
|
|||||||
Reference in New Issue
Block a user