After change datatype from citext to text
This commit is contained in:
@@ -16,7 +16,7 @@ class BlockResource extends Resource
|
||||
{
|
||||
protected static ?string $model = Block::class;
|
||||
|
||||
protected static ?string $navigationIcon = 'codeat3/blade-clarity-icons';
|
||||
protected static ?string $navigationIcon = 'heroicon-c-building-library';
|
||||
|
||||
protected static ?string $navigationGroup = 'Master Entries';
|
||||
|
||||
|
||||
@@ -27,6 +27,7 @@ class CompanyResource extends Resource
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('name')
|
||||
->required()
|
||||
//->citext('name')
|
||||
->unique()
|
||||
->columnSpanFull(),
|
||||
]);
|
||||
|
||||
@@ -40,6 +40,15 @@ class ItemResource extends Resource
|
||||
Forms\Components\Textarea::make('description')
|
||||
->required()
|
||||
->columnSpanFull(),
|
||||
Forms\Components\Select::make('plant_id')
|
||||
->relationship('plant', 'name')
|
||||
->required(),
|
||||
Forms\Components\Select::make('block_id')
|
||||
->relationship('block', 'name')
|
||||
->required(),
|
||||
Forms\Components\Select::make('line_id')
|
||||
->relationship('line', 'name')
|
||||
->required(),
|
||||
]);
|
||||
}
|
||||
|
||||
@@ -58,6 +67,12 @@ class ItemResource extends Resource
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('description')
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('line.name')
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('block.name')
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('plant.name')
|
||||
->sortable(),
|
||||
Tables\Columns\TextColumn::make('created_at')
|
||||
->dateTime()
|
||||
->sortable()
|
||||
|
||||
@@ -17,7 +17,7 @@ class PlantResource extends Resource
|
||||
{
|
||||
protected static ?string $model = Plant::class;
|
||||
|
||||
protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack';
|
||||
protected static ?string $navigationIcon = 'heroicon-s-building-office-2';
|
||||
|
||||
protected static ?string $navigationGroup = 'Master Entries';
|
||||
|
||||
|
||||
@@ -27,16 +27,13 @@ class ProductionQuantityResource extends Resource
|
||||
{
|
||||
return $form
|
||||
->schema([
|
||||
Forms\Components\TextInput::make('plan_quantity')
|
||||
->required()
|
||||
->numeric(),
|
||||
Forms\Components\TextInput::make('hourly_quantity')
|
||||
->required()
|
||||
->numeric(),
|
||||
Forms\Components\TextInput::make('item_code')
|
||||
->required()
|
||||
->autocapitalize('item_code'),
|
||||
//->columnSpanFull(),
|
||||
Forms\Components\Select::make('item_id')
|
||||
->relationship('item', 'code')
|
||||
->required(),
|
||||
// Forms\Components\TextInput::make('item_code')
|
||||
// ->required()
|
||||
// ->autocapitalize('item_code'),
|
||||
// //->columnSpanFull(),
|
||||
Forms\Components\TextInput::make('serial_number')
|
||||
->required()
|
||||
->autocapitalize('serial_number'),
|
||||
|
||||
Reference in New Issue
Block a user