diff --git a/app/Filament/Resources/LineResource.php b/app/Filament/Resources/LineResource.php index de6d619..0dacfa5 100644 --- a/app/Filament/Resources/LineResource.php +++ b/app/Filament/Resources/LineResource.php @@ -29,6 +29,7 @@ class LineResource extends Resource protected static ?string $navigationIcon = 'heroicon-o-rectangle-stack'; protected static ?string $navigationGroup = 'Master Entries'; + protected static ?int $navigationSort = 5; public static function form(Form $form): Form @@ -174,6 +175,9 @@ class LineResource extends Resource ]) ->hint(fn ($get) => $get('lTypeError') ? $get('lTypeError') : null) ->hintColor('danger'), + Forms\Components\TextInput::make('group_work_center') + ->label('Group Work Center') + ->placeholder('Scan the valid Group Work Center'), Forms\Components\TextInput::make('id') ->hidden() ->readOnly(), @@ -198,6 +202,11 @@ class LineResource extends Resource $currentPage = method_exists($paginator, 'currentPage') ? $paginator->currentPage() : 1; return ($currentPage - 1) * $perPage + $rowLoop->iteration; }), + Tables\Columns\TextColumn::make('plant.name') + ->label('Plant') + ->alignCenter() + ->sortable() + ->searchable(), Tables\Columns\TextColumn::make('name') ->label('Line') ->alignCenter() @@ -208,8 +217,8 @@ class LineResource extends Resource ->alignCenter() ->sortable() ->searchable(), - Tables\Columns\TextColumn::make('plant.name') - ->label('Plant') + Tables\Columns\TextColumn::make('group_work_center') + ->label('Group Work Center') ->alignCenter() ->sortable() ->searchable(),