added one form form in ocr

This commit is contained in:
dhanabalan
2025-10-17 09:53:23 +05:30
parent 5237808e8c
commit 83cc18b93c

View File

@@ -69,6 +69,10 @@ class OcrValidationResource extends Resource
->image()
->helperText('You can take a picture from your webcam')
->reactive(),
Forms\Components\TextInput::make('photo1')
->label('Captured Photo')
->hidden(),
Forms\Components\Actions::make([
Action::make('uploadNow1')
->label('Upload OCR')
@@ -201,7 +205,7 @@ class OcrValidationResource extends Resource
Action::make('verifyOcr')
->label('Verify OCR')
->action(function ($get) {
$base64Image = $get('photo_data');
$base64Image = $get('photo1');
if (!$base64Image) {
Notification::make()