From de891afb795987ab76f5da7b4c91bf2ffef46b77 Mon Sep 17 00:00:00 2001 From: dhanabalan Date: Wed, 29 Oct 2025 11:53:37 +0530 Subject: [PATCH] changed logic in ocr --- .../Resources/OcrValidationResource.php | 28 +++++++++---------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/app/Filament/Resources/OcrValidationResource.php b/app/Filament/Resources/OcrValidationResource.php index 34948f5..d9a6698 100644 --- a/app/Filament/Resources/OcrValidationResource.php +++ b/app/Filament/Resources/OcrValidationResource.php @@ -284,22 +284,22 @@ class OcrValidationResource extends Resource $serialNumbers = $serials; //$templatePath = storage_path('app/private/uploads/StickerTemplateOcr/Single.pdf'); - $templatePath = storage_path('var/www/app/private/uploads/OcrGrNumber/' . $grNumber . '.pdf'); + $templatePath = storage_path('app/private/uploads/OcrGrNumber/' . $grNumber . '.pdf'); - dd( - $templatePath, - file_exists($templatePath), - scandir(storage_path("app/private/uploads/")) - ); + // dd( + // $templatePath, + // file_exists($templatePath), + // scandir(storage_path("app/private/uploads/")) + // ); - if(!file_exists($templatePath)) - { - Notification::make() - ->title("Template PDF not found for the Gr Number $grNumber.") - ->danger() - ->send(); - return; - } + // if(!file_exists($templatePath)) + // { + // Notification::make() + // ->title("Template PDF not found for the Gr Number $grNumber.") + // ->danger() + // ->send(); + // return; + // } $outputPath = storage_path('app/private/uploads/StickerTemplateOcr/single_filled.pdf');