{"id":7,"date":"2026-11-01T15:55:03","date_gmt":"2026-11-01T15:55:03","guid":{"rendered":"https:\/\/mitabon.co\/nl\/contabai-register\/"},"modified":"2026-11-01T15:55:03","modified_gmt":"2026-11-01T15:55:03","slug":"contabai-register","status":"publish","type":"page","link":"https:\/\/mitabon.co\/nl\/contabai-register\/","title":{"rendered":"Register"},"content":{"rendered":"<div class=\"mx-auto w-full max-w-md\" x-data=\"contabaiRegisterForm()\">\n    <div class=\"rounded-2xl border border-neutral-200 bg-white p-8\">\n        <h1 class=\"mb-6 text-2xl font-bold text-neutral-900\">Account aanmaken<\/h1>\n        <form class=\"space-y-4\" x-on:submit.prevent=\"submit()\">\n            <div>\n                <label class=\"mb-1 block text-sm font-medium text-neutral-700\">Gebruikersnaam<\/label>\n                <input type=\"text\" x-model=\"username\" required\n                       class=\"flex h-10 w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm placeholder:text-neutral-400 focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-offset-2\">\n            <\/div>\n            <div>\n                <label class=\"mb-1 block text-sm font-medium text-neutral-700\">E-mail<\/label>\n                <input type=\"email\" x-model=\"email\" required\n                       class=\"flex h-10 w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm placeholder:text-neutral-400 focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-offset-2\">\n            <\/div>\n            <div>\n                <label class=\"mb-1 block text-sm font-medium text-neutral-700\">Wachtwoord<\/label>\n                <input type=\"password\" x-model=\"password\" required\n                       class=\"flex h-10 w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm placeholder:text-neutral-400 focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-offset-2\">\n            <\/div>\n            <div>\n                <label class=\"mb-1 block text-sm font-medium text-neutral-700\">Bevestig wachtwoord<\/label>\n                <input type=\"password\" x-model=\"passwordConfirmation\" required\n                       class=\"flex h-10 w-full rounded-md border border-neutral-300 bg-white px-3 py-2 text-sm placeholder:text-neutral-400 focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-offset-2\">\n            <\/div>\n            <div>\n                <label class=\"mb-1 block text-sm font-medium text-neutral-700\">Taal<\/label>\n                <div x-data=\"{ selOpen: false, selActive: -1 }\"\n     x-on:keydown.escape.stop=\"selOpen = false\"\n     x-on:keydown.arrow-down.prevent=\"selOpen ? (selActive = Math.min(selActive + 1, (Object.entries(languageOptions).map(e => ({ value: e[0], title: e[1] }))).length - 1)) : (selOpen = true)\"\n     x-on:keydown.arrow-up.prevent=\"selOpen ? (selActive = Math.max(selActive - 1, 0)) : (selOpen = true)\"\n     x-on:keydown.enter.prevent=\"if (selOpen && selActive >= 0) { let __i = (Object.entries(languageOptions).map(e => ({ value: e[0], title: e[1] })))[selActive]; if (__i) { language = __i.value; ; } selOpen = false; }\"\n     class=\"relative\">\n    <button type=\"button\" x-ref=\"selBtn\" x-bind:aria-expanded=\"selOpen\"\n            x-on:click=\"selOpen = !selOpen; selActive = (Object.entries(languageOptions).map(e => ({ value: e[0], title: e[1] }))).findIndex(i => i.value === (language))\"\n            class=\"relative flex h-10 w-full items-center justify-between rounded-md border border-neutral-300 bg-white py-2 pl-3 pr-9 text-left text-sm focus:outline-none focus:ring-2 focus:ring-neutral-400 focus:ring-offset-2\">\n        <span class=\"truncate\" x-text=\"((Object.entries(languageOptions).map(e => ({ value: e[0], title: e[1] }))).find(i => i.value === (language)) || {}).title || 'Kies taal'\"><\/span>\n        <span class=\"pointer-events-none absolute inset-y-0 right-0 flex items-center pr-2 text-neutral-400\"><svg class=\"w-4 h-4\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n  <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M8.25 15 12 18.75 15.75 15m-7.5-6L12 5.25 15.75 9\"\/>\n<\/svg>\n<\/span>\n    <\/button>\n    <ul x-show=\"selOpen\" x-cloak x-on:click.away=\"selOpen = false\"\n        x-transition:enter=\"transition ease-out duration-100\" x-transition:enter-start=\"opacity-0 -translate-y-1\" x-transition:enter-end=\"opacity-100 translate-y-0\"\n        x-transition:leave=\"transition ease-in duration-75\" x-transition:leave-start=\"opacity-100\" x-transition:leave-end=\"opacity-0\"\n        class=\"absolute z-30 mt-1 max-h-56 w-full overflow-auto rounded-md border border-neutral-200 bg-white py-1 text-sm !mb-0 !list-none !pl-0\">\n        <template x-for=\"(item, idx) in (Object.entries(languageOptions).map(e => ({ value: e[0], title: e[1] })))\" x-bind:key=\"item.value\">\n            <li x-on:click=\"language = item.value; ; selOpen = false; $refs.selBtn.focus();\"\n                x-on:mousemove=\"selActive = idx\"\n                x-bind:class=\"selActive === idx ? 'bg-neutral-100 text-neutral-900' : 'text-neutral-700'\"\n                class=\"relative flex cursor-default select-none items-center py-2 pl-8 pr-3\">\n                <span class=\"absolute left-2 flex items-center\" x-show=\"(language) === item.value\"><svg class=\"w-4 h-4 text-neutral-500\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n  <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"m4.5 12.75 6 6 9-13.5\"\/>\n<\/svg>\n<\/span>\n                <span class=\"block truncate\" x-text=\"item.title\"><\/span>\n            <\/li>\n        <\/template>\n    <\/ul>\n<\/div>\n            <\/div>\n            <button type=\"submit\" x-bind:disabled=\"loading\"\n                    class=\"inline-flex h-10 w-full items-center justify-center gap-2 rounded-md border border-neutral-300 bg-white px-4 py-2 text-sm font-medium text-neutral-800 transition hover:bg-neutral-50 disabled:opacity-50\">\n                <svg class=\"w-4 h-4\" xmlns=\"http:\/\/www.w3.org\/2000\/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke-width=\"1.5\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\">\n  <path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M18 7.5v3m0 0v3m0-3h3m-3 0h-3m-2.25-4.125a3.375 3.375 0 1 1-6.75 0 3.375 3.375 0 0 1 6.75 0ZM3 19.235v-.11a6.375 6.375 0 0 1 12.75 0v.109A12.318 12.318 0 0 1 9.374 21c-2.331 0-4.512-.645-6.374-1.766Z\"\/>\n<\/svg>\n                <span x-show=\"!loading\">Account aanmaken<\/span>\n                <span x-show=\"loading\">Account aanmaken...<\/span>\n            <\/button>\n        <\/form>\n        <div class=\"mt-6 text-center text-sm text-neutral-500\">\n            Heb je al een account?            <a href=\"https:\/\/mitabon.co\/nl\/contabai-login\" class=\"font-medium text-neutral-900 no-underline hover:underline\">Inloggen<\/a>\n        <\/div>\n        <div class=\"mt-2 text-center text-sm\">\n            <a href=\"https:\/\/mitabon.co\/nl\" class=\"text-neutral-500 no-underline transition hover:text-neutral-900\">Terug naar site<\/a>\n        <\/div>\n    <\/div>\n<\/div>\n<script>\ndocument.addEventListener('alpine:init', function () {\n    Alpine.data('contabaiRegisterForm', function () {\n        return {\n            username: '',\n            email: '',\n            password: '',\n            passwordConfirmation: '',\n            language: '',\n            languageOptions: {\"en\":\"Engels\",\"nl\":\"Nederlands\",\"es\":\"Spaans\",\"de\":\"Duits\",\"pt\":\"Portugees\",\"fr\":\"Frans\"},\n            loading: false,\n            init: function () {\n                let keys = Object.keys(this.languageOptions);\n                if (! this.language && keys.length) { this.language = keys[0]; }\n            },\n            submit: function () {\n                let self = this;\n                if (!self.username || !self.email || !self.password) return;\n                self.loading = true;\n                fetch('https:\/\/mitabon.co\/nl\/wp-json\/contabai\/v1\/sanctum\/guest\/register', {\n                    method: 'POST',\n                    headers: { 'Content-Type': 'application\/json' },\n                    credentials: 'same-origin',\n                    body: JSON.stringify({\n                        username: self.username,\n                        email: self.email,\n                        password: self.password,\n                        password_confirmation: self.passwordConfirmation,\n                        language: self.language\n                    })\n                })\n                .then(function (r) { return r.json().then(function (data) { return { ok: r.ok, status: r.status, data: data }; }); })\n                .then(function (result) {\n                    self.loading = false;\n                    if (result.ok) {\n                        window.location.href = 'https:\/\/mitabon.co\/nl\/contabai-verify-email?email=' + encodeURIComponent(self.email) + '&username=' + encodeURIComponent(self.username);\n                    } else if (result.status === 422 && result.data && result.data.errors) {\n                        contabaiFieldErrors(result.data.errors, null, 'Registratie mislukt.').forEach(function (msg) { contabaiToast(msg, 'danger'); });\n                    } else {\n                        contabaiToast(contabaiStatusText(result.status, 'Registratie mislukt.'), 'danger');\n                    }\n                })\n                .catch(function () {\n                    self.loading = false;\n                    contabaiToast('Verbindingsfout.', 'danger');\n                });\n            }\n        };\n    });\n});\n<\/script>\n\n","protected":false},"excerpt":{"rendered":"","protected":false},"author":1,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"template-contabai-session-and-hub.php","meta":{"footnotes":""},"class_list":["post-7","page","type-page","status-publish","hentry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v28.9 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>Register - Mitabon<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/mitabon.co\/nl\/contabai-register\/\" \/>\n<meta property=\"og:locale\" content=\"nl_NL\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Register - Mitabon\" \/>\n<meta property=\"og:url\" content=\"https:\/\/mitabon.co\/nl\/contabai-register\/\" \/>\n<meta property=\"og:site_name\" content=\"Mitabon\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/mitabon.co\\\/nl\\\/contabai-register\\\/\",\"url\":\"https:\\\/\\\/mitabon.co\\\/nl\\\/contabai-register\\\/\",\"name\":\"Register - Mitabon\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/mitabon.co\\\/nl\\\/#website\"},\"datePublished\":\"2026-11-01T15:55:03+00:00\",\"breadcrumb\":{\"@id\":\"https:\\\/\\\/mitabon.co\\\/nl\\\/contabai-register\\\/#breadcrumb\"},\"inLanguage\":\"nl-NL\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/mitabon.co\\\/nl\\\/contabai-register\\\/\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/mitabon.co\\\/nl\\\/contabai-register\\\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/mitabon.co\\\/nl\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Register\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/mitabon.co\\\/nl\\\/#website\",\"url\":\"https:\\\/\\\/mitabon.co\\\/nl\\\/\",\"name\":\"Mitabon\",\"description\":\"Vakantiehuizen, direct geboekt\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/mitabon.co\\\/nl\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"nl-NL\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Register - Mitabon","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/mitabon.co\/nl\/contabai-register\/","og_locale":"nl_NL","og_type":"article","og_title":"Register - Mitabon","og_url":"https:\/\/mitabon.co\/nl\/contabai-register\/","og_site_name":"Mitabon","twitter_card":"summary_large_image","schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/mitabon.co\/nl\/contabai-register\/","url":"https:\/\/mitabon.co\/nl\/contabai-register\/","name":"Register - Mitabon","isPartOf":{"@id":"https:\/\/mitabon.co\/nl\/#website"},"datePublished":"2026-11-01T15:55:03+00:00","breadcrumb":{"@id":"https:\/\/mitabon.co\/nl\/contabai-register\/#breadcrumb"},"inLanguage":"nl-NL","potentialAction":[{"@type":"ReadAction","target":["https:\/\/mitabon.co\/nl\/contabai-register\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/mitabon.co\/nl\/contabai-register\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/mitabon.co\/nl\/"},{"@type":"ListItem","position":2,"name":"Register"}]},{"@type":"WebSite","@id":"https:\/\/mitabon.co\/nl\/#website","url":"https:\/\/mitabon.co\/nl\/","name":"Mitabon","description":"Vakantiehuizen, direct geboekt","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/mitabon.co\/nl\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"nl-NL"}]}},"_links":{"self":[{"href":"https:\/\/mitabon.co\/nl\/wp-json\/wp\/v2\/pages\/7","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/mitabon.co\/nl\/wp-json\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/mitabon.co\/nl\/wp-json\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/mitabon.co\/nl\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/mitabon.co\/nl\/wp-json\/wp\/v2\/comments?post=7"}],"version-history":[{"count":0,"href":"https:\/\/mitabon.co\/nl\/wp-json\/wp\/v2\/pages\/7\/revisions"}],"wp:attachment":[{"href":"https:\/\/mitabon.co\/nl\/wp-json\/wp\/v2\/media?parent=7"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}