{"id":2794,"date":"2024-10-09T05:24:43","date_gmt":"2024-10-09T05:24:43","guid":{"rendered":"https:\/\/haarlemcitytours.nl\/?page_id=2794"},"modified":"2025-01-06T20:52:04","modified_gmt":"2025-01-06T20:52:04","slug":"meine-touren","status":"publish","type":"page","link":"https:\/\/haarlemcitytours.nl\/de\/meine-touren\/","title":{"rendered":"Meine Touren"},"content":{"rendered":"<div data-elementor-type=\"wp-page\" data-elementor-id=\"2794\" class=\"elementor elementor-2794\" data-elementor-post-type=\"page\">\n\t\t\t\t<div class=\"elementor-element elementor-element-b2c0970 e-flex e-con-boxed e-con e-parent\" data-id=\"b2c0970\" data-element_type=\"container\">\n\t\t\t\t\t<div class=\"e-con-inner\">\n\t\t\t\t<div class=\"elementor-element elementor-element-02afb58 elementor-widget elementor-widget-spacer\" data-id=\"02afb58\" data-element_type=\"widget\" data-widget_type=\"spacer.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\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<div class=\"elementor-element elementor-element-591b266 elementor-widget elementor-widget-shortcode\" data-id=\"591b266\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">    <div id=\"reservation-status\"><\/div>\r\n\r\n    <script type=\"text\/javascript\">\r\n        document.addEventListener(\"DOMContentLoaded\", function () {\r\n            \/\/ Cookie'den rezervasyon g\u00f6r\u00fcnt\u00fcleme token'\u0131n\u0131 al\r\n            var reservationToken = getCookie('reservation_view_token');\r\n            if (!reservationToken) {\r\n                document.getElementById('reservation-status').innerHTML = \"We konden uw recente reservering niet vinden. Voer uw e-mailadres in het onderstaande formulier in om naar uw reservering te zoeken.\";\r\n                return;\r\n            }\r\n\r\n            \/\/ Rezervasyon durumu API'den kontrol et\r\n            var xhr = new XMLHttpRequest();\r\n            xhr.open('POST', 'https:\/\/haarlemcitytours.nl\/wp-admin\/admin-ajax.php', true);\r\n            xhr.setRequestHeader('Content-Type', 'application\/x-www-form-urlencoded');\r\n\r\n            xhr.onreadystatechange = function () {\r\n                if (xhr.readyState === 4 && xhr.status === 200) {\r\n                    document.cookie = \"reservation_view_token=; expires=Thu, 01 Jan 1970 00:00:00 UTC; path=\/;\";\r\n                    document.getElementById('reservation-status').innerHTML = xhr.responseText;\r\n                }\r\n            };\r\n\r\n            xhr.send('action=check_reservation_status&reservation_token=' + encodeURIComponent(reservationToken));\r\n        });\r\n\r\n        \/\/ Cookie'den de\u011fer alma fonksiyonu\r\n        function getCookie(name) {\r\n            var value = \"; \" + document.cookie;\r\n            var parts = value.split(\"; \" + name + \"=\");\r\n            if (parts.length === 2) return parts.pop().split(\";\").shift();\r\n        }\r\n    <\/script>\r\n    <\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-fcb255e elementor-widget elementor-widget-shortcode\" data-id=\"fcb255e\" data-element_type=\"widget\" data-widget_type=\"shortcode.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t\t\t<div class=\"elementor-shortcode\">    <div id=\"reservation-check-withemail\">\r\n        <form id=\"reservation-form-withemail\" action=\"\">\r\n            <label for=\"email-withemail\">Geben Sie Ihre E-Mail-Adresse ein:<\/label> <br \/>\r\n            <input type=\"email\" id=\"email-withemail\" name=\"email-withemail\" required>\r\n            <button type=\"submit\">\u00dcberpr\u00fcfen Sie die Reservierung<\/button>\r\n        <input type=\"hidden\" name=\"trp-form-language\" value=\"de\"\/><\/form>\r\n\r\n        <div id=\"reservation-result-withemail\"><\/div>\r\n    <\/div>\r\n\r\n    <style>\r\n        #reservation-check-withemail{margin-bottom:50px;}\r\n        .table-responsive{margin:30px 0px 30px 0px}\r\n        .reservation-id-details {margin-bottom:40px;}\r\n        .reservation-id-details h1{ font-size:30px;}\r\n        .reservation-id-details h2{ font-size:20px; margin:20px 0px 10px 0px}\r\n        .reservation-id-details span {font-weight:bold;}\r\n    <\/style>\r\n\r\n    <script type=\"text\/javascript\">\r\n        document.getElementById('reservation-form-withemail').addEventListener('submit', function(e) {\r\n            e.preventDefault();\r\n            var email_withemail = document.getElementById('email-withemail').value;\r\n\r\n            \/\/ AJAX iste\u011fi ile Laravel API'den rezervasyon bilgisi al\r\n            var xhr_withemail = new XMLHttpRequest();\r\n            xhr_withemail.open('POST', 'https:\/\/haarlemcitytours.nl\/wp-admin\/admin-ajax.php', true);\r\n            xhr_withemail.setRequestHeader('Content-Type', 'application\/x-www-form-urlencoded');\r\n\r\n            xhr_withemail.onreadystatechange = function () {\r\n                if (xhr_withemail.readyState === 4 && xhr_withemail.status === 200) {\r\n                    document.getElementById('reservation-result-withemail').innerHTML = xhr_withemail.responseText;\r\n                }\r\n            };\r\n\r\n            xhr_withemail.send('action=check_reservation_by_email_withemail&email-withemail=' + encodeURIComponent(email_withemail));\r\n        });\r\n\r\n    <\/script>\r\n    \n<\/div>\n\t\t\t\t\t\t<\/div>\n\t\t\t\t<\/div>\n\t\t\t\t<div class=\"elementor-element elementor-element-593de48 elementor-widget elementor-widget-html\" data-id=\"593de48\" data-element_type=\"widget\" data-widget_type=\"html.default\">\n\t\t\t\t<div class=\"elementor-widget-container\">\n\t\t\t\t\t<style>\n\/* Ensure the container enables horizontal scrolling on smaller screens *\/\n.table-responsive {\n    width: 100%;\n    overflow-x: auto;\n    -webkit-overflow-scrolling: touch; \/* Smooth scrolling on touch devices *\/\n}\n\n#email-withemail {border-radius:10px; padding:9px 10px 10px 10px; width: 250px;}\n\n\/* Basic table styling *\/\n.reservation-table-withemail {\n    width: 100%;\n    border-collapse: collapse;\n}\n\n.reservation-table-withemail th, \n.reservation-table-withemail td {\n    padding: 10px;\n    border: 1px solid #ddd;\n    text-align: left;\n}\n\n.reservation-table-withemail th {\n    background-color: #f4f4f4;\n    font-weight: bold;\n}\n\n\/* Optional hover effect *\/\n.reservation-table-withemail tr:hover {\n    background-color: #f1f1f1;\n}\n\n\/* Responsive adjustments *\/\n@media (max-width: 768px) {\n    #email-withemail{width:100%;}\n    #reservation-form-withemail button{width:100%; margin-top:30px;}\n    .reservation-table-withemail th,\n    .reservation-table-withemail td {\n        padding: 8px;\n        font-size: 12px;\n    }\n\n    .reservation-table-withemail {\n        table-layout: auto;\n        width: 100%;\n    }\n}\n\n@media (max-width: 480px) {\n    .reservation-table-withemail th,\n    .reservation-table-withemail td {\n        font-size: 10px;\n        padding: 6px;\n    }\n}\n\n<\/style>\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":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"_acf_changed":false,"inline_featured_image":false,"site-sidebar-layout":"no-sidebar","site-content-layout":"page-builder","ast-site-content-layout":"full-width-container","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"disabled","ast-breadcrumbs-content":"","ast-featured-img":"disabled","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"default","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"set","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"var(--ast-global-color-4)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"class_list":["post-2794","page","type-page","status-publish","hentry"],"acf":[],"_links":{"self":[{"href":"https:\/\/haarlemcitytours.nl\/de\/wp-json\/wp\/v2\/pages\/2794","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/haarlemcitytours.nl\/de\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/haarlemcitytours.nl\/de\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/haarlemcitytours.nl\/de\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/haarlemcitytours.nl\/de\/wp-json\/wp\/v2\/comments?post=2794"}],"version-history":[{"count":32,"href":"https:\/\/haarlemcitytours.nl\/de\/wp-json\/wp\/v2\/pages\/2794\/revisions"}],"predecessor-version":[{"id":3003,"href":"https:\/\/haarlemcitytours.nl\/de\/wp-json\/wp\/v2\/pages\/2794\/revisions\/3003"}],"wp:attachment":[{"href":"https:\/\/haarlemcitytours.nl\/de\/wp-json\/wp\/v2\/media?parent=2794"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}