Added logic for pdf shown in mail
All checks were successful
Scan for leaked secrets using Kingfisher / kingfisher-secrets-scan (push) Successful in 16s

This commit is contained in:
dhanabalan
2026-12-01 15:33:09 +05:30
parent 13017082b6
commit c342d54c7b

View File

@@ -185,7 +185,29 @@ class RequestCharacteristicResource extends Resource
}
// Build filename
$fileName = "{$workFlowId}.png";
// $fileName = "{$workFlowId}.png";
// $imageUrl = route('workflow.image', [
// 'filename' => $fileName,
// ]);
// $set('validation1_image_url', $imageUrl);
$files = glob(storage_path("app/private/uploads/LaserDocs/{$workFlowId}.*"));
if (empty($files)) {
$set('validation1_image_url', null);
Notification::make()
->title('Validation File Not Found')
->body("No validation image or PDF found for Workflow ID: {$workFlowId}")
->warning()
->send();
return;
}
$fileName = basename($files[0]);
$imageUrl = route('workflow.image', [
'filename' => $fileName,