{"id":12976,"date":"2026-08-04T10:38:25","date_gmt":"2026-08-04T10:38:25","guid":{"rendered":"https:\/\/hamadapharmacy.com\/?page_id=12976"},"modified":"2026-08-04T10:38:26","modified_gmt":"2026-08-04T10:38:26","slug":"%d8%b7%d9%84%d8%a8-%d8%b1%d9%88%d8%b4%d8%aa%d8%a9-2","status":"publish","type":"page","link":"https:\/\/hamadapharmacy.com\/en\/%d8%b7%d9%84%d8%a8-%d8%b1%d9%88%d8%b4%d8%aa%d8%a9-2\/","title":{"rendered":"\u0637\u0644\u0628 \u0631\u0648\u0634\u062a\u0629"},"content":{"rendered":"\n<div style=\"max-width: 480px; margin: 20px auto; background: #ffffff; padding: 25px; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); font-family: sans-serif; direction: rtl; text-align: right;\">\n    \n    <div style=\"text-align: center; margin-bottom: 20px;\">\n        <h2 style=\"color: #00a650; margin: 0 0 5px 0;\">\ud83d\udc8a \u0637\u0644\u0628 \u0631\u0648\u0634\u062a\u0629 \u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a\u0629<\/h2>\n        <p style=\"color: #666; font-size: 14px; margin: 0;\">\u0642\u0645 \u0628\u062a\u0635\u0648\u064a\u0631 \u0623\u0648 \u0631\u0641\u0639 \u0627\u0644\u0631\u0648\u0634\u062a\u0629 \u0644\u062a\u0635\u0644\u0646\u0627 \u0641\u0648\u0631\u0627\u064b<\/p>\n    <\/div>\n\n    <form onsubmit=\"submitPrescriptionToWA(event)\">\n        \n        <!-- \u0627\u0644\u0627\u0633\u0645 -->\n        <div style=\"margin-bottom: 15px;\">\n            <label style=\"display: block; font-weight: bold; margin-bottom: 5px; font-size: 14px;\">\ud83d\udc64 \u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0643\u0627\u0645\u0644 *<\/label>\n            <input type=\"text\" id=\"freeName\" placeholder=\"\u0623\u062f\u062e\u0644 \u0627\u0633\u0645\u0643 \u0627\u0644\u0643\u0627\u0645\u0644\" required style=\"width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box; text-align: right;\">\n        <\/div>\n\n        <!-- \u0627\u0644\u0647\u0627\u062a\u0641 -->\n        <div style=\"margin-bottom: 15px;\">\n            <label style=\"display: block; font-weight: bold; margin-bottom: 5px; font-size: 14px;\">\ud83d\udcde \u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062a\u0641 \/ \u0627\u0644\u0648\u0627\u062a\u0633\u0627\u0628 *<\/label>\n            <input type=\"tel\" id=\"freePhone\" placeholder=\"\u0645\u062b\u0627\u0644: 01012345678\" required style=\"width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box; text-align: right;\">\n        <\/div>\n\n        <!-- \u0627\u0644\u0645\u0648\u0642\u0639 \u0648\u0627\u0644\u0640 GPS -->\n        <div style=\"margin-bottom: 15px;\">\n            <label style=\"display: block; font-weight: bold; margin-bottom: 5px; font-size: 14px;\">\ud83d\udccd \u0639\u0646\u0648\u0627\u0646 \u0627\u0644\u062a\u0648\u0635\u064a\u0644 \/ \u0627\u0644\u0645\u0648\u0642\u0639<\/label>\n            <div style=\"display: flex; gap: 6px;\">\n                <input type=\"text\" id=\"freeLocation\" placeholder=\"\u0627\u0643\u062a\u0628 \u0627\u0644\u0639\u0646\u0648\u0627\u0646 \u0623\u0648 \u0627\u0636\u063a\u0637 \u062c\u0644\u0628 \u0627\u0644\u0645\u0648\u0642\u0639\" style=\"flex: 1; padding: 12px; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box; text-align: right;\">\n                <button type=\"button\" id=\"gpsBtn\" onclick=\"getGPS()\" style=\"padding: 0 14px; background: #e9ecef; border: 1px solid #ccc; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 13px; min-width: 90px;\">\ud83d\udccd GPS<\/button>\n            <\/div>\n            <div id=\"gpsStatus\" style=\"font-size: 12px; margin-top: 4px; font-weight: bold;\"><\/div>\n        <\/div>\n\n        <!-- \u0635\u0646\u062f\u0648\u0642 \u0627\u0644\u062a\u0635\u0648\u064a\u0631 \u0648\u0627\u0644\u0631\u0641\u0639 \u0627\u0644\u0645\u062f\u0645\u062c -->\n        <div style=\"border: 2px dashed #00a650; padding: 16px; border-radius: 8px; background: #f8fff9; text-align: center; margin-bottom: 15px;\">\n            <label style=\"font-weight: bold; color: #155724; font-size: 14px; display: block;\">\ud83d\udcf8 \u0635\u0648\u0631\u0629 \u0627\u0644\u0631\u0648\u0634\u062a\u0629 (\u0625\u0644\u0632\u0627\u0645\u064a)<\/label>\n            \n            <div style=\"display: flex; gap: 10px; justify-content: center; margin-top: 10px;\">\n                <!-- \u062a\u0635\u0648\u064a\u0631 \u0645\u0628\u0627\u0634\u0631 -->\n                <button type=\"button\" onclick=\"document.getElementById('freeCam').click();\" style=\"flex: 1; padding: 10px; border: none; border-radius: 6px; background: #28a745; color: white; font-weight: bold; cursor: pointer;\">\n                    \ud83d\udcf7 \u062a\u0635\u0648\u064a\u0631 \u0628\u0627\u0644\u0643\u0627\u0645\u064a\u0631\u0627\n                <\/button>\n                <input type=\"file\" id=\"freeCam\" accept=\"image\/*\" capture=\"environment\" style=\"display: none;\" onchange=\"handleImageProcess(this)\">\n\n                <!-- \u0631\u0641\u0639 \u0645\u0646 \u0627\u0644\u062c\u0647\u0627\u0632 -->\n                <button type=\"button\" onclick=\"document.getElementById('freeFile').click();\" style=\"flex: 1; padding: 10px; border: none; border-radius: 6px; background: #007bff; color: white; font-weight: bold; cursor: pointer;\">\n                    \ud83d\udcc1 \u0631\u0641\u0639 \u0645\u0644\u0641\/\u0635\u0648\u0631\u0629\n                <\/button>\n                <input type=\"file\" id=\"freeFile\" accept=\"image\/*\" style=\"display: none;\" onchange=\"handleImageProcess(this)\">\n            <\/div>\n\n            <div id=\"freeStatus\" style=\"margin-top: 10px; font-size: 13px; font-weight: bold; color: #dc3545;\">\n                \u26a0\ufe0f \u064a\u062c\u0628 \u0625\u0631\u0641\u0627\u0642 \u0623\u0648 \u062a\u0635\u0648\u064a\u0631 \u0627\u0644\u0631\u0648\u0634\u062a\u0629 \u0623\u0648\u0644\u0627\u064b\n            <\/div>\n        <\/div>\n\n        <!-- \u0645\u0644\u0627\u062d\u0638\u0627\u062a -->\n        <div style=\"margin-bottom: 20px;\">\n            <label style=\"display: block; font-weight: bold; margin-bottom: 5px; font-size: 14px;\">\ud83d\udcac \u0645\u0644\u0627\u062d\u0638\u0627\u062a (\u0627\u062e\u062a\u064a\u0627\u0631\u064a)<\/label>\n            <textarea id=\"freeNotes\" rows=\"2\" placeholder=\"\u0623\u064a \u0645\u0644\u0627\u062d\u0638\u0627\u062a \u0625\u0636\u0627\u0641\u064a\u0629...\" style=\"width: 100%; padding: 12px; border: 1px solid #ccc; border-radius: 8px; box-sizing: border-box; text-align: right;\"><\/textarea>\n        <\/div>\n\n        <!-- \u0632\u0631 \u0627\u0644\u0625\u0631\u0633\u0627\u0644 -->\n        <button type=\"submit\" style=\"width: 100%; background-color: #25d366; color: white; border: none; padding: 14px; border-radius: 8px; font-size: 16px; font-weight: bold; cursor: pointer;\">\n            \ud83d\udcf2 \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0637\u0644\u0628 \u0639\u0628\u0631 \u0627\u0644\u0648\u0627\u062a\u0633\u0627\u0628\n        <\/button>\n\n    <\/form>\n<\/div>\n\n<script>\nlet freeImageObj = null;\nlet freeImgUrl = \"\";\n\n\/\/ \u0645\u0639\u0627\u0644\u062c\u0629 \u0631\u0641\u0639 \u0648\u062a\u0635\u0648\u064a\u0631 \u0627\u0644\u0631\u0648\u0634\u062a\u0629\nasync function handleImageProcess(input) {\n    const file = input.files[0];\n    const status = document.getElementById('freeStatus');\n    if (!file) return;\n\n    freeImageObj = file;\n    status.style.color = \"#0056b3\";\n    status.innerText = \"\u23f3 \u062c\u0627\u0631\u064a \u0645\u0639\u0627\u0644\u062c\u0629 \u0627\u0644\u0635\u0648\u0631\u0629...\";\n\n    const formData = new FormData();\n    formData.append(\"image\", file);\n\n    try {\n        const response = await fetch(\"https:\/\/api.imgbb.com\/1\/upload?key=6d257f2c2d1331dd8e3101e05d29d187\", {\n            method: \"POST\",\n            body: formData\n        });\n        const resData = await response.json();\n\n        if (resData.success) {\n            freeImgUrl = resData.data.url;\n            status.style.color = \"#28a745\";\n            status.innerText = \"\u2705 \u062a\u0645 \u0625\u0631\u0641\u0627\u0642 \u0627\u0644\u0635\u0648\u0631\u0629 \u0628\u0646\u062c\u0627\u062d!\";\n        } else {\n            freeImgUrl = \"\u0645\u0644\u0641 \u0645\u0631\u0641\u0642: \" + file.name;\n            status.style.color = \"#28a745\";\n            status.innerText = \"\u2705 \u062a\u0645 \u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u0645\u0644\u0641: \" + file.name;\n        }\n    } catch (e) {\n        freeImgUrl = \"\u0645\u0644\u0641 \u0627\u0644\u0631\u0648\u0634\u062a\u0629 (\" + file.name + \")\";\n        status.style.color = \"#28a745\";\n        status.innerText = \"\u2705 \u062a\u0645 \u0625\u0631\u0641\u0627\u0642 \u0627\u0644\u0635\u0648\u0631\u0629 \u0628\u0646\u062c\u0627\u062d!\";\n    }\n}\n\n\/\/ \u062f\u0627\u0644\u0629 \u062c\u0644\u0628 \u0627\u0644\u0645\u0648\u0642\u0639 \u062f\u0642\u064a\u0642 \u0648\u0634\u0627\u0645\u0644 \u0644\u062c\u0645\u064a\u0639 \u0627\u0644\u0645\u062a\u0635\u0641\u062d\u0627\u062a\nfunction getGPS() {\n    const status = document.getElementById('gpsStatus');\n    const inputLoc = document.getElementById('freeLocation');\n    const btn = document.getElementById('gpsBtn');\n\n    if (!navigator.geolocation) {\n        status.style.color = \"#dc3545\";\n        status.innerText = \"\u274c \u0627\u0644\u0645\u062a\u0635\u0641\u062d \u0644\u0627 \u064a\u062f\u0639\u0645 \u062a\u062d\u062f\u064a\u062f \u0627\u0644\u0645\u0648\u0642\u0639 \u062a\u0644\u0642\u0627\u0626\u064a\u0627\u064b.\";\n        return;\n    }\n\n    status.style.color = \"#0056b3\";\n    status.innerText = \"\u23f3 \u062c\u0627\u0631\u064a \u062c\u0644\u0628 \u0627\u0644\u0645\u0648\u0642\u0639 \u0628\u062f\u0642\u0629...\";\n    btn.disabled = true;\n\n    const options = {\n        enableHighAccuracy: true,\n        timeout: 10000,\n        maximumAge: 0\n    };\n\n    navigator.geolocation.getCurrentPosition(\n        (position) => {\n            const lat = position.coords.latitude;\n            const lng = position.coords.longitude;\n            inputLoc.value = `https:\/\/maps.google.com\/?q=${lat},${lng}`;\n            status.style.color = \"#28a745\";\n            status.innerText = \"\u2705 \u062a\u0645 \u062a\u062d\u062f\u064a\u062f \u0645\u0648\u0642\u0639\u0643 \u0627\u0644\u062f\u0642\u064a\u0642 \u0628\u0646\u062c\u0627\u062d!\";\n            btn.disabled = false;\n        },\n        (error) => {\n            btn.disabled = false;\n            status.style.color = \"#dc3545\";\n            switch(error.code) {\n                case error.PERMISSION_DENIED:\n                    status.innerText = \"\u274c \u062a\u0645 \u0631\u0641\u0636 \u0625\u0630\u0646 \u0627\u0644\u0648\u0635\u0648\u0644 \u0644\u0644\u0645\u0648\u0642\u0639. \u064a\u0631\u062c\u0649 \u0627\u0644\u0633\u0645\u0627\u062d \u0644\u0644\u0645\u062a\u0635\u0641\u062d \u0628\u0627\u0644\u0648\u0635\u0648\u0644 \u0644\u0644\u0645\u0648\u0642\u0639.\";\n                    break;\n                case error.POSITION_UNAVAILABLE:\n                    status.innerText = \"\u274c \u062a\u0639\u0630\u0631 \u062a\u062d\u062f\u064a\u062f \u0645\u0648\u0642\u0639 \u0627\u0644\u062c\u0647\u0627\u0632\u060c \u0623\u0639\u062f \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629.\";\n                    break;\n                case error.TIMEOUT:\n                    status.innerText = \"\u274c \u0627\u0646\u062a\u0647\u062a \u0645\u0647\u0644\u0629 \u062c\u0644\u0628 \u0627\u0644\u0645\u0648\u0642\u0639\u060c \u064a\u0631\u062c\u0649 \u0625\u0639\u0627\u062f\u0629 \u0627\u0644\u0645\u062d\u0627\u0648\u0644\u0629.\";\n                    break;\n                default:\n                    status.innerText = \"\u274c \u062d\u062f\u062b \u062e\u0637\u0623 \u0623\u062b\u0646\u0627\u0621 \u062a\u062d\u062f\u064a\u062f \u0627\u0644\u0645\u0648\u0642\u0639.\";\n                    break;\n            }\n        },\n        options\n    );\n}\n\n\/\/ \u0625\u0631\u0633\u0627\u0644 \u0627\u0644\u0637\u0644\u0628 \u0625\u0644\u0649 \u0627\u0644\u0648\u0627\u062a\u0633\u0627\u0628\nfunction submitPrescriptionToWA(e) {\n    e.preventDefault();\n\n    if (!freeImageObj) {\n        alert(\"\u064a\u0631\u062c\u0649 \u062a\u0635\u0648\u064a\u0631 \u0623\u0648 \u0625\u0631\u0641\u0627\u0642 \u0631\u0648\u0634\u062a\u0629 \u0623\u0648\u0644\u0627\u064b \u0642\u0628\u0644 \u0627\u0644\u0625\u0631\u0633\u0627\u0644!\");\n        return;\n    }\n\n    const name = document.getElementById('freeName').value;\n    const phone = document.getElementById('freePhone').value;\n    const loc = document.getElementById('freeLocation').value;\n    const notes = document.getElementById('freeNotes').value;\n\n    let msg = `\ud83d\udccb *\u0637\u0644\u0628 \u0631\u0648\u0634\u062a\u0629 \u062c\u062f\u064a\u062f*%0a%0a`;\n    msg += `\ud83d\udc64 *\u0627\u0644\u0627\u0633\u0645:* ${encodeURIComponent(name)}%0a`;\n    msg += `\ud83d\udcde *\u0627\u0644\u0647\u0627\u062a\u0641:* ${encodeURIComponent(phone)}%0a`;\n    if (loc) msg += `\ud83d\udccd *\u0627\u0644\u0645\u0648\u0642\u0639:* ${encodeURIComponent(loc)}%0a`;\n    if (notes) msg += `\ud83d\udcac *\u0645\u0644\u0627\u062d\u0638\u0627\u062a:* ${encodeURIComponent(notes)}%0a`;\n    msg += `\ud83d\uddbc\ufe0f *\u0631\u0627\u0628\u0637 \u0627\u0644\u0631\u0648\u0634\u062a\u0629:* ${encodeURIComponent(freeImgUrl)}`;\n\n    const waNumber = \"201155526333\"; \n\n    window.location.href = `https:\/\/wa.me\/${waNumber}?text=${msg}`;\n}\n<\/script>\n","protected":false},"excerpt":{"rendered":"<p>\ud83d\udc8a \u0637\u0644\u0628 \u0631\u0648\u0634\u062a\u0629 \u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a\u0629 \u0642\u0645 \u0628\u062a\u0635\u0648\u064a\u0631 \u0623\u0648 \u0631\u0641\u0639 \u0627\u0644\u0631\u0648\u0634\u062a\u0629 \u0644\u062a\u0635\u0644\u0646\u0627 \u0641\u0648\u0631\u0627\u064b \ud83d\udc64 \u0627\u0644\u0627\u0633\u0645 \u0627\u0644\u0643\u0627\u0645\u0644 * \ud83d\udcde \u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062a\u0641 \/ \u0627\u0644\u0648\u0627\u062a\u0633\u0627\u0628 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_angie_page":false,"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"_joinchat":[],"footnotes":""},"class_list":["post-12976","page","type-page","status-publish","hentry"],"_hostinger_reach_plugin_has_subscription_block":false,"_hostinger_reach_plugin_is_elementor":false,"_links":{"self":[{"href":"https:\/\/hamadapharmacy.com\/en\/wp-json\/wp\/v2\/pages\/12976","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/hamadapharmacy.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/hamadapharmacy.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/hamadapharmacy.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/hamadapharmacy.com\/en\/wp-json\/wp\/v2\/comments?post=12976"}],"version-history":[{"count":1,"href":"https:\/\/hamadapharmacy.com\/en\/wp-json\/wp\/v2\/pages\/12976\/revisions"}],"predecessor-version":[{"id":12977,"href":"https:\/\/hamadapharmacy.com\/en\/wp-json\/wp\/v2\/pages\/12976\/revisions\/12977"}],"wp:attachment":[{"href":"https:\/\/hamadapharmacy.com\/en\/wp-json\/wp\/v2\/media?parent=12976"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}