Commented enter logic

This commit is contained in:
dhanabalan
2025-04-08 17:27:59 +05:30
parent 20a7d06175
commit c03e55a1fb

View File

@@ -4,6 +4,7 @@ namespace App\Filament\Resources\ProductionQuantityResource\Pages;
use App\Filament\Resources\ProductionQuantityResource; use App\Filament\Resources\ProductionQuantityResource;
use Filament\Actions; use Filament\Actions;
use Filament\Notifications\Notification;
use Filament\Resources\Pages\CreateRecord; use Filament\Resources\Pages\CreateRecord;
class CreateProductionQuantity extends CreateRecord class CreateProductionQuantity extends CreateRecord
@@ -14,4 +15,30 @@ class CreateProductionQuantity extends CreateRecord
{ {
return $this->getResource()::getUrl('create'); // Stay on Create Page after saving return $this->getResource()::getUrl('create'); // Stay on Create Page after saving
} }
// public $qr_data;
// public function processQr($itemCode)
// {
// $this->qr_data = $itemCode;
// // Check if the file is uploaded
// if (!$this->qr_data) {
// Notification::make()
// ->title('No QR Found')
// ->body("Please, scan the QR code.")
// ->danger()
// // ->persistent()
// ->send();
// return;
// }
// else {
// Notification::make()
// ->title('QR Found')
// ->body("Valid QR code scanned: {$this->qr_data}.")
// ->success()
// // ->persistent()
// ->send();
// }
// }
} }