From c62231fe3a88aa6930dd3d75e43d2e9278e33ecc Mon Sep 17 00:00:00 2001 From: omair saleh Date: Mon, 1 Aug 2022 02:15:03 +0800 Subject: [PATCH] hide notification temp --- .../ApproveIdentificationDocumentLogic.php | 18 +++++++++--------- resources/views/partials/header.blade.php | 2 +- 2 files changed, 10 insertions(+), 10 deletions(-) diff --git a/app/Classes/Modules/Companies/ControllersLogic/ApproveIdentificationDocumentLogic.php b/app/Classes/Modules/Companies/ControllersLogic/ApproveIdentificationDocumentLogic.php index af42a35a..928a9c01 100644 --- a/app/Classes/Modules/Companies/ControllersLogic/ApproveIdentificationDocumentLogic.php +++ b/app/Classes/Modules/Companies/ControllersLogic/ApproveIdentificationDocumentLogic.php @@ -97,15 +97,15 @@ class ApproveIdentificationDocumentLogic extends AbstractControllerLogic $this->updatesCompanyStatus->execute($document->owner, $status === 'approve' ? ApprovalStatus::APPROVED : ApprovalStatus::REJECTED); - $object = new NotificationObject( - 'ID Verification ' . ( $status === 'approve' ? 'Approved' : 'Rejected' ), - ( $status === 'approve' ? 'Dear user, congratulations that your ' : 'Dear user, we are sorry to inform you that your ' ) . ( $document->type === 'IDENTITY_CARD' ? 'IC' : 'SSM' ) . ( $status === 'approve' ? ' has been approved. Start your first order now!' : ' has been rejected due to ' . ( $request->input('rejectRemark') ?? '' ) . ', please resubmit it for further action.' ), - $document->owner, - $document->owner->companyModules()->first()->employees()->first(), - $document, - ); - - $this->createNotificationProcessor->execute($object); +// $object = new NotificationObject( +// 'ID Verification ' . ( $status === 'approve' ? 'Approved' : 'Rejected' ), +// ( $status === 'approve' ? 'Dear user, congratulations that your ' : 'Dear user, we are sorry to inform you that your ' ) . ( $document->type === 'IDENTITY_CARD' ? 'IC' : 'SSM' ) . ( $status === 'approve' ? ' has been approved. Start your first order now!' : ' has been rejected due to ' . ( $request->input('rejectRemark') ?? '' ) . ', please resubmit it for further action.' ), +// $document->owner, +// $document->owner->companyModules()->first()->employees()->first(), +// $document, +// ); +// +// $this->createNotificationProcessor->execute($object); if($status === 'approve'){ $orders = $this->updatesOrdersStatus->execute($document->owner, ApprovalStatus::APPROVED); diff --git a/resources/views/partials/header.blade.php b/resources/views/partials/header.blade.php index 5a37f886..9bc45c20 100644 --- a/resources/views/partials/header.blade.php +++ b/resources/views/partials/header.blade.php @@ -10,7 +10,7 @@ -
+