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(); // } // } }