{"id":210,"date":"2025-10-18T11:37:47","date_gmt":"2025-10-18T11:37:47","guid":{"rendered":"https:\/\/dcard-9a8392.ingress-florina.ewp.live\/?page_id=210"},"modified":"2025-11-06T12:12:33","modified_gmt":"2025-11-06T12:12:33","slug":"transactions-dashboard","status":"publish","type":"page","link":"https:\/\/dcard-eg.com\/ar\/transactions-dashboard\/","title":{"rendered":"\u0644\u0648\u062d\u0629 \u0645\u0639\u0644\u0648\u0645\u0627\u062a \u0627\u0644\u0645\u0639\u0627\u0645\u0644\u0627\u062a"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"210\" class=\"elementor elementor-210\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0eb498b e-flex e-con-boxed e-con e-parent\" data-id=\"0eb498b\" data-element_type=\"container\" data-settings=\"{&quot;background_background&quot;:&quot;classic&quot;,&quot;shape_divider_bottom&quot;:&quot;tilt&quot;}\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-shape elementor-shape-bottom\" aria-hidden=\"true\" data-negative=\"false\">\n\t\t\t<svg xmlns=\"http:\/\/www.w3.org\/2000\/svg\" viewbox=\"0 0 1000 100\" preserveaspectratio=\"none\">\n\t<path class=\"elementor-shape-fill\" d=\"M0,6V0h1000v100L0,6z\"\/>\n<\/svg>\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-771e3bd e-con-full e-flex e-con e-child\" data-id=\"771e3bd\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-0fefe2e elementor-widget elementor-widget-spacer\" data-id=\"0fefe2e\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-0087d99 elementor-widget elementor-widget-spacer\" data-id=\"0087d99\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t\t\t\t<div class=\"elementor-spacer\">\n\t\t\t<div class=\"elementor-spacer-inner\"><\/div>\n\t\t<\/div>\n\t\t\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-5a2efdc e-flex e-con-boxed e-con e-parent\" data-id=\"5a2efdc\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t<div class=\"elementor-element elementor-element-e873c90 e-con-full e-flex e-con e-child\" data-id=\"e873c90\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-c75228e elementor-widget__width-initial elementor-widget elementor-widget-jet-smart-filters-search\" data-id=\"c75228e\" data-element_type=\"widget\" data-widget_type=\"jet-smart-filters-search.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<div class=\"jet-smart-filters-search jet-filter\"><div class=\"jet-search-filter\" data-query-type=\"meta_query\" data-query-var=\"store_name,store_id,card_id,amount\" data-smart-filter=\"search\" data-filter-id=\"298\" data-apply-type=\"ajax-ontyping\" data-content-provider=\"jet-engine\" data-additional-providers=\"\" data-query-id=\"default\" data-active-label=\"\" data-layout-options=\"{&quot;show_label&quot;:&quot;&quot;,&quot;display_options&quot;:[]}\" data-query-var-suffix=\"search\" data-min-letters-count=\"1\">\n\t<div class=\"jet-search-filter__input-wrapper\">\n\t\t<input\n\t\t\tclass=\"jet-search-filter__input\"\n\t\t\ttype=\"search\"\n\t\t\tautocomplete=\"off\"\n\t\t\tname=\"store_name,store_id,card_id,amount\"\n\t\t\tvalue=\"\"\n\t\t\tplaceholder=\"\u0627\u0644\u0628\u062d\u062b \u0628\u0627\u0633\u062a\u062e\u062f\u0627\u0645 \u0631\u0642\u0645 \u0627\u0644\u062a\u0639\u0631\u064a\u0641\u060c \u0627\u0644\u0627\u0633\u0645\u060c \u0627\u0644\u0645\u0628\u0644\u063a...\"\n\t\t\taria-label=\"\u0627\u0644\u0628\u062d\u062b \u0639\u0646 \u0627\u0644\u0645\u0639\u0627\u0645\u0644\u0627\u062a\"\n\t\t\t\t\t>\n\t\t\t\t\t<div class=\"jet-search-filter__input-clear\">\n\t\t\t\t<svg width=\"22\" height=\"28\" viewbox=\"0 0 22 28\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\">\n\t<path d=\"M20.281 20.656c0 0.391-0.156 0.781-0.438 1.062l-2.125 2.125c-0.281 0.281-0.672 0.438-1.062 0.438s-0.781-0.156-1.062-0.438l-4.594-4.594-4.594 4.594c-0.281 0.281-0.672 0.438-1.062 0.438s-0.781-0.156-1.062-0.438l-2.125-2.125c-0.281-0.281-0.438-0.672-0.438-1.062s0.156-0.781 0.438-1.062l4.594-4.594-4.594-4.594c-0.281-0.281-0.438-0.672-0.438-1.062s0.156-0.781 0.438-1.062l2.125-2.125c0.281-0.281 0.672-0.438 1.062-0.438s0.781 0.156 1.062 0.438l4.594 4.594 4.594-4.594c0.281-0.281 0.672-0.438 1.062-0.438s0.781 0.156 1.062 0.438l2.125 2.125c0.281 0.281 0.438 0.672 0.438 1.062s-0.156 0.781-0.438 1.062l-4.594 4.594 4.594 4.594c0.281 0.281 0.438 0.672 0.438 1.062z\"><\/path>\n<\/svg>\n\t\t\t<\/div>\n\t\t\t<div class=\"jet-search-filter__input-loading\"><\/div>\n\t\t\t<\/div>\n\t<\/div>\n<\/div>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-66b0db6 elementor-widget__width-initial elementor-widget elementor-widget-html\" data-id=\"66b0db6\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t\t<!-- AJAX URL -->\r\n<script>\r\nvar ajaxurl = \"\/wp-admin\/admin-ajax.php\"; \r\n<\/script>\r\n\r\n<!-- Export Script -->\r\n<script>\r\njQuery(document).ready(function($) {\r\n\r\n    $(document).on('click', '#export-transactions', function(e) {\r\n        e.preventDefault();\r\n\r\n        let searchText = $('.jet-search-filter__input').val().trim();\r\n\r\n        $.ajax({\r\n            url: ajaxurl,\r\n            type: \"POST\",\r\n            data: {\r\n                action: \"export_transactions\",\r\n                search: searchText\r\n            },\r\n            xhrFields: { responseType: \"blob\" },\r\n            success: function(data) {\r\n                let blob = new Blob([data], { type: 'text\/csv' });\r\n                let link = document.createElement('a');\r\n                link.href = window.URL.createObjectURL(blob);\r\n                link.download = \"transactions-export.csv\";\r\n                link.click();\r\n            },\r\n            error: function(err) {\r\n                console.log(\"Export error:\", err);\r\n            }\r\n        });\r\n\r\n    });\r\n\r\n});\r\n<\/script>\r\n\r\n\r\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-40e7651 elementor-align-right elementor-hidden-tablet elementor-hidden-mobile elementor-widget elementor-widget-button\" data-id=\"40e7651\" data-element_type=\"widget\" id=\"export-transactions\" data-widget_type=\"button.default\">\n\t\t\t\t\t\t\t\t\t\t<a class=\"elementor-button elementor-button-link elementor-size-sm elementor-animation-shrink\" href=\"#\">\n\t\t\t\t\t\t<span class=\"elementor-button-content-wrapper\">\n\t\t\t\t\t\t<span class=\"elementor-button-icon\">\n\t\t\t\t<svg aria-hidden=\"true\" class=\"e-font-icon-svg e-fas-file-export\" viewbox=\"0 0 576 512\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\"><path d=\"M384 121.9c0-6.3-2.5-12.4-7-16.9L279.1 7c-4.5-4.5-10.6-7-17-7H256v128h128zM571 308l-95.7-96.4c-10.1-10.1-27.4-3-27.4 11.3V288h-64v64h64v65.2c0 14.3 17.3 21.4 27.4 11.3L571 332c6.6-6.6 6.6-17.4 0-24zm-379 28v-32c0-8.8 7.2-16 16-16h176V160H248c-13.2 0-24-10.8-24-24V0H24C10.7 0 0 10.7 0 24v464c0 13.3 10.7 24 24 24h336c13.3 0 24-10.7 24-24V352H208c-8.8 0-16-7.2-16-16z\"><\/path><\/svg>\t\t\t<\/span>\n\t\t\t\t\t\t\t\t\t<span class=\"elementor-button-text\">\u062a\u0635\u062f\u064a\u0631 \u0627\u0644\u0628\u064a\u0627\u0646\u0627\u062a<\/span>\n\t\t\t\t\t<\/span>\n\t\t\t\t\t<\/a>\n\t\t\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-f174bc1 e-con-full e-flex e-con e-child\" data-id=\"f174bc1\" data-element_type=\"container\">\n\t\t<div class=\"elementor-element elementor-element-2c7539c e-con-full switchborder e-flex e-con e-child\" data-id=\"2c7539c\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-5e08d10 elementor-widget elementor-widget-heading\" data-id=\"5e08d10\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">\u0627\u0633\u0645 \u0627\u0644\u0645\u062a\u062c\u0631<\/h5>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-ad0bcbb e-con-full switchborder e-flex e-con e-child\" data-id=\"ad0bcbb\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-857abee elementor-widget elementor-widget-heading\" data-id=\"857abee\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">\u0628\u0637\u0627\u0642\u0629 \u0627\u0644\u0647\u0648\u064a\u0629<\/h5>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-cae5e3c e-con-full switchborder e-flex e-con e-child\" data-id=\"cae5e3c\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-3a642ce elementor-widget elementor-widget-heading\" data-id=\"3a642ce\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">\u062a\u0627\u0631\u064a\u062e<\/h5>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-ef004f5 e-con-full switchborder e-flex e-con e-child\" data-id=\"ef004f5\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-4778fda elementor-widget elementor-widget-heading\" data-id=\"4778fda\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">\u0648\u0642\u062a<\/h5>\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t<div class=\"elementor-element elementor-element-f014b8a e-con-full e-flex e-con e-child\" data-id=\"f014b8a\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-90de692 elementor-widget elementor-widget-heading\" data-id=\"90de692\" data-element_type=\"widget\" data-widget_type=\"heading.default\">\n\t\t\t\t\t<h5 class=\"elementor-heading-title elementor-size-default\">\u0645\u0628\u0644\u063a \u0627\u0644\u062e\u0635\u0645<\/h5>\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-473a60a e-con-full e-flex e-con e-child\" data-id=\"473a60a\" data-element_type=\"container\">\n\t\t\t\t<div class=\"elementor-element elementor-element-494391b elementor-widget__width-inherit elementor-widget elementor-widget-jet-listing-grid\" data-id=\"494391b\" data-element_type=\"widget\" data-settings=\"{&quot;columns&quot;:&quot;1&quot;}\" data-widget_type=\"jet-listing-grid.default\">\n\t\t\t\t\t<div class=\"jet-listing-grid jet-listing\"><div class=\"jet-listing-not-found jet-listing-grid__items\" data-nav=\"{&quot;enabled&quot;:true,&quot;type&quot;:&quot;scroll&quot;,&quot;more_el&quot;:null,&quot;query&quot;:{&quot;post_status&quot;:[&quot;publish&quot;],&quot;post_type&quot;:&quot;transactions&quot;,&quot;posts_per_page&quot;:&quot;20&quot;,&quot;paged&quot;:&quot;1&quot;,&quot;ignore_sticky_posts&quot;:&quot;1&quot;,&quot;suppress_filters&quot;:false,&quot;jet_smart_filters&quot;:&quot;jet-engine\\\/default&quot;,&quot;signature&quot;:&quot;b06bc3a69ab35dc840e3fe3d6003c2cf77d3c04737d39cfa3fd31781470ae89a&quot;},&quot;widget_settings&quot;:{&quot;lisitng_id&quot;:213,&quot;posts_num&quot;:20,&quot;columns&quot;:1,&quot;columns_tablet&quot;:1,&quot;columns_mobile&quot;:1,&quot;column_min_width&quot;:240,&quot;column_min_width_tablet&quot;:240,&quot;column_min_width_mobile&quot;:240,&quot;inline_columns_css&quot;:false,&quot;is_archive_template&quot;:&quot;&quot;,&quot;post_status&quot;:[&quot;publish&quot;],&quot;use_random_posts_num&quot;:&quot;&quot;,&quot;max_posts_num&quot;:9,&quot;not_found_message&quot;:&quot;No data was found&quot;,&quot;is_masonry&quot;:false,&quot;equal_columns_height&quot;:&quot;&quot;,&quot;use_load_more&quot;:&quot;yes&quot;,&quot;load_more_id&quot;:&quot;&quot;,&quot;load_more_type&quot;:&quot;scroll&quot;,&quot;load_more_offset&quot;:{&quot;unit&quot;:&quot;px&quot;,&quot;size&quot;:0,&quot;sizes&quot;:[]},&quot;use_custom_post_types&quot;:&quot;&quot;,&quot;custom_post_types&quot;:[],&quot;hide_widget_if&quot;:&quot;&quot;,&quot;carousel_enabled&quot;:&quot;&quot;,&quot;slides_to_scroll&quot;:&quot;1&quot;,&quot;arrows&quot;:&quot;true&quot;,&quot;arrow_icon&quot;:&quot;fa fa-angle-left&quot;,&quot;dots&quot;:&quot;&quot;,&quot;autoplay&quot;:&quot;true&quot;,&quot;pause_on_hover&quot;:&quot;true&quot;,&quot;autoplay_speed&quot;:5000,&quot;infinite&quot;:&quot;true&quot;,&quot;center_mode&quot;:&quot;&quot;,&quot;effect&quot;:&quot;slide&quot;,&quot;speed&quot;:500,&quot;inject_alternative_items&quot;:&quot;&quot;,&quot;injection_items&quot;:[],&quot;scroll_slider_enabled&quot;:&quot;&quot;,&quot;scroll_slider_on&quot;:[&quot;desktop&quot;,&quot;tablet&quot;,&quot;mobile&quot;],&quot;custom_query&quot;:false,&quot;custom_query_id&quot;:&quot;&quot;,&quot;_element_id&quot;:&quot;&quot;,&quot;collapse_first_last_gap&quot;:false,&quot;list_tag_selection&quot;:&quot;&quot;,&quot;list_items_wrapper_tag&quot;:&quot;div&quot;,&quot;list_item_tag&quot;:&quot;div&quot;,&quot;empty_items_wrapper_tag&quot;:&quot;div&quot;}}\" data-listing-source=\"posts\" data-listing-id=\"213\" data-query-id=\"\" data-queried-id=\"210|WP_Post\">\u0644\u0645 \u064a\u062a\u0645 \u0627\u0644\u0639\u062b\u0648\u0631 \u0639\u0644\u0649 \u0623\u064a \u0628\u064a\u0627\u0646\u0627\u062a<\/div><\/div>\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>","protected":false},"excerpt":{"rendered":"<p>Export Data Store Name Card ID Date Time Discount Amount<\/p>","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"class_list":["post-210","page","type-page","status-publish","hentry"],"brizy_media":[],"_links":{"self":[{"href":"https:\/\/dcard-eg.com\/ar\/wp-json\/wp\/v2\/pages\/210","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/dcard-eg.com\/ar\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/dcard-eg.com\/ar\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/dcard-eg.com\/ar\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/dcard-eg.com\/ar\/wp-json\/wp\/v2\/comments?post=210"}],"version-history":[{"count":5,"href":"https:\/\/dcard-eg.com\/ar\/wp-json\/wp\/v2\/pages\/210\/revisions"}],"predecessor-version":[{"id":149292,"href":"https:\/\/dcard-eg.com\/ar\/wp-json\/wp\/v2\/pages\/210\/revisions\/149292"}],"wp:attachment":[{"href":"https:\/\/dcard-eg.com\/ar\/wp-json\/wp\/v2\/media?parent=210"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}