changed logic in ocr

This commit is contained in:
dhanabalan
2025-10-29 11:53:37 +05:30
parent 7c802419da
commit de891afb79

View File

@@ -284,22 +284,22 @@ class OcrValidationResource extends Resource
$serialNumbers = $serials; $serialNumbers = $serials;
//$templatePath = storage_path('app/private/uploads/StickerTemplateOcr/Single.pdf'); //$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( // dd(
$templatePath, // $templatePath,
file_exists($templatePath), // file_exists($templatePath),
scandir(storage_path("app/private/uploads/")) // scandir(storage_path("app/private/uploads/"))
); // );
if(!file_exists($templatePath)) // if(!file_exists($templatePath))
{ // {
Notification::make() // Notification::make()
->title("Template PDF not found for the Gr Number $grNumber.") // ->title("Template PDF not found for the Gr Number $grNumber.")
->danger() // ->danger()
->send(); // ->send();
return; // return;
} // }
$outputPath = storage_path('app/private/uploads/StickerTemplateOcr/single_filled.pdf'); $outputPath = storage_path('app/private/uploads/StickerTemplateOcr/single_filled.pdf');