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