diff --git a/app/Services/StickerPdfService.php b/app/Services/StickerPdfService.php index efdb987..2fb2a12 100644 --- a/app/Services/StickerPdfService.php +++ b/app/Services/StickerPdfService.php @@ -1052,6 +1052,7 @@ class StickerPdfService $plantName = $itemCharacteristic?->plant?->name ?? ''; $plantAddress = $itemCharacteristic?->plant?->address ?? ''; + $dateOfTest = $itemCharacteristic?->created_at?->format('d.m.Y') ?? ''; foreach ($dynamicElements as $element) { @@ -1116,6 +1117,9 @@ class StickerPdfService if ($row->characteristics_type === 'current_date') { $textValue = date('M-y'); } + if ($row->characteristics_type === 'date_of_test') { + $textValue = $dateOfTest; + } $font = $row->string_font ?? 'helvetica'; if (str_contains($row->string_value ?? '', '₹')) {