From 269f85cfb656611e7baf2f33c730f6daaee9413d Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Mon, 21 Sep 2026 18:42:36 +0530 Subject: [PATCH] Added date of test rule in test certificate template --- app/Services/StickerPdfService.php | 4 ++++ 1 file changed, 4 insertions(+) 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 ?? '', '₹')) { -- 2.49.1