diff --git a/Modules/HospitalPortal/Http/Controllers/ApotekController.php b/Modules/HospitalPortal/Http/Controllers/ApotekController.php
index e1ff4c70..1c83b8a5 100644
--- a/Modules/HospitalPortal/Http/Controllers/ApotekController.php
+++ b/Modules/HospitalPortal/Http/Controllers/ApotekController.php
@@ -26,6 +26,7 @@ class ApotekController extends Controller
$results = DB::connection('oldlms')->table('tx_prescriptions')
->join('tx_prescription_orders', 'tx_prescription_orders.nIDPrescription', '=', 'tx_prescriptions.nID')
->join('tm_users', 'tm_users.nID', '=', 'tx_prescriptions.nIDUser')
+ ->where('tx_prescription_orders.nIDApotek', '=', auth()->user()->organization_id)
->when($request->input('search'), function ($query, $search) {
$query->where(function ($query) use ($search) {
$query->orWhere('tx_prescriptions.sKodeResep', 'like', "%" . $search . "%")
diff --git a/frontend/hospital-portal/src/layouts/dashboard/header/NotificationsPopover.tsx b/frontend/hospital-portal/src/layouts/dashboard/header/NotificationsPopover.tsx
index 4800a2b7..569cbd71 100755
--- a/frontend/hospital-portal/src/layouts/dashboard/header/NotificationsPopover.tsx
+++ b/frontend/hospital-portal/src/layouts/dashboard/header/NotificationsPopover.tsx
@@ -47,7 +47,7 @@ export default function NotificationsPopover() {
};
useEffect(() => {
getDataNotifications();
- }, []);
+ }, []);
const totalUnRead = notifications.filter((item) => item.isUnRead === 1).length;
@@ -137,7 +137,7 @@ export default function NotificationsPopover() {
>
): ''}
-
+
@@ -256,12 +256,12 @@ function renderContent(notification: NotificationItemProps) {
title,
};
}
- if (notification.type === 'mail' || notification.type === 'request_document') {
+ if (notification.type === 'mail' || notification.type === 'request_document' || notification.type === 'grab_status') {
return {
avatar: (
),
title,