<?php
/*
 * @ https://EasyToYou.eu - IonCube v11 Decoder Online
 * @ PHP 7.4
 * @ Decoder version: 1.0.2
 * @ Release: 10/08/2022
 */

// Decoded file for php version 74.
if(!defined("IN_SITE")) {
    exit("The Request Not Found");
}
$body = ["title" => __("List of currency"), "desc" => "CMSNT Panel", "keyword" => "cmsnt, CMSNT, cmsnt.co,"];
$body["header"] = "\n<link rel=\"stylesheet\" href=\"https://cdn.datatables.net/1.12.1/css/dataTables.bootstrap5.min.css\">\n<link rel=\"stylesheet\" href=\"https://cdn.datatables.net/responsive/2.3.0/css/responsive.bootstrap.min.css\">\n<link rel=\"stylesheet\" href=\"https://cdn.datatables.net/buttons/2.2.3/css/buttons.bootstrap5.min.css\">\n\n";
$body["footer"] = "\n<script src=\"https://cdn.datatables.net/1.12.1/js/jquery.dataTables.min.js\"></script>\n<script src=\"https://cdn.datatables.net/1.12.1/js/dataTables.bootstrap5.min.js\"></script>\n<script src=\"https://cdn.datatables.net/responsive/2.3.0/js/dataTables.responsive.min.js\"></script>\n<script src=\"https://cdn.datatables.net/buttons/2.2.3/js/dataTables.buttons.min.js\"></script>\n<script src=\"https://cdn.datatables.net/buttons/2.2.3/js/buttons.print.min.js\"></script>\n";
require_once __DIR__ . "/../../models/is_admin.php";
require_once __DIR__ . "/header.php";
require_once __DIR__ . "/sidebar.php";
require_once __DIR__ . "/nav.php";
if(!checkPermission($getUser["admin"], "view_currency")) {
    exit("<script type=\"text/javascript\">if(!alert(\"Bạn không có quyền sử dụng tính năng này\")){window.history.back();}</script>");
}
if(isset($_POST["AddCurrency"])) {
    if($CMSNT->site("status_demo") != 0) {
        exit("<script type=\"text/javascript\">if(!alert(\"" . __("This function cannot be used because this is a demo site") . "\")){window.history.back().location.reload();}</script>");
    }
    if(!checkPermission($getUser["admin"], "edit_currency")) {
        exit("<script type=\"text/javascript\">if(!alert(\"Bạn không có quyền sử dụng tính năng này\")){window.history.back();}</script>");
    }
    $isInsert = $CMSNT->insert("currencies", ["name" => check_string($_POST["name"]), "code" => check_string($_POST["code"]), "symbol_left" => !empty($_POST["symbol_left"]) ? check_string($_POST["symbol_left"]) : NULL, "symbol_right" => !empty($_POST["symbol_right"]) ? check_string($_POST["symbol_right"]) : NULL, "rate" => !empty($_POST["rate"]) ? check_string($_POST["rate"]) : 0, "decimal_currency" => !empty($_POST["decimal_currency"]) ? check_string($_POST["decimal_currency"]) : 0, "seperator" => !empty($_POST["seperator"]) ? check_string($_POST["seperator"]) : "dot", "display" => check_string($_POST["display"])]);
    if($isInsert) {
        $Mobile_Detect = new Mobile_Detect();
        $CMSNT->insert("logs", ["user_id" => $getUser["id"], "ip" => myip(), "device" => $Mobile_Detect->getUserAgent(), "createdate" => gettime(), "action" => __("Thêm tiền tệ") . " (" . $_POST["name"] . ")."]);
        $my_text = $CMSNT->site("noti_action");
        $my_text = str_replace("{domain}", $_SERVER["SERVER_NAME"], $my_text);
        $my_text = str_replace("{username}", $getUser["username"], $my_text);
        $my_text = str_replace("{action}", __("Thêm tiền tệ") . " (" . $_POST["name"] . ").", $my_text);
        $my_text = str_replace("{ip}", myip(), $my_text);
        $my_text = str_replace("{time}", gettime(), $my_text);
        sendMessAdmin($my_text);
        exit("<script type=\"text/javascript\">if(!alert(\"Thêm thành công !\")){location.href = \"" . BASE_URL("admin/currency-list") . "\";}</script>");
    }
    exit("<script type=\"text/javascript\">if(!alert(\"Thêm thất bại !\")){window.history.back().location.reload();}</script>");
}
echo "\n\n<div class=\"main-content app-content\">\n    <div class=\"container-fluid\">\n        <div class=\"d-md-flex d-block align-items-center justify-content-between my-4 page-header-breadcrumb\">\n            <h1 class=\"page-title fw-semibold fs-18 mb-0\">Currencies</h1>\n            <div class=\"ms-md-1 ms-0\">\n                <nav>\n                    <ol class=\"breadcrumb mb-0\">\n                        <li class=\"breadcrumb-item active\" aria-current=\"page\">Currencies</li>\n                    </ol>\n                </nav>\n            </div>\n        </div>\n        <div class=\"row\">\n            <div class=\"col-xl-12\">\n                <div class=\"card custom-card\">\n                    <div class=\"card-header justify-content-between\">\n                        <div class=\"card-title\">\n                            DANH SÁCH TIỀN TỆ\n                        </div>\n                        <button type=\"button\" data-bs-toggle=\"modal\" data-bs-target=\"#exampleModalScrollable2\"\n                            class=\"btn btn-sm btn-primary btn-wave waves-light waves-effect waves-light\"><i\n                                class=\"ri-add-line fw-semibold align-middle\"></i> Thêm tiền tệ mới</button>\n                    </div>\n                    <div class=\"card-body\">\n\n                        <table id=\"datatable-basic\" class=\"table text-nowrap table-striped table-hover table-bordered\"\n                            style=\"width:100%\">\n                            <thead>\n                                <tr>\n                                    <th style=\"width: 5px;\">#</th>\n                                    <th>";
echo __("Name");
echo "</th>\n                                    <th>";
echo __("Code");
echo "</th>\n                                    <th>Giá so với\n                                        ";
echo $CMSNT->get_row(" SELECT `code` FROM `currencies` WHERE `display` = 1 AND `default_currency` = 1")["code"];
echo "                                    </th>\n                                    <th>";
echo __("Default");
echo "</th>\n                                    <th>";
echo __("Status");
echo "</th>\n                                    <th>";
echo __("Action");
echo "</th>\n                                </tr>\n                            </thead>\n                            <tbody>\n                                ";
foreach ($CMSNT->get_list("SELECT * FROM `currencies` ORDER BY `id` DESC ") as $row) {
    echo "                                <tr>\n                                    <td>";
    echo $row["id"];
    echo "</td>\n                                    <td>";
    echo $row["name"];
    echo "</td>\n                                    <td>";
    echo $row["code"];
    echo "</td>\n                                    <td>";
    echo $row["rate"];
    echo "</td>\n                                    <td>";
    echo display_mark($row["default_currency"]);
    echo "</td>\n                                    <td>";
    echo display_status($row["display"]);
    echo "</td>\n                                    <td class=\"text-center fs-base\">\n                                        <a type=\"button\" onclick=\"setDefault('";
    echo $row["id"];
    echo "')\"\n                                            class=\"btn btn-sm btn-light\" data-bs-toggle=\"tooltip\"\n                                            title=\"";
    echo __("Set Default");
    echo "\">\n                                            <i class=\"fa fa-key\"></i>\n                                        </a>\n                                        <a type=\"button\" href=\"";
    echo base_url_admin("currency-edit&id=" . $row["id"]);
    echo "\"\n                                            class=\"btn btn-sm btn-light\" data-bs-toggle=\"tooltip\"\n                                            title=\"";
    echo __("Edit");
    echo "\">\n                                            <i class=\"fa fa-pencil-alt\"></i>\n                                        </a>\n                                        <a type=\"button\" onclick=\"RemoveRow('";
    echo $row["id"];
    echo "')\"\n                                            class=\"btn btn-sm btn-light\" data-bs-toggle=\"tooltip\"\n                                            title=\"";
    echo __("Delete");
    echo "\">\n                                            <i class=\"fas fa-trash\"></i>\n                                        </a>\n                                    </td>\n                                </tr>\n                                ";
}
echo "                            </tbody>\n                        </table>\n                    </div>\n                </div>\n            </div>\n        </div>\n    </div>\n</div>\n\n\n<div class=\"modal fade\" id=\"exampleModalScrollable2\" tabindex=\"-1\" aria-labelledby=\"exampleModalScrollable2\"\n    data-bs-keyboard=\"false\" aria-hidden=\"true\">\n    <!-- Scrollable modal -->\n    <div class=\"modal-dialog modal-dialog-centered modal-lg dialog-scrollable\">\n        <div class=\"modal-content\">\n            <div class=\"modal-header\">\n                <h6 class=\"modal-title\" id=\"staticBackdropLabel2\">Thêm tiền tệ mới</h6>\n                <button type=\"button\" class=\"btn-close\" data-bs-dismiss=\"modal\" aria-label=\"Close\"></button>\n            </div>\n            <form action=\"\" method=\"POST\" enctype=\"multipart/form-data\">\n                <div class=\"modal-body\">\n                    <div class=\"row mb-4\">\n                        <div class=\"col-sm-6\">\n                            <div class=\"mb-4\">\n                                <label class=\"form-label\" for=\"name\">Name:</label>\n                                <input name=\"name\" type=\"text\" class=\"form-control\" id=\"name\" placeholder=\"Name\"\n                                    required>\n                            </div>\n                            <div class=\"mb-4\">\n                                <label class=\"form-label\" for=\"code\">Code:</label>\n                                <select class=\"form-select\" data-trigger name=\"code\" required>\n                                    <option value=\"AED\">AED - United Arab Emirates Dirham</option>\n                                    <option value=\"AFN\">AFN - Afghanistan Afghani</option>\n                                    <option value=\"ALL\">ALL - Albania Lek</option>\n                                    <option value=\"AMD\">AMD - Armenia Dram</option>\n                                    <option value=\"ANG\">ANG - Netherlands Antilles Guilder</option>\n                                    <option value=\"AOA\">AOA - Angola Kwanza</option>\n                                    <option value=\"ARS\">ARS - Argentina Peso</option>\n                                    <option value=\"AUD\">AUD - Australia Dollar</option>\n                                    <option value=\"AWG\">AWG - Aruba Guilder</option>\n                                    <option value=\"AZN\">AZN - Azerbaijan New Manat</option>\n                                    <option value=\"BBD\">BBD - Barbados Dollar</option>\n                                    <option value=\"BDT\">BDT - Bangladesh Taka</option>\n                                    <option value=\"BGN\">BGN - Bulgaria Lev</option>\n                                    <option value=\"BHD\">BHD - Bahrain Dinar</option>\n                                    <option value=\"BIF\">BIF - Burundi Franc</option>\n                                    <option value=\"BMD\">BMD - Bermuda Dollar</option>\n                                    <option value=\"BND\">BND - Brunei Darussalam Dollar</option>\n                                    <option value=\"BOB\">BOB - Bolivia Bolíviano</option>\n                                    <option value=\"BRL\">BRL - Brazil Real</option>\n                                    <option value=\"BSD\">BSD - Bahamas Dollar</option>\n                                    <option value=\"BTC\">BTC - Bitcoin</option>\n                                    <option value=\"BTN\">BTN - Bhutan Ngultrum</option>\n                                    <option value=\"BWP\">BWP - Botswana Pula</option>\n                                    <option value=\"BYN\">BYN - Belarus Ruble</option>\n                                    <option value=\"BZD\">BZD - Belize Dollar</option>\n                                    <option value=\"CAD\">CAD - Canada Dollar</option>\n                                    <option value=\"CDF\">CDF - Congo/Kinshasa Franc</option>\n                                    <option value=\"CHF\">CHF - Switzerland Franc</option>\n                                    <option value=\"CLP\">CLP - Chile Peso</option>\n                                    <option value=\"CNY\">CNY - China Yuan Renminbi</option>\n                                    <option value=\"COP\">COP - Colombia Peso</option>\n                                    <option value=\"CRC\">CRC - Costa Rica Colon</option>\n                                    <option value=\"CUC\">CUC - Cuba Convertible Peso</option>\n                                    <option value=\"CUP\">CUP - Cuba Peso</option>\n                                    <option value=\"CVE\">CVE - Cape Verde Escudo</option>\n                                    <option value=\"CZK\">CZK - Czech Republic Koruna</option>\n                                    <option value=\"DJF\">DJF - Djibouti Franc</option>\n                                    <option value=\"DKK\">DKK - Denmark Krone</option>\n                                    <option value=\"DOP\">DOP - Dominican Republic Peso</option>\n                                    <option value=\"DZD\">DZD - Algeria Dinar</option>\n                                    <option value=\"EGP\">EGP - Egypt Pound</option>\n                                    <option value=\"ERN\">ERN - Eritrea Nakfa</option>\n                                    <option value=\"ETB\">ETB - Ethiopia Birr</option>\n                                    <option value=\"ETH\">ETH - Ethereum</option>\n                                    <option value=\"EUR\">EUR - Euro Member Countries</option>\n                                    <option value=\"FJD\">FJD - Fiji Dollar</option>\n                                    <option value=\"GBP\">GBP - United Kingdom Pound</option>\n                                    <option value=\"GEL\">GEL - Georgia Lari</option>\n                                    <option value=\"GGP\">GGP - Guernsey Pound</option>\n                                    <option value=\"GHS\">GHS - Ghana Cedi</option>\n                                    <option value=\"GIP\">GIP - Gibraltar Pound</option>\n                                    <option value=\"GMD\">GMD - Gambia Dalasi</option>\n                                    <option value=\"GNF\">GNF - Guinea Franc</option>\n                                    <option value=\"GTQ\">GTQ - Guatemala Quetzal</option>\n                                    <option value=\"GYD\">GYD - Guyana Dollar</option>\n                                    <option value=\"HKD\">HKD - Hong Kong Dollar</option>\n                                    <option value=\"HNL\">HNL - Honduras Lempira</option>\n                                    <option value=\"HRK\">HRK - Croatia Kuna</option>\n                                    <option value=\"HTG\">HTG - Haiti Gourde</option>\n                                    <option value=\"HUF\">HUF - Hungary Forint</option>\n                                    <option value=\"IDR\">IDR - Indonesia Rupiah</option>\n                                    <option value=\"ILS\">ILS - Israel Shekel</option>\n                                    <option value=\"IMP\">IMP - Isle of Man Pound</option>\n                                    <option value=\"INR\">INR - India Rupee</option>\n                                    <option value=\"IQD\">IQD - Iraq Dinar</option>\n                                    <option value=\"IRR\">IRR - Iran Rial</option>\n                                    <option value=\"ISK\">ISK - Iceland Krona</option>\n                                    <option value=\"JEP\">JEP - Jersey Pound</option>\n                                    <option value=\"JMD\">JMD - Jamaica Dollar</option>\n                                    <option value=\"JOD\">JOD - Jordan Dinar</option>\n                                    <option value=\"JPY\">JPY - Japan Yen</option>\n                                    <option value=\"KES\">KES - Kenya Shilling</option>\n                                    <option value=\"KGS\">KGS - Kyrgyzstan Som</option>\n                                    <option value=\"KHR\">KHR - Cambodia Riel</option>\n                                    <option value=\"KMF\">KMF - Comoros Franc</option>\n                                    <option value=\"KPW\">KPW - Korea (North) Won</option>\n                                    <option value=\"KRW\">KRW - Korea (South) Won</option>\n                                    <option value=\"KWD\">KWD - Kuwait Dinar</option>\n                                    <option value=\"KYD\">KYD - Cayman Islands Dollar</option>\n                                    <option value=\"KZT\">KZT - Kazakhstan Tenge</option>\n                                    <option value=\"LAK\">LAK - Laos Kip</option>\n                                    <option value=\"LBP\">LBP - Lebanon Pound</option>\n                                    <option value=\"LKR\">LKR - Sri Lanka Rupee</option>\n                                    <option value=\"LRD\">LRD - Liberia Dollar</option>\n                                    <option value=\"LSL\">LSL - Lesotho Loti</option>\n                                    <option value=\"LTC\">LTC - Litecoin</option>\n                                    <option value=\"LYD\">LYD - Libya Dinar</option>\n                                    <option value=\"MAD\">MAD - Morocco Dirham</option>\n                                    <option value=\"MDL\">MDL - Moldova Leu</option>\n                                    <option value=\"MGA\">MGA - Madagascar Ariary</option>\n                                    <option value=\"MKD\">MKD - Macedonia Denar</option>\n                                    <option value=\"MMK\">MMK - Myanmar (Burma) Kyat</option>\n                                    <option value=\"MNT\">MNT - Mongolia Tughrik</option>\n                                    <option value=\"MOP\">MOP - Macau Pataca</option>\n                                    <option value=\"MRO\">MRO - Mauritania Ouguiya</option>\n                                    <option value=\"MUR\">MUR - Mauritius Rupee</option>\n                                    <option value=\"MWK\">MWK - Malawi Kwacha</option>\n                                    <option value=\"MXN\">MXN - Mexico Peso</option>\n                                    <option value=\"MYR\">MYR - Malaysia Ringgit</option>\n                                    <option value=\"MZN\">MZN - Mozambique Metical</option>\n                                    <option value=\"NAD\">NAD - Namibia Dollar</option>\n                                    <option value=\"NGN\">NGN - Nigeria Naira</option>\n                                    <option value=\"NIO\">NIO - Nicaragua Cordoba</option>\n                                    <option value=\"NOK\">NOK - Norway Krone</option>\n                                    <option value=\"NPR\">NPR - Nepal Rupee</option>\n                                    <option value=\"NZD\">NZD - New Zealand Dollar</option>\n                                    <option value=\"OMR\">OMR - Oman Rial</option>\n                                    <option value=\"PAB\">PAB - Panama Balboa</option>\n                                    <option value=\"PEN\">PEN - Peru Sol</option>\n                                    <option value=\"PGK\">PGK - Papua New Guinea Kina</option>\n                                    <option value=\"PHP\">PHP - Philippines Peso</option>\n                                    <option value=\"PKR\">PKR - Pakistan Rupee</option>\n                                    <option value=\"PLN\">PLN - Poland Zloty</option>\n                                    <option value=\"PYG\">PYG - Paraguay Guarani</option>\n                                    <option value=\"QAR\">QAR - Qatar Riyal</option>\n                                    <option value=\"RON\">RON - Romania New Leu</option>\n                                    <option value=\"RSD\">RSD - Serbia Dinar</option>\n                                    <option value=\"RUB\">RUB - Russia Ruble</option>\n                                    <option value=\"RWF\">RWF - Rwanda Franc</option>\n                                    <option value=\"SAR\">SAR - Saudi Arabia Riyal</option>\n                                    <option value=\"SCR\">SCR - Seychelles Rupee</option>\n                                    <option value=\"SDG\">SDG - Sudan Pound</option>\n                                    <option value=\"SEK\">SEK - Sweden Krona</option>\n                                    <option value=\"SGD\">SGD - Singapore Dollar</option>\n                                    <option value=\"SHP\">SHP - Saint Helena Pound</option>\n                                    <option value=\"SLL\">SLL - Sierra Leone Leone</option>\n                                    <option value=\"SOS\">SOS - Somalia Shilling</option>\n                                    <option value=\"SPL\">SPL - Seborga Luigino</option>\n                                    <option value=\"SRD\">SRD - Suriname Dollar</option>\n                                    <option value=\"SVC\">SVC - El Salvador Colon</option>\n                                    <option value=\"SYP\">SYP - Syria Pound</option>\n                                    <option value=\"SZL\">SZL - Swaziland Lilangeni</option>\n                                    <option value=\"THB\">THB - Thailand Baht</option>\n                                    <option value=\"TJS\">TJS - Tajikistan Somoni</option>\n                                    <option value=\"TMT\">TMT - Turkmenistan Manat</option>\n                                    <option value=\"TND\">TND - Tunisia Dinar</option>\n                                    <option value=\"TOP\">TOP - Tonga Pa'anga</option>\n                                    <option value=\"TRY\">TRY - Turkey Lira</option>\n                                    <option value=\"TVD\">TVD - Tuvalu Dollar</option>\n                                    <option value=\"TWD\">TWD - Taiwan New Dollar</option>\n                                    <option value=\"TZS\">TZS - Tanzania Shilling</option>\n                                    <option value=\"UAH\">UAH - Ukraine Hryvnia</option>\n                                    <option value=\"UGX\">UGX - Uganda Shilling</option>\n                                    <option value=\"USD\">USD - United States Dollar</option>\n                                    <option value=\"UYU\">UYU - Uruguay Peso</option>\n                                    <option value=\"UZS\">UZS - Uzbekistan Som</option>\n                                    <option value=\"VEF\">VEF - Venezuela Bolivar</option>\n                                    <option value=\"VND\">VND - Viet Nam Dong</option>\n                                    <option value=\"VUV\">VUV - Vanuatu Vatu</option>\n                                    <option value=\"WST\">WST - Samoa Tala</option>\n                                    <option value=\"YER\">YER - Yemen Rial</option>\n                                    <option value=\"ZAR\">ZAR - South Africa Rand</option>\n                                    <option value=\"ZMW\">ZMW - Zambia Kwacha</option>\n                                    <option value=\"ZWD\">ZWD - Zimbabwe Dollar</option>\n                                </select>\n                            </div>\n                            <div class=\"mb-4\">\n                                <label class=\"form-label\" for=\"symbol_left\">Symbol Left:</label>\n                                <input name=\"symbol_left\" type=\"text\" class=\"form-control\" id=\"url\"\n                                    placeholder=\"Enter Symbol Left\" value=\"\">\n                            </div>\n                            <div class=\"mb-4\">\n                                <label class=\"form-label\" for=\"symbol_right\">Symbol Right:</label>\n                                <input name=\"symbol_right\" type=\"text\" class=\"form-control\" id=\"symbol_right\"\n                                    placeholder=\"Enter Symbol Right\" value=\"\">\n                            </div>\n                        </div>\n                        <div class=\"col-sm-6\">\n                            <div class=\"mb-4\">\n                                <label class=\"form-label\" for=\"value\">Rate:</label>\n                                <div class=\"input-group\">\n                                    <input name=\"rate\" type=\"text\" class=\"form-control\" id=\"rate\"\n                                        placeholder=\"Bao nhiêu ";
echo $CMSNT->get_row(" SELECT `code` FROM `currencies` WHERE `display` = 1 AND `default_currency` = 1")["code"];
echo " cho 1 đơn vị tiền tệ này\"\n                                        value=\"\" required>\n                                    <span class=\"input-group-text\">\n                                        ";
echo $CMSNT->get_row(" SELECT `code` FROM `currencies` WHERE `display` = 1 AND `default_currency` = 1")["code"];
echo "                                    </span>\n                                </div>\n                            </div>\n                            <div class=\"mb-4\">\n                                <label class=\"form-label\" for=\"value\">";
echo __("Decimals (VND is 0 USD is 2)");
echo ":</label>\n                                <input name=\"decimal_currency\" type=\"number\" class=\"form-control\" id=\"decimal_currency\"\n                                    placeholder=\"VND là 0, USD là 2\" value=\"\" required>\n                            </div>\n                            <div class=\"mb-4\">\n                                <label class=\"form-label\" for=\"seperator\">Seperator:</label>\n                                <select class=\"form-control\" name=\"seperator\" required>\n                                    <option value=\"comma\">Comma (,)</option>\n                                    <option value=\"space\">Space ( )</option>\n                                    <option value=\"dot\">Dot (.)</option>\n                                </select>\n                            </div>\n                            <div class=\"mb-4\">\n                                <label class=\"form-label\" for=\"status\">";
echo __("Status");
echo ":</label>\n                                <select class=\"form-control\" name=\"display\" required>\n                                    <option value=\"1\">";
echo __("Show");
echo "</option>\n                                    <option value=\"0\">";
echo __("Hide");
echo "</option>\n                                </select>\n                            </div>\n                        </div>\n                    </div>\n                </div>\n                <div class=\"modal-footer\">\n                    <button type=\"button\" class=\"btn btn-light \" data-bs-dismiss=\"modal\">Close</button>\n                    <button type=\"submit\" name=\"AddCurrency\" class=\"btn btn-primary shadow-primary btn-wave\"><i\n                            class=\"fa fa-fw fa-plus me-1\"></i>\n                        ";
echo __("Submit");
echo "</button>\n                </div>\n            </form>\n        </div>\n    </div>\n</div>\n\n\n\n\n";
require_once __DIR__ . "/footer.php";
echo "<script>\n\$('#datatable-basic').DataTable({\n    language: {\n        searchPlaceholder: 'Search...',\n        sSearch: '',\n    },\n    \"pageLength\": 10,\n    scrollX: true\n});\n</script>\n\n<script type=\"text/javascript\">\nfunction setDefault(id) {\n    \$('.setDefault').html('<i class=\"fa fa-spinner fa-spin\"></i> Loading...').prop('disabled',\n        true);\n    \$.ajax({\n        url: \"";
echo BASE_URL("ajaxs/admin/update.php");
echo "\",\n        method: \"POST\",\n        dataType: \"JSON\",\n        data: {\n            action: 'setDefaultCurrency',\n            id: id\n        },\n        success: function(result) {\n            if (result.status == 'success') {\n                showMessage(result.msg, result.status);\n                location.reload();\n            } else {\n                showMessage(result.msg, result.status);\n            }\n        },\n        error: function() {\n            alert(html(result));\n            location.reload();\n        }\n    });\n}\n\nfunction RemoveRow(id) {\n    cuteAlert({\n        type: \"question\",\n        title: \"";
echo __("Confirm Remove");
echo "\",\n        message: \"";
echo __("Are you sure you want to delete the ID");
echo " \" + id + \" ?\",\n        confirmText: \"Okey\",\n        cancelText: \"Close\"\n    }).then((e) => {\n        if (e) {\n            \$.ajax({\n                url: \"";
echo BASE_URL("ajaxs/admin/remove.php");
echo "\",\n                method: \"POST\",\n                dataType: \"JSON\",\n                data: {\n                    action: 'removeCurrency',\n                    id: id\n                },\n                success: function(result) {\n                    if (result.status == 'success') {\n                        showMessage(result.msg, result.status);\n                        location.reload();\n                    } else {\n                        showMessage(result.msg, result.status);\n                    }\n                },\n                error: function() {\n                    alert(html(result));\n                    location.reload();\n                }\n            });\n        }\n    })\n}\n</script>";

?>