Remove commented-out Plant ID column from AlertMailRuleResource table for cleaner code

This commit is contained in:
dhanabalan
2025-11-08 16:02:33 +05:30
parent fbab6e6591
commit 7830631cdc

View File

@@ -123,20 +123,6 @@ class AlertMailRuleResource extends Resource
}
return $plants[$state] ?? 'All Plants';
}),
// Tables\Columns\TextColumn::make('plant.id')
// ->label('Plant ID')
// ->numeric()
// ->alignCenter()
// ->searchable()
// ->sortable()
// ->formatStateUsing(function ($state) {
// static $plants;
// if (! $plants) {
// $plants = Plant::pluck('id', 'id')->toArray();
// }
// return $plants[$state] ?? '0';
// })
// ->toggleable(isToggledHiddenByDefault: true),
Tables\Columns\TextColumn::make('module')
->label('Module Name')
->alignCenter()