Added export column label
This commit is contained in:
@@ -16,21 +16,30 @@ class ItemExporter extends Exporter
|
|||||||
return [
|
return [
|
||||||
ExportColumn::make('id')
|
ExportColumn::make('id')
|
||||||
->label('ID'),
|
->label('ID'),
|
||||||
ExportColumn::make('code'),
|
ExportColumn::make('code')
|
||||||
ExportColumn::make('description'),
|
->label('CODE'),
|
||||||
ExportColumn::make('hourly_quantity'),
|
ExportColumn::make('description')
|
||||||
ExportColumn::make('created_at'),
|
->label('DESCRIPTION'),
|
||||||
ExportColumn::make('updated_at'),
|
ExportColumn::make('hourly_quantity')
|
||||||
ExportColumn::make('deleted_at'),
|
->label('HOURLY QUANTITY'),
|
||||||
|
ExportColumn::make('plant.name')
|
||||||
|
->label('PLANT'),
|
||||||
|
ExportColumn::make('created_at')
|
||||||
|
->label('CREATED AT'),
|
||||||
|
ExportColumn::make('updated_at')
|
||||||
|
->label('UPDATED AT'),
|
||||||
|
ExportColumn::make('deleted_at')
|
||||||
|
// ->enabledByDefault(false)
|
||||||
|
->label('DELETED AT'),
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|
||||||
public static function getCompletedNotificationBody(Export $export): string
|
public static function getCompletedNotificationBody(Export $export): string
|
||||||
{
|
{
|
||||||
$body = 'Your item export has completed and '.number_format($export->successful_rows).' '.str('row')->plural($export->successful_rows).' exported.';
|
$body = 'Your item export has completed and ' . number_format($export->successful_rows) . ' ' . str('row')->plural($export->successful_rows) . ' exported.';
|
||||||
|
|
||||||
if ($failedRowsCount = $export->getFailedRowsCount()) {
|
if ($failedRowsCount = $export->getFailedRowsCount()) {
|
||||||
$body .= ' '.number_format($failedRowsCount).' '.str('row')->plural($failedRowsCount).' failed to export.';
|
$body .= ' ' . number_format($failedRowsCount) . ' ' . str('row')->plural($failedRowsCount) . ' failed to export.';
|
||||||
}
|
}
|
||||||
|
|
||||||
return $body;
|
return $body;
|
||||||
|
|||||||
Reference in New Issue
Block a user