Updated label and variable declarion for default zero
This commit is contained in:
@@ -13,31 +13,34 @@ class ConfigurationExporter extends Exporter
|
||||
|
||||
public static function getColumns(): array
|
||||
{
|
||||
static $rowNumber = 0;
|
||||
|
||||
return [
|
||||
ExportColumn::make('no')
|
||||
->label('No')
|
||||
->label('NO')
|
||||
->state(function ($record) use (&$rowNumber) {
|
||||
// Increment and return the row number
|
||||
return ++$rowNumber;
|
||||
}),
|
||||
ExportColumn::make('plant.name')
|
||||
->label('Plant'),
|
||||
->label('PLANT'),
|
||||
ExportColumn::make('line.name')
|
||||
->label('Line'),
|
||||
->label('LINE'),
|
||||
ExportColumn::make('c_type')
|
||||
->label('Type'),
|
||||
->label('TYPE'),
|
||||
ExportColumn::make('c_group')
|
||||
->label('Group'),
|
||||
->label('GROUP'),
|
||||
ExportColumn::make('c_name')
|
||||
->label('Name'),
|
||||
->label('NAME'),
|
||||
ExportColumn::make('c_value')
|
||||
->label('Value'),
|
||||
->label('VALUE'),
|
||||
ExportColumn::make('created_at')
|
||||
->label('Created At'),
|
||||
->label('CREATED AT'),
|
||||
ExportColumn::make('updated_at')
|
||||
->label('Updated At'),
|
||||
->label('UPDATED AT'),
|
||||
ExportColumn::make('deleted_at')
|
||||
->label('Deleted At'),
|
||||
->enabledByDefault(false)
|
||||
->label('DELETED AT'),
|
||||
];
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user