{"id":146,"date":"2026-01-17T11:58:47","date_gmt":"2026-01-17T11:58:47","guid":{"rendered":"https:\/\/seomenta.com\/silver\/?page_id=146"},"modified":"2026-02-02T22:08:46","modified_gmt":"2026-02-02T22:08:46","slug":"apply","status":"publish","type":"page","link":"https:\/\/silverstaregy.com\/ar\/apply\/","title":{"rendered":"Apply"},"content":{"rendered":"\n<div class=\"wp-block-jet-engine-section jet-section wp-block-jet-engine-section jet-section--layout-fullwidth\"><div class=\"jet-section__content\">\n  <style>\n    \/* RTL & Arabic Styling *\/\n    .silver-form-container-ar {\n      background: #ffffff;\n      padding: 30px;\n      border-radius: 12px;\n      box-shadow: 0 5px 20px rgba(0,0,0,0.08);\n      font-family: 'Tahoma', 'Segoe UI', sans-serif; \/* Arabic friendly fonts *\/\n      max-width: 600px;\n      margin: 0 auto;\n      border: 1px solid #f0f0f0;\n      direction: rtl; \/* RIGHT TO LEFT *\/\n      text-align: right; \/* ALIGN RIGHT *\/\n    }\n\n    .silver-msg {\n      padding: 12px; border-radius: 6px; margin-bottom: 20px;\n      text-align: center; font-weight: 600; font-size: 14px;\n    }\n    .silver-msg.success { background: #dcfce7; color: #15803d; border: 1px solid #86efac; }\n    .silver-msg.error   { background: #fee2e2; color: #b91c1c; border: 1px solid #fca5a5; }\n\n    .silver-input-group { margin-bottom: 15px; }\n    .silver-label { display: block; margin-bottom: 6px; font-weight: 700; color: #374151; font-size: 14px; }\n\n    .silver-field {\n      width: 100%;\n      padding: 10px 12px;\n      border: 1px solid #d1d5db;\n      border-radius: 6px;\n      font-size: 14px;\n      transition: 0.3s;\n      outline: none;\n      box-sizing: border-box;\n      background: #fff;\n      text-align: right; \/* Ensure input text is RTL *\/\n    }\n    .silver-field:focus { border-color: #4f46e5; box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.1); }\n\n    .silver-form-container-ar textarea.silver-field{\n      min-height:120px;\n      resize: vertical;\n      line-height: 1.6;\n    }\n\n    .silver-form-container-ar input[type=\"file\"] { display: none !important; }\n\n    .silver-file-trigger {\n      display: flex; align-items: center;\n      border: 2px dashed #cbd5e1;\n      padding: 8px; border-radius: 8px;\n      background: #f9fafb; cursor: pointer;\n      transition: 0.3s;\n      flex-direction: row-reverse; \/* Flip button and text for RTL *\/\n      justify-content: space-between;\n    }\n    .silver-file-trigger:hover { border-color: #4f46e5; background: #eff6ff; }\n\n    .trigger-btn {\n      background: #4f46e5; color: white;\n      padding: 6px 14px; border-radius: 5px;\n      font-size: 13px; font-weight: 600; \n      margin-left: 0; margin-right: 12px; \/* Swap margin for RTL *\/\n    }\n    .file-status-text { color: #6b7280; font-size: 13px; font-style: italic; text-align: right; flex-grow: 1; }\n\n    .silver-submit-btn {\n      width: 100%; padding: 14px;\n      background: #4f46e5; color: white;\n      border: none; border-radius: 8px;\n      font-size: 16px; font-weight: bold;\n      cursor: pointer; margin-top: 10px;\n      transition: 0.2s;\n    }\n    .silver-submit-btn:hover { background: #4338ca; transform: translateY(-1px); }\n\n    .preview-thumb {\n      width: 60px; height: 60px;\n      border-radius: 50%; object-fit: cover;\n      border: 2px solid #4f46e5;\n      margin-top: 8px; display: none;\n    }\n\n    .silver-muted-note{\n      color:#64748b;\n      font-size:12px;\n      margin-top:6px;\n    }\n  <\/style>\n\n  <div class=\"silver-form-container-ar\">\n    \n    <form method=\"POST\" enctype=\"multipart\/form-data\" novalidate>\n      <input type=\"hidden\" id=\"silver_nonce_ar\" name=\"silver_nonce_ar\" value=\"6295f00331\" \/><input type=\"hidden\" name=\"_wp_http_referer\" value=\"\/ar\/wp-json\/wp\/v2\/pages\/146\" \/>\n      <div class=\"silver-input-group\">\n        <label class=\"silver-label\">\u0627\u0644\u0627\u0633\u0645 \u0628\u0627\u0644\u0643\u0627\u0645\u0644<\/label>\n        <input type=\"text\" name=\"full_name\" class=\"silver-field\" placeholder=\"\u0645\u062d\u0645\u062f \u0623\u062d\u0645\u062f\" required>\n      <\/div>\n\n      <div class=\"silver-input-group\">\n        <label class=\"silver-label\">\u0627\u0644\u0628\u0631\u064a\u062f \u0627\u0644\u0625\u0644\u0643\u062a\u0631\u0648\u0646\u064a<\/label>\n        <input type=\"email\" name=\"email\" class=\"silver-field\" placeholder=\"name@example.com\" required>\n      <\/div>\n\n      <div class=\"silver-input-group\">\n        <label class=\"silver-label\">\u0631\u0642\u0645 \u0627\u0644\u0647\u0627\u062a\u0641<\/label>\n        <input type=\"tel\" name=\"phone\" class=\"silver-field\" placeholder=\"01xxxxxxxxx\" required>\n      <\/div>\n\n      <div class=\"silver-input-group\">\n        <label class=\"silver-label\">\u0627\u0644\u0645\u0633\u0645\u0649 \u0627\u0644\u0648\u0638\u064a\u0641\u064a<\/label>\n        <select name=\"cv_category\" id=\"sr_cv_category_select_ar\" class=\"silver-field\" required>\n          <option value=\"\">\u062c\u0627\u0631\u064a \u0627\u0644\u062a\u062d\u0645\u064a\u0644...<\/option>\n        <\/select>\n        <div class=\"silver-muted-note\">\u064a\u0631\u062c\u0649 \u0627\u062e\u062a\u064a\u0627\u0631 \u0627\u0644\u062a\u062e\u0635\u0635 \u0627\u0644\u0648\u0638\u064a\u0641\u064a.<\/div>\n      <\/div>\n\n      <div class=\"silver-input-group\">\n        <label class=\"silver-label\">\u0646\u0628\u0630\u0629 \u0639\u0646\u064a<\/label>\n        <textarea name=\"about_me\" class=\"silver-field\" rows=\"5\" placeholder=\"\u0627\u0643\u062a\u0628 \u0646\u0628\u0630\u0629 \u0645\u062e\u062a\u0635\u0631\u0629 \u0639\u0646 \u062e\u0628\u0631\u0627\u062a\u0643 \u0648\u0645\u0647\u0627\u0631\u0627\u062a\u0643...\" required><\/textarea>\n      <\/div>\n\n      <hr style=\"border:0; border-top:1px solid #eee; margin: 20px 0;\">\n\n      <div class=\"silver-input-group\">\n        <label class=\"silver-label\">\u0627\u0644\u0633\u064a\u0631\u0629 \u0627\u0644\u0630\u0627\u062a\u064a\u0629 (PDF \/ DOC)<\/label>\n        <input type=\"file\" name=\"resume\" id=\"cv_upload_ar\" accept=\".pdf,.doc,.docx\" required>\n        <label for=\"cv_upload_ar\" class=\"silver-file-trigger\">\n          <span class=\"file-status-text\" id=\"text_cv_ar\">\u0644\u0645 \u064a\u062a\u0645 \u0627\u062e\u062a\u064a\u0627\u0631 \u0645\u0644\u0641<\/span>\n          <span class=\"trigger-btn\">\u0627\u062e\u062a\u0631 \u0645\u0644\u0641<\/span>\n        <\/label>\n      <\/div>\n\n      <div class=\"silver-input-group\">\n        <label class=\"silver-label\">\u0635\u0648\u0631\u0629 \u0634\u062e\u0635\u064a\u0629 (\u0627\u062e\u062a\u064a\u0627\u0631\u064a)<\/label>\n        <input type=\"file\" name=\"photo\" id=\"pic_upload_ar\" accept=\"image\/*\" required>\n        <label for=\"pic_upload_ar\" class=\"silver-file-trigger\">\n          <span class=\"file-status-text\" id=\"text_pic_ar\">\u0644\u0645 \u064a\u062a\u0645 \u0627\u062e\u062a\u064a\u0627\u0631 \u0645\u0644\u0641<\/span>\n          <span class=\"trigger-btn\">\u0627\u062e\u062a\u0631 \u0635\u0648\u0631\u0629<\/span>\n        <\/label>\n        <img id=\"img_preview_ar\" class=\"preview-thumb\" alt=\"\">\n      <\/div>\n\n      <button type=\"submit\" name=\"silver_submit_ar\" class=\"silver-submit-btn\">\u0625\u0631\u0633\u0627\u0644 \u0637\u0644\u0628 \u0627\u0644\u062a\u0648\u0638\u064a\u0641<\/button>\n    <\/form>\n  <\/div>\n\n  <script>\n  document.addEventListener(\"DOMContentLoaded\", function(){\n\n    \/\/ =========================\n    \/\/ 1) Load CV CATEGORY terms into select\n    \/\/ =========================\n    (async function(){\n      const sel = document.getElementById(\"sr_cv_category_select_ar\");\n      if(!sel) return;\n\n      const endpoint = \"https:\/\/silverstaregy.com\/ar\/wp-json\/wp\/v2\/cv-category?per_page=100&#038;hide_empty=0&#038;_fields=id,name\";\n\n      try{\n        const res = await fetch(endpoint, { headers: { \"Accept\":\"application\/json\" } });\n        if(!res.ok) throw new Error(\"HTTP \" + res.status);\n        const data = await res.json();\n\n        sel.innerHTML = '<option value=\"\">\u0627\u062e\u062a\u0631 \u0627\u0644\u0648\u0638\u064a\u0641\u0629<\/option>';\n\n        if(Array.isArray(data) && data.length){\n          data.forEach(t => {\n            if(!t || !t.id || !t.name) return;\n            const opt = document.createElement(\"option\");\n            opt.value = String(t.id);\n            opt.textContent = t.name;\n            sel.appendChild(opt);\n          });\n        } else {\n          sel.innerHTML = '<option value=\"\">\u0644\u0627 \u062a\u0648\u062c\u062f \u0648\u0638\u0627\u0626\u0641 \u0645\u062a\u0627\u062d\u0629 \u062d\u0627\u0644\u064a\u0627\u064b<\/option>';\n        }\n      } catch(e){\n        sel.innerHTML = '<option value=\"\">\u0641\u0634\u0644 \u062a\u062d\u0645\u064a\u0644 \u0627\u0644\u0642\u0627\u0626\u0645\u0629<\/option>';\n      }\n    })();\n\n    \/\/ =========================\n    \/\/ 2) File upload UI + preview\n    \/\/ =========================\n    function setupUpload(inputId, textId, isImg) {\n      const inp = document.getElementById(inputId);\n      const txt = document.getElementById(textId);\n      if(!inp || !txt) return;\n\n      inp.addEventListener(\"change\", function(){\n        if(this.files && this.files[0]) {\n          const f = this.files[0];\n          if(f.size > 5242880) {\n            alert(\"\u062d\u062c\u0645 \u0627\u0644\u0645\u0644\u0641 \u0643\u0628\u064a\u0631 \u062c\u062f\u0627\u064b! \u0627\u0644\u062d\u062f \u0627\u0644\u0623\u0642\u0635\u0649 5 \u0645\u064a\u062c\u0627\u0628\u0627\u064a\u062a.\");\n            this.value = \"\";\n            txt.textContent = \"\u0644\u0645 \u064a\u062a\u0645 \u0627\u062e\u062a\u064a\u0627\u0631 \u0645\u0644\u0641\";\n            if(isImg) {\n              const img = document.getElementById(\"img_preview_ar\");\n              if(img){\n                img.style.display = \"none\";\n                img.removeAttribute(\"src\");\n              }\n            }\n            return;\n          }\n          txt.textContent = f.name;\n\n          if(isImg) {\n            const img = document.getElementById(\"img_preview_ar\");\n            if(img){\n              img.src = URL.createObjectURL(f);\n              img.style.display = \"block\";\n            }\n          }\n        }\n      });\n    }\n\n    setupUpload(\"cv_upload_ar\", \"text_cv_ar\", false);\n    setupUpload(\"pic_upload_ar\", \"text_pic_ar\", true);\n  });\n  <\/script>\n\n  \n<\/div><\/div>\n\n\n\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"elementor_header_footer","meta":{"footnotes":""},"class_list":["post-146","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/silverstaregy.com\/ar\/wp-json\/wp\/v2\/pages\/146","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/silverstaregy.com\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/silverstaregy.com\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/silverstaregy.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/silverstaregy.com\/ar\/wp-json\/wp\/v2\/comments?post=146"}],"version-history":[{"count":29,"href":"https:\/\/silverstaregy.com\/ar\/wp-json\/wp\/v2\/pages\/146\/revisions"}],"predecessor-version":[{"id":358,"href":"https:\/\/silverstaregy.com\/ar\/wp-json\/wp\/v2\/pages\/146\/revisions\/358"}],"wp:attachment":[{"href":"https:\/\/silverstaregy.com\/ar\/wp-json\/wp\/v2\/media?parent=146"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}