{"id":6699,"date":"2026-03-20T22:08:36","date_gmt":"2026-03-20T22:08:36","guid":{"rendered":"https:\/\/prestigebusinessnetwork.com\/?page_id=6699"},"modified":"2026-03-30T20:21:13","modified_gmt":"2026-03-30T20:21:13","slug":"quotation","status":"publish","type":"page","link":"https:\/\/prestigebusinessnetwork.com\/index.php\/quotation\/","title":{"rendered":"Quotation"},"content":{"rendered":"\t\t<div data-elementor-type=\"wp-page\" data-elementor-id=\"6699\" class=\"elementor elementor-6699\">\n\t\t\t\t<div class=\"elementor-element elementor-element-322fa0e e-con-full e-flex e-con e-parent\" data-id=\"322fa0e\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-973c968 e-con-full e-flex e-con e-child\" data-id=\"973c968\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-8fe064c e-con-full e-flex e-con e-child\" data-id=\"8fe064c\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-2f1043d elementor-widget__width-inherit elementor-widget elementor-widget-html\" data-id=\"2f1043d\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div id=\"custom-time-date-widget\" style=\"text-align:center; color:#fff; padding:5px; font-family:Arial, sans-serif;\">\r\n    <div id=\"current-date\" style=\"font-size:0.4em; margin-bottom:3px; color:#ffcc00\"><\/div>\r\n    <div id=\"current-time\" style=\"font-size:0.4em;\"><\/div>\r\n<\/div>\r\n\r\n<script>\r\nfunction updateTimeDate() {\r\n    var now = new Date();\r\n\r\n    \/\/ Date: Weekday, Month Day, Year\r\n    var options = { weekday: 'long', year: 'numeric', month: 'long', day: 'numeric' };\r\n    document.getElementById('current-date').innerText = now.toLocaleDateString(undefined, options);\r\n\r\n    \/\/ Time: HH:MM:SS AM\/PM\r\n    var timeOptions = { hour: 'numeric', minute: 'numeric', second: 'numeric', hour12: true };\r\n    document.getElementById('current-time').innerText = now.toLocaleTimeString(undefined, timeOptions);\r\n}\r\n\r\n\/\/ Update every second\r\nupdateTimeDate();\r\nsetInterval(updateTimeDate, 1000);\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-d75b7f4 e-con-full e-flex e-con e-child\" data-id=\"d75b7f4\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3577c11 elementor-widget elementor-widget-heading\" data-id=\"3577c11\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Dashboard<\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-7442982 e-con-full e-flex e-con e-child\" data-id=\"7442982\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b7e470f elementor-widget__width-inherit elementor-widget elementor-widget-html\" data-id=\"b7e470f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div id=\"weather-widget\" style=\"background:#;color:#fff;padding:15px;border-radius:8px;font-family:Arial,sans-serif;\">\r\n    <div style=\"font-size:0.3em; font-weight:bold;margin-bottom:8px; color:#ffcc00;\">\ud83c\udf24 Local Weather<\/div>\r\n    <div id=\"weather-location\" style=\"font-size:0.3em;\">Detecting location...<\/div>\r\n    <div id=\"weather-temp\" style=\"font-size:0.3em;margin-top:4px;\"><\/div>\r\n    <div id=\"weather-desc\" style=\"font-size:0.3em;color:#ccc;\"><\/div>\r\n<\/div>\r\n\r\n<script>\r\nfunction getWeather(lat, lon, city) {\r\n    fetch(`https:\/\/api.open-meteo.com\/v1\/forecast?latitude=${lat}&longitude=${lon}&current_weather=true`)\r\n        .then(res => res.json())\r\n        .then(data => {\r\n            const temp = data.current_weather.temperature;\r\n            const wind = data.current_weather.windspeed;\r\n            document.getElementById(\"weather-location\").innerText = city;\r\n            document.getElementById(\"weather-temp\").innerText = `${temp}\u00b0C`;\r\n            document.getElementById(\"weather-desc\").innerText = `Wind: ${wind} km\/h`;\r\n        });\r\n}\r\n\r\nif (navigator.geolocation) {\r\n    navigator.geolocation.getCurrentPosition(pos => {\r\n        const lat = pos.coords.latitude;\r\n        const lon = pos.coords.longitude;\r\n\r\n        fetch(`https:\/\/nominatim.openstreetmap.org\/reverse?lat=${lat}&lon=${lon}&format=json`)\r\n            .then(res => res.json())\r\n            .then(loc => {\r\n                const city = loc.address.city || loc.address.town || loc.address.state;\r\n                getWeather(lat, lon, city);\r\n            });\r\n    }, () => {\r\n        document.getElementById(\"weather-location\").innerText = \"Location unavailable\";\r\n    });\r\n}\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-61f1a68 elementor-hidden-desktop elementor-hidden-laptop e-flex e-con-boxed e-con e-child\" data-id=\"61f1a68\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-57a6bad e-con-full e-flex e-con e-child\" data-id=\"57a6bad\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-3ca3a5f e-con-full e-flex e-con e-child\" data-id=\"3ca3a5f\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-502f62f elementor-widget__width-initial elementor-widget-mobile__width-initial elementor-widget elementor-widget-heading\" data-id=\"502f62f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/prestigebusinessnetwork.com\/index.php\/quotation\/\">Quotation &amp; Convert to Invoice<\/a><\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-61aa8be e-con-full e-flex e-con e-child\" data-id=\"61aa8be\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-ba5d5c7 elementor-widget__width-initial elementor-widget-mobile__width-initial elementor-widget elementor-widget-heading\" data-id=\"ba5d5c7\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/prestigebusinessnetwork.com\/index.php\/newfeature\/\">Request Feature<\/a><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-fff9155 e-con-full e-flex e-con e-child\" data-id=\"fff9155\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-49caf9f elementor-widget__width-initial elementor-widget-mobile__width-initial elementor-widget elementor-widget-heading\" data-id=\"49caf9f\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/prestigebusinessnetwork.com\/index.php\/my-office\/\">Main Dash<\/a><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-f8053e7 elementor-hidden-tablet elementor-hidden-mobile e-flex e-con-boxed e-con e-child\" data-id=\"f8053e7\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-ed72b93 e-con-full e-flex e-con e-child\" data-id=\"ed72b93\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-7864630 elementor-widget__width-initial elementor-widget-mobile__width-initial elementor-widget elementor-widget-heading\" data-id=\"7864630\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/prestigebusinessnetwork.com\/index.php\/quotation\/\">Quotation &amp; Convert to Invoice<\/a><\/h4>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-3633c7f e-con-full e-flex e-con e-child\" data-id=\"3633c7f\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-72ee498 elementor-widget__width-initial elementor-widget-mobile__width-initial elementor-widget elementor-widget-heading\" data-id=\"72ee498\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/prestigebusinessnetwork.com\/index.php\/newfeature\/\">Request Feature<\/a><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-bde8d90 e-con-full e-flex e-con e-child\" data-id=\"bde8d90\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-93d9d86 elementor-widget__width-initial elementor-widget-mobile__width-initial elementor-widget elementor-widget-heading\" data-id=\"93d9d86\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\"><a href=\"https:\/\/prestigebusinessnetwork.com\/index.php\/my-office\/\">Main Dash<\/a><\/h2>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-e3f66f9 e-con-full e-flex e-con e-parent\" data-id=\"e3f66f9\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t<div class=\"elementor-element elementor-element-0bcabae e-con-full e-flex e-con e-child\" data-id=\"0bcabae\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-35ac7ce elementor-widget elementor-widget-heading\" data-id=\"35ac7ce\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Business Calculators <\/h2>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-4d6413a elementor-widget elementor-widget-html\" data-id=\"4d6413a\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div id=\"business-calculators-widget\" style=\"font-size:0.29em; background-color:#121212; color:#bdf; padding:10px; border-radius:3px; font-family:Arial,sans-serif; max-width:450px;\">\r\n\r\n<div style=\"font-weight:bold; margin-bottom:10px;\"><strong>Business Calculators<\/strong><\/div>\r\n\r\n<!-- Profit -->\r\n<div class=\"calc-block\">\r\n<div style=\"font-weight:bold;\">Profit Margin<\/div>\r\n<input type=\"number\" id=\"profit-revenue\" placeholder=\"Revenue\">\r\n<input type=\"number\" id=\"profit-cost\" placeholder=\"Cost\">\r\n<button id=\"profit-calc-btn\">Calculate<\/button>\r\n<button id=\"profit-clear-btn\">Clear<\/button>\r\n<div id=\"profit-result\"><\/div>\r\n<\/div>\r\n\r\n<!-- Loan -->\r\n<div class=\"calc-block\">\r\n<div style=\"font-weight:bold;\">Loan<\/div>\r\n<input type=\"number\" id=\"loan-amount\" placeholder=\"Amount\">\r\n<input type=\"number\" id=\"loan-rate\" placeholder=\"Rate %\">\r\n<input type=\"number\" id=\"loan-years\" placeholder=\"Years\">\r\n<button id=\"loan-calc-btn\">Calculate<\/button>\r\n<button id=\"loan-clear-btn\">Clear<\/button>\r\n<div id=\"loan-result\"><\/div>\r\n<\/div>\r\n\r\n<!-- Invoice -->\r\n<div class=\"calc-block\">\r\n<div style=\"font-weight:bold;\">Invoice<\/div>\r\n<input type=\"number\" id=\"invoice-subtotal\" placeholder=\"Subtotal\">\r\n<input type=\"number\" id=\"invoice-tax\" placeholder=\"Tax %\">\r\n<button id=\"invoice-calc-btn\">Calculate<\/button>\r\n<button id=\"invoice-clear-btn\">Clear<\/button>\r\n<div id=\"invoice-result\"><\/div>\r\n<\/div>\r\n\r\n<\/div>\r\n\r\n<style>\r\n.calc-block { margin-bottom:15px; }\r\n\r\n.calc-block input {\r\nwidth:100%;\r\npadding:8px;\r\nmargin-bottom:10px;\r\nborder-radius:3px;\r\nborder:none;\r\nbackground:#333;\r\ncolor:#fff;\r\n}\r\n\r\n.calc-block button {\r\nwidth:48%;\r\npadding:8px;\r\nmargin-bottom:8px;\r\nborder:none;\r\nborder-radius:3px;\r\ncolor:#fff;\r\ncursor:pointer;\r\n}\r\n\r\n.calc-block button:first-of-type { background:#1e73be; }\r\n.calc-block button:last-of-type { background:#555; }\r\n.calc-block button:hover { opacity:0.9; }\r\n<\/style>\r\n\r\n<script>\r\n(function initCalculators() {\r\n\r\n  \/\/ Wait until elements exist (Atomic Elements fix)\r\n  if (!document.getElementById(\"profit-calc-btn\")) {\r\n    return setTimeout(initCalculators, 300);\r\n  }\r\n\r\n  \/\/ PROFIT\r\n  document.getElementById(\"profit-calc-btn\").onclick = function () {\r\n    let revenue = parseFloat(document.getElementById('profit-revenue').value);\r\n    let cost = parseFloat(document.getElementById('profit-cost').value);\r\n    let result = document.getElementById('profit-result');\r\n\r\n    if (isNaN(revenue) || isNaN(cost) || revenue === 0) {\r\n      result.innerText = \"Invalid input\";\r\n    } else {\r\n      let profit = revenue - cost;\r\n      let margin = ((profit \/ revenue) * 100).toFixed(2);\r\n      result.innerText = `Profit: ${profit.toFixed(2)} | Margin: ${margin}%`;\r\n    }\r\n  };\r\n\r\n  document.getElementById(\"profit-clear-btn\").onclick = function () {\r\n    document.getElementById('profit-revenue').value = \"\";\r\n    document.getElementById('profit-cost').value = \"\";\r\n    document.getElementById('profit-result').innerText = \"\";\r\n  };\r\n\r\n  \/\/ LOAN\r\n  document.getElementById(\"loan-calc-btn\").onclick = function () {\r\n    let amount = parseFloat(document.getElementById('loan-amount').value);\r\n    let rate = parseFloat(document.getElementById('loan-rate').value);\r\n    let years = parseFloat(document.getElementById('loan-years').value);\r\n    let result = document.getElementById('loan-result');\r\n\r\n    if (isNaN(amount) || isNaN(rate) || isNaN(years)) {\r\n      result.innerText = \"Invalid input\";\r\n    } else {\r\n      let total = amount * Math.pow(1 + rate \/ 100, years);\r\n      result.innerText = `Total: ${total.toFixed(2)}`;\r\n    }\r\n  };\r\n\r\n  document.getElementById(\"loan-clear-btn\").onclick = function () {\r\n    document.getElementById('loan-amount').value = \"\";\r\n    document.getElementById('loan-rate').value = \"\";\r\n    document.getElementById('loan-years').value = \"\";\r\n    document.getElementById('loan-result').innerText = \"\";\r\n  };\r\n\r\n  \/\/ INVOICE\r\n  document.getElementById(\"invoice-calc-btn\").onclick = function () {\r\n    let subtotal = parseFloat(document.getElementById('invoice-subtotal').value);\r\n    let tax = parseFloat(document.getElementById('invoice-tax').value);\r\n    let result = document.getElementById('invoice-result');\r\n\r\n    if (isNaN(subtotal) || isNaN(tax)) {\r\n      result.innerText = \"Invalid input\";\r\n    } else {\r\n      let total = subtotal + (subtotal * tax \/ 100);\r\n      result.innerText = `Total: ${total.toFixed(2)}`;\r\n    }\r\n  };\r\n\r\n  document.getElementById(\"invoice-clear-btn\").onclick = function () {\r\n    document.getElementById('invoice-subtotal').value = \"\";\r\n    document.getElementById('invoice-tax').value = \"\";\r\n    document.getElementById('invoice-result').innerText = \"\";\r\n  };\r\n\r\n})();\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-54427ab e-con-full e-flex e-con e-child\" data-id=\"54427ab\" data-element_type=\"container\" data-e-type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-1cda316 elementor-widget elementor-widget-heading\" data-id=\"1cda316\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h2 class=\"elementor-heading-title elementor-size-default\">Create Quotation &amp; Convert to Invoice <\/h2>\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-41d7b26 e-con-full e-flex e-con e-child\" data-id=\"41d7b26\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-6bc9f0c elementor-widget elementor-widget-heading\" data-id=\"6bc9f0c\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h4 class=\"elementor-heading-title elementor-size-default\">Choose Logo or Image Below<\/h4>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-aa96666 elementor-widget__width-inherit elementor-widget elementor-widget-shortcode\" data-id=\"aa96666\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">    <div id=\"pbn-invoice-app\">\n\n        <div class=\"top-bar\">\n            <input type=\"file\" id=\"logoInput\" accept=\"image\/*\">\n            <img id=\"logoPreview\" \/>\n\n            <div class=\"doc-info\" font color=\"#fff\">\n                <h5 id=\"docTitle\" font color=\"#fff\">Quote<\/h5>\n                <h4><p id=\"invoiceNumber\" style=\"display:none;\"><\/p><\/h4>\n                <h4><p id=\"docDate\" font color=\"#fff\" font size=\"14px\"><\/p><\/h4>\n\t\t\t\t<label font color=\"#fff\"><h5>Due Date: <\/h5><input type=\"date\" id=\"dueDate\"><\/label>\n            <\/div>\n        <\/div>\n\n        <label font color=\"#fff\"><h5>Client Name <\/h5><\/label>\n        <input type=\"text\" id=\"clientName\">\n\n        <table id=\"items\">\n            <tr>\n                <th><h5 font color=\"#fff\">Item <\/h5><\/th>\n                <th><h5 font color=\"#fff\">Qty <\/h5><\/th>\n                <th><h5 font color=\"#fff\">Price <\/h5><\/th>\n                <th><h5 font color=\"#fff\">Total <\/h5><\/th>\n            <\/tr>\n            <tr>\n                <td><input type=\"text\" class=\"item\"><\/td>\n                <td><input type=\"number\" class=\"qty\"><\/td>\n                <td><input type=\"number\" class=\"price\"><\/td>\n                <td><input type=\"text\" class=\"total\" readonly><\/td>\n            <\/tr>\n        <\/table>\n\n        <button font color=\"#fff\" onclick=\"addRow()\">+ Add Item<\/button>\n\n        <h4 font color=\"#fff\">Total: <span id=\"grandTotal\">0<\/span><\/h4>\n\n   <div class=\"buttons\">\n    <button onclick=\"convertToInvoice()\">Convert to Invoice<\/button>\n    <button onclick=\"printInvoice()\">Print<\/button>\n    <button onclick=\"clearInvoice()\">Clear All<\/button> \n   <\/div>\n\n    <\/div>\n    <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-bf198a3 e-con-full e-flex e-con e-child\" data-id=\"bf198a3\" data-element_type=\"container\" data-e-type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;}\">\n\t\t\t\t<div class=\"elementor-element elementor-element-417ffdd elementor-widget__width-inherit elementor-widget elementor-widget-html\" data-id=\"417ffdd\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<div id=\"business-news-widget\" style=\"background-color:#121212; color:#fFF; padding:15px; border-radius:3px; font-family:Arial,sans-serif; max-width:850px; overflow:hidden;\">\r\n    <div style=\"font-size:0.4em; font-weight:light; margin-bottom:5px;\">\ud83d\udcf0 Latest Business News<\/div>\r\n    <ul id=\"news-list\" style=\"list-style:none; padding:0; margin:0; line-height:1.2; min-height:10px; font-size:0.4em;\"><\/ul>\r\n<\/div>\r\n\r\n<script>\r\n\/\/ === RSS Feeds ===\r\nconst feeds = [\r\n    { url:'https:\/\/www.forbes.com\/business\/feed\/', source:'Forbes News' },\r\n    { url:'https:\/\/www.forbes.com\/entrepreneurs\/feed\/', source:'Forbes News' },\r\n    { url:'https:\/\/www.bloomberg.com\/markets\/rss', source:'Bloomberg News' }\r\n];\r\n\r\n\/\/ Number of items to show in rotation\r\nconst itemsToShow = 5;\r\n\r\n\/\/ Fetch and parse RSS feeds via rss2json\r\nasync function fetchRSS(url) {\r\n    try {\r\n        const response = await fetch('https:\/\/api.rss2json.com\/v1\/api.json?rss_url=' + encodeURIComponent(url));\r\n        const data = await response.json();\r\n        return data.items || [];\r\n    } catch(e) {\r\n        console.error('RSS fetch error:', e);\r\n        return [];\r\n    }\r\n}\r\n\r\nasync function loadNews() {\r\n    let allItems = [];\r\n    for (let feed of feeds) {\r\n        const items = await fetchRSS(feed.url);\r\n        \/\/ add source to each item\r\n        items.forEach(i => i.source = feed.source);\r\n        allItems = allItems.concat(items);\r\n    }\r\n\r\n    \/\/ Sort by date newest first\r\n    allItems.sort((a,b) => new Date(b.pubDate) - new Date(a.pubDate));\r\n    allItems = allItems.slice(0, itemsToShow);\r\n\r\n    const list = document.getElementById('news-list');\r\n    let index = 0;\r\n\r\n    function showNextItem() {\r\n        list.innerHTML = '';\r\n\r\n        const li = document.createElement('li');\r\n        li.style.opacity = 0;\r\n        li.style.transition = \"opacity 0.5s ease\";\r\n\r\n        li.innerHTML = `<a href=\"${allItems[index].link}\" target=\"_blank\" style=\"color:#fff; text-decoration:none; font-weight:400;\">${allItems[index].title}<\/a>\r\n                        <div style=\"color:#ffcc00;\">${allItems[index].source}<\/div>`;\r\n        list.appendChild(li);\r\n\r\n        \/\/ fade in\r\n        setTimeout(() => { li.style.opacity = 1; }, 50);\r\n\r\n        index = (index + 1) % allItems.length;\r\n    }\r\n\r\n    \/\/ Initial display\r\n    showNextItem();\r\n    \/\/ Rotate every 8 seconds\r\n    setInterval(showNextItem, 8000);\r\n}\r\n\r\n\/\/ Load news on DOM ready\r\ndocument.addEventListener('DOMContentLoaded', loadNews);\r\n<\/script>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-7ec7261 elementor-widget elementor-widget-html\" data-id=\"7ec7261\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<!-- TradingView Market Overview Widget -->\r\n<div class=\"tradingview-widget-container\" style=\"background:#121212; border-radius:8px;\">\r\n  <div class=\"tradingview-widget-container__widget\"><\/div>\r\n\r\n  <script type=\"text\/javascript\" src=\"https:\/\/s3.tradingview.com\/external-embedding\/embed-widget-market-overview.js\" async>\r\n  {\r\n    \"colorTheme\": \"dark\",\r\n    \"dateRange\": \"12M\",\r\n    \"showChart\": true,\r\n    \"locale\": \"en\",\r\n    \"isTransparent\": true,\r\n    \"width\": \"100%\",\r\n    \"height\": \"500\",\r\n    \"tabs\": [\r\n      {\r\n        \"title\": \"US Crude\",\r\n        \"symbols\": [\r\n          {\"s\":\"TVC:USOIL\",\"d\":\"US Crude Oil\"}\r\n        ]\r\n      },\r\n      {\r\n        \"title\": \"Indices\",\r\n        \"symbols\": [\r\n          {\"s\":\"FOREXCOM:SPXUSD\",\"d\":\"S&P 500\"},\r\n          {\"s\":\"FOREXCOM:NSXUSD\",\"d\":\"NASDAQ\"}\r\n        ]\r\n      }\r\n    ]\r\n  }\r\n  <\/script>\r\n<\/div>\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-de53b55 elementor-widget elementor-widget-html\" data-id=\"de53b55\" data-element_type=\"widget\" data-e-type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<!-- TradingView Market Overview Widget -->\r\n<div class=\"tradingview-widget-container\" style=\"background:#121212; border-radius:8px;\">\r\n  <div class=\"tradingview-widget-container__widget\"><\/div>\r\n\r\n  <script type=\"text\/javascript\" src=\"https:\/\/s3.tradingview.com\/external-embedding\/embed-widget-market-overview.js\" async>\r\n  {\r\n    \"colorTheme\": \"dark\",\r\n    \"dateRange\": \"12M\",\r\n    \"showChart\": true,\r\n    \"locale\": \"en\",\r\n    \"isTransparent\": true,\r\n    \"width\": \"100%\",\r\n    \"height\": \"500\",\r\n    \"tabs\": [\r\n      {\r\n        \"title\": \"Forex\",\r\n        \"symbols\": [\r\n          {\"s\":\"FX:EURUSD\",\"d\":\"EUR\/USD\"},\r\n          {\"s\":\"FX:GBPUSD\",\"d\":\"GBP\/USD\"}\r\n        ]\r\n      },\r\n      {\r\n        \"title\": \"Crypto\",\r\n        \"symbols\": [\r\n          {\"s\":\"BINANCE:BTCUSDT\",\"d\":\"Bitcoin\"},\r\n          {\"s\":\"BINANCE:ETHUSDT\",\"d\":\"Ethereum\"}\r\n        ]\r\n      },\r\n      {\r\n        \"title\": \"Metals\",\r\n        \"symbols\": [\r\n          {\"s\":\"TVC:GOLD\",\"d\":\"Gold\"},\r\n          {\"s\":\"TVC:SILVER\",\"d\":\"Silver\"}\r\n        ]\r\n      }\r\n    ]\r\n  }\r\n  <\/script>\r\n<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t","protected":false},"excerpt":{"rendered":"<p>Dashboard \ud83c\udf24 Local Weather Detecting location&#8230; Quotation &amp; Convert to Invoice Request Feature Main Dash Quotation &amp; Convert to Invoice Request Feature Main Dash Business Calculators Business Calculators Profit Margin Calculate Clear Loan Calculate Clear Invoice Calculate Clear Create Quotation &amp; Convert to Invoice Choose Logo or Image Below \ud83d\udcf0 Latest Business News<\/p>\n","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-6699","page","type-page","status-publish","hentry"],"_links":{"self":[{"href":"https:\/\/prestigebusinessnetwork.com\/index.php\/wp-json\/wp\/v2\/pages\/6699","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/prestigebusinessnetwork.com\/index.php\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/prestigebusinessnetwork.com\/index.php\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/prestigebusinessnetwork.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/prestigebusinessnetwork.com\/index.php\/wp-json\/wp\/v2\/comments?post=6699"}],"version-history":[{"count":0,"href":"https:\/\/prestigebusinessnetwork.com\/index.php\/wp-json\/wp\/v2\/pages\/6699\/revisions"}],"wp:attachment":[{"href":"https:\/\/prestigebusinessnetwork.com\/index.php\/wp-json\/wp\/v2\/media?parent=6699"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}