added one form form in ocr
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user