{"id":284850,"date":"2026-03-29T12:17:13","date_gmt":"2026-03-29T01:17:13","guid":{"rendered":"https:\/\/arabcollector.com\/?page_id=284850"},"modified":"2026-04-03T09:47:26","modified_gmt":"2026-04-02T22:47:26","slug":"author-dashboard","status":"publish","type":"page","link":"https:\/\/arabcollector.com\/en\/author-dashboard\/","title":{"rendered":"Author&#039;s Control Panel"},"content":{"rendered":"<div class=\"wp-block-columns is-layout-flex wp-container-core-columns-is-layout-8f761849 wp-block-columns-is-layout-flex\">\n<div class=\"wp-block-column is-layout-flow wp-block-column-is-layout-flow\">\n<style>\n    \/* Main Container: Flex for Desktop, Stack for Mobile *\/\n    .author-hub-wrapper {\n        display: flex;\n        flex-direction: row-reverse; \/* RTL: Calculator on Right, Form on Left *\/\n        gap: 25px;\n        align-items: stretch; \/* Forces both columns to try and match height *\/\n        margin-top: 20px;\n    }\n\n    .hub-column {\n        flex: 1;\n        min-width: 320px;\n        display: flex;\n        flex-direction: column;\n    }\n\n    \/* Standardizing the Form Card to match your Calculator design *\/\n    .form-card-styling {\n        background: #ffffff;\n        padding: 30px;\n        border-radius: 15px;\n        border: 2px solid #eeeeee;\n        box-shadow: 0 10px 25px rgba(0,0,0,0.1);\n        height: 100%; \/* Ensures it fills the column height *\/\n    }\n\n    \/* Responsive adjustment for Mobile *\/\n    @media (max-width: 900px) {\n        .author-hub-wrapper {\n            flex-direction: column;\n        }\n        .hub-column {\n            width: 100%;\n        }\n    }\n<\/style>\n\n<div class=\"author-hub-wrapper\" dir=\"rtl\">\n    \n    <div class=\"hub-column\">\n        <div id=\"author-calc-ar\" dir=\"rtl\" style=\"background: #ffffff; padding: 30px; border-radius: 15px; border: 2px solid #eeeeee; width: 100%; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; box-shadow: 0 10px 25px rgba(0,0,0,0.1); box-sizing: border-box;\">\n            \n            <h2 style=\"margin-top: 0; color: #2c3e50; border-bottom: 3px solid #3498db; padding-bottom: 15px; text-align: center;\">Book pricing calculator from the Arab collector<\/h2>\n            \n            <div style=\"background: #fff9db; padding: 15px; border-radius: 8px; border-right: 5px solid #f1c40f; margin-bottom: 20px; font-size: 14px; color: #856404; line-height: 1.6;\">\n                <strong>Note to the author:<\/strong> The final price is the \u201cbook display price\u201d that will be shown to the buyer in the store. Shipping and packaging costs will be automatically calculated for the customer at checkout based on the destination country.\n            <\/div>\n\n            <div style=\"margin-bottom: 20px;\">\n                <label style=\"display:block; margin-bottom: 8px; font-weight: bold; color: #34495e;\">Basic cost price per copy (USD):<\/label>\n                <input type=\"number\" id=\"usdPriceAr\" placeholder=\"For example: 30\" style=\"width: 100%; padding: 12px; border: 1px solid #bdc3c7; border-radius: 6px; font-size: 16px; box-sizing: border-box;\">\n            <\/div>\n\n            <button onclick=\"calculateArabicFees()\" style=\"width: 100%; background: #3498db; color: white; padding: 16px; border: none; border-radius: 8px; cursor: pointer; font-weight: bold; font-size: 18px; transition: background 0.3s; margin-bottom: 15px; box-shadow: 0 4px 0 #2980b9;\">Calculate the final price of the book<\/button>\n\n            <div id=\"resultsAr\" style=\"margin-top: 20px; display: none; background: #fdfdfd; padding: 25px; border-radius: 10px; border: 2px solid #ecf0f1;\">\n                \n                <h4 style=\"margin-top: 0; color: #2980b9; border-bottom: 1px solid #d1e9f9; padding-bottom: 10px;\">1. Book pricing details (for the store):<\/h4>\n                \n                <div style=\"display: flex; justify-content: space-between; margin-bottom: 10px; color: #7f8c8d; font-size: 14px;\">\n                    <span>Payment gateway fees:<\/span>\n                    <span id=\"gatewayFeeAr\">$0.00<\/span>\n                <\/div>\n                <div style=\"display: flex; justify-content: space-between; margin-bottom: 10px; color: #7f8c8d; font-size: 14px;\">\n                    <span>Fees for the Arab Collector platform:<\/span>\n                    <span id=\"platformFeeAr\">$0.00<\/span>\n                <\/div>\n                <div id=\"mgmtExpenseRow\" style=\"display: flex; justify-content: space-between; margin-bottom: 10px; color: #7f8c8d; font-size: 14px;\">\n                    <span>Administrative and coordination expenses:<\/span>\n                    <span id=\"mgmtExpenseAr\">$0.00<\/span>\n                <\/div>\n\n                <div style=\"display: flex; justify-content: space-between; font-size: 1.6em; color: #27ae60; margin: 15px 0;\">\n                    <strong>Final selling price of the book:<\/strong>\n                    <strong id=\"finalPriceAr\">$0.00<\/strong>\n                <\/div>\n\n                <button id=\"copyBtn\" onclick=\"copyToClipboard()\" style=\"width: 100%; background: #2ecc71; color: white; padding: 12px; border: none; border-radius: 8px; cursor: pointer; font-size: 15px; font-weight: bold; margin-bottom: 25px;\">Copy the final price to list it in the store.<\/button>\n\n                <div style=\"background: #f8f9fa; padding: 20px; border-radius: 8px; border: 1px solid #dee2e6;\">\n                    <h4 style=\"margin-top: 0; color: #495057; font-size: 15px;\">2. Estimated earnings including shipping (for the author):<\/h4>\n                    \n                    <div style=\"margin-bottom: 15px;\">\n                        <label style=\"display:block; margin-bottom: 5px; font-size: 13px; color: #495057;\">Enter the expected shipping and packaging costs:<\/label>\n                        <input type=\"number\" id=\"shippingCostAr\" oninput=\"updateGrandTotal()\" placeholder=\"0.00\" style=\"width: 120px; padding: 8px; border: 1px solid #ced4da; border-radius: 4px;\">\n                    <\/div>\n\n                    <div style=\"display: flex; justify-content: space-between; padding-top: 10px; border-top: 1px dashed #ced4da;\">\n                        <span style=\"font-weight: bold; color: #2c3e50;\">Total amount you will receive (cost + shipping):<\/span>\n                        <span id=\"authorGrandTotalAr\" style=\"font-weight:bold; color: #2c3e50; font-size: 1.2em;\">$0.00<\/span>\n                    <\/div>\n                <\/div>\n\n                <div style=\"margin-top: 20px; font-size: 12px; color: #95a5a6; text-align: center; line-height: 1.4;\">\n                    * Note: \u201cTotal amount you will receive\u201d is the sum of the base cost and shipping cost that you entered.\n                <\/div>\n            <\/div>\n        <\/div>\n    <\/div>\n\n    <div class=\"hub-column\">\n        <div class=\"form-card-styling\">\n            <h2 style=\"margin-top: 0; color: #2c3e50; border-bottom: 3px solid #2ecc71; padding-bottom: 15px; text-align: center;\">Send a new book to the store<\/h2>\n            <p style=\"font-size: 14px; color: #7f8c8d; text-align: center; margin-bottom: 25px; line-height: 1.5;\">\n                First, use the calculator, then copy and paste the final price into the form below to complete the insertion process.\n            <\/p>\n            \n        <\/div>\n    <\/div>\n\n<\/div>\n\n<script>\nfunction calculateArabicFees() {\n    const usdInput = document.getElementById('usdPriceAr').value;\n    const fixedMargin = 5.00; \/\/ The base platform margin\n    \n    if (usdInput && usdInput > 0) {\n        const basePrice = parseFloat(usdInput);\n        \n        \/\/ Initial subtotal including the platform margin\n        const subtotal = basePrice + fixedMargin;\n        \n        \/\/ Calculate percentages (7.5% gateway, 5% platform)\n        const gatewayFee = subtotal * 0.075;\n        const platformFee = subtotal * 0.05;\n        \n        const totalBeforeRounding = subtotal + gatewayFee + platformFee;\n\n        \/\/ Roundup to nearest 5\n        const finalRounded = Math.ceil(totalBeforeRounding \/ 5) * 5;\n        \n        \/\/ Combined Management Expense = Fixed $5 Margin + Rounding Difference\n        const roundingDiff = finalRounded - totalBeforeRounding;\n        const totalMgmtExpense = fixedMargin + roundingDiff;\n\n        document.getElementById('gatewayFeeAr').innerText = '$' + gatewayFee.toFixed(2);\n        document.getElementById('platformFeeAr').innerText = '$' + platformFee.toFixed(2);\n        document.getElementById('mgmtExpenseAr').innerText = '$' + totalMgmtExpense.toFixed(2);\n        document.getElementById('finalPriceAr').innerText = '$' + finalRounded.toFixed(2);\n        \n        document.getElementById('resultsAr').style.display = 'block';\n        \n        updateGrandTotal();\n    } else {\n        alert(\"\u064a\u0631\u062c\u0649 \u0625\u062f\u062e\u0627\u0644 \u0633\u0639\u0631 \u0627\u0644\u062a\u0643\u0644\u0641\u0629 \u0627\u0644\u0623\u0633\u0627\u0633\u064a \u0623\u0648\u0644\u0627\u064b.\");\n    }\n}\n\nfunction updateGrandTotal() {\n    const basePrice = parseFloat(document.getElementById('usdPriceAr').value) || 0;\n    const shipping = parseFloat(document.getElementById('shippingCostAr').value) || 0;\n    \n    \/\/ Exact sum calculation as requested (12 + 50 = 62)\n    const grandTotal = basePrice + shipping;\n    \n    document.getElementById('authorGrandTotalAr').innerText = '$' + grandTotal.toFixed(2);\n}\n\nfunction copyToClipboard() {\n    const finalPrice = document.getElementById('finalPriceAr').innerText.replace('$', '');\n    navigator.clipboard.writeText(finalPrice).then(() => {\n        const btn = document.getElementById('copyBtn');\n        const originalText = btn.innerText;\n        btn.innerText = \"\u062a\u0645 \u0627\u0644\u0646\u0633\u062e!\";\n        btn.style.background = \"#27ae60\";\n        setTimeout(() => {\n            btn.innerText = originalText;\n            btn.style.background = \"#2ecc71\";\n        }, 2000);\n    });\n}\n<\/script>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>Book Pricing Calculator from Arab Collector. Author&#039;s Note: The resulting final price is the &quot;Book Offer Price&quot; that will be displayed to the buyer in the store. Shipping and packaging costs will be automatically calculated for the customer at checkout based on the destination country. Base Cost Price per Copy (USD): Calculate the Final Book Price. 1. Book Pricing Details (for the Store): Payment Gateway Fee: $0.00 Platform Fee\u2026<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"wpupg_custom_link":[],"wpupg_custom_link_behaviour":[],"wpupg_custom_link_nofollow":[],"wpupg_custom_image":[],"wpupg_custom_image_id":[],"footnotes":""},"class_list":["post-284850","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/arabcollector.com\/en\/wp-json\/wp\/v2\/pages\/284850","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/arabcollector.com\/en\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/arabcollector.com\/en\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/arabcollector.com\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/arabcollector.com\/en\/wp-json\/wp\/v2\/comments?post=284850"}],"version-history":[{"count":0,"href":"https:\/\/arabcollector.com\/en\/wp-json\/wp\/v2\/pages\/284850\/revisions"}],"wp:attachment":[{"href":"https:\/\/arabcollector.com\/en\/wp-json\/wp\/v2\/media?parent=284850"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}