/** VUE COMPONENT **/ /** VUE COMPONENT **/ /** * *Fixed * */ var nav = () => { return { $template: ` `, } } /** VUE COMPONENT **/ /** * *Fixed * */ var hero = () => { return { $template: `

Schedule your
Appointment Now!

Some of the country’s top experts and prides itself in providing high-quality services in the areas of audit, tax and advisory.

`, show: false } } /** VUE COMPONENT **/ /** * *Fixed * */ var breadcrumb = () => { return { $template: ` `, } } /** VUE COMPONENT **/ function drawer() { return { $template: `


Call Us Now
`, } } /** VUE COMPONENT **/ /** * *Fixed * */ var featured = () => { return { $template: ` `, show: false, articles: [], getPath(filename) { return "/article/" + filename.replace(".article", ""); }, async init() { var result = await frothClient.fetchArticles(); this.articles = result.data; console.log(this.articles); this.articles = this.articles.filter((item) => { if (item.meta.categories.includes("featured")) { return true } return false; }) } } } /** VUE COMPONENT **/ var article = () => { return { $template: `
`, show: false, blocks: [], content: "Loading Article...", async init() { var ajax = new Ajax(); window.editor = new Editor(); await this.getArticle(); }, async getArticle() { var inp = this.route.split("/"); var data = await frothClient.fetchArticle(inp[2]+".article"); this.title = data[0].title for (var i in data) { this.blocks.push(editor.createBlock(data[i].type, data[i])) } await this.setArticle(); }, setArticle() { var html = "" for (var i in this.blocks) { var html = html + this.blocks[i].render() } this.content = html; }, } } /** VUE COMPONENT **/ var articles = () => { return { $template: `

Articles to Help You


`, show: false, search: "", articles: [], getPath(article) { return "/article/" + article.filename.replace(".article", ""); }, getArticles() { if (this.search === "") { return this.articles } return this.articles.filter((item) => { if (item.meta.title.includes(this.search)) { return true; } }) }, async init() { this.title = "Explore Our Article Achieve" var result = await frothClient.fetchArticles(); this.articles = result.data; this.articles = this.articles.filter((item) => { if (item.filename == "about.article" || item.filename == "team.article" || item.filename == "services.article" || item.filename == "disclaimer.article" || item.filename == "policy.article" || item.filename == "terms.article") { return false } return true; }) } } } /** VUE COMPONENT **/ var about = () => { return { $template: `
`, show: false, blocks: [], content: "Loading Article...", async init() { var ajax = new Ajax(); window.editor = new Editor(); await this.getArticle(); }, async getArticle() { var data = await frothClient.fetchArticle("about.article"); this.title = "About Us" for (var i in data) { this.blocks.push(editor.createBlock(data[i].type, data[i])) } await this.setArticle(); }, setArticle() { var html = "" for (var i in this.blocks) { var html = html + this.blocks[i].render() } this.content = html; }, } } /** VUE COMPONENT **/ var disclaimer = () => { return { $template: `
`, show: false, blocks: [], content: "Loading Article...", async init() { var ajax = new Ajax(); window.editor = new Editor(); await this.getArticle(); }, async getArticle() { var data = await frothClient.fetchArticle("disclaimer.article"); this.title = data[0].title for (var i in data) { this.blocks.push(editor.createBlock(data[i].type, data[i])) } await this.setArticle(); }, setArticle() { var html = "" for (var i in this.blocks) { var html = html + this.blocks[i].render() } this.content = html; }, } } /** VUE COMPONENT **/ var policy = () => { return { $template: `
`, show: false, blocks: [], content: "Loading Article...", async init() { var ajax = new Ajax(); window.editor = new Editor(); await this.getArticle(); }, async getArticle() { var data = await frothClient.fetchArticle("policy.article"); this.title = data[0].title for (var i in data) { this.blocks.push(editor.createBlock(data[i].type, data[i])) } await this.setArticle(); }, setArticle() { var html = "" for (var i in this.blocks) { var html = html + this.blocks[i].render() } this.content = html; }, } } /** VUE COMPONENT **/ var services = () => { return { $template: `
`, show: false, blocks: [], content: "Loading Article...", async init() { var ajax = new Ajax(); window.editor = new Editor(); await this.getArticle(); }, async getArticle() { var data = await frothClient.fetchArticle("services.article"); this.title = "Services Offered" for (var i in data) { this.blocks.push(editor.createBlock(data[i].type, data[i])) } await this.setArticle(); }, setArticle() { var html = "" for (var i in this.blocks) { var html = html + this.blocks[i].render() } this.content = html; }, } } /** VUE COMPONENT **/ var terms = () => { return { $template: `
`, show: false, blocks: [], content: "Loading Article...", async init() { var ajax = new Ajax(); window.editor = new Editor(); await this.getArticle(); }, async getArticle() { var data = await frothClient.fetchArticle("term.article"); this.title = data[0].title for (var i in data) { this.blocks.push(editor.createBlock(data[i].type, data[i])) } await this.setArticle(); }, setArticle() { var html = "" for (var i in this.blocks) { var html = html + this.blocks[i].render() } this.content = html; }, } } /** VUE COMPONENT **/ /** * *Fixed * */ var contact = () => { return { $template: `

Contact Us At

Email Us At

info@ngakhae.co.za

Visit Us At

Shayandima Stand 2566 33rd Ave 0945
Unit 56 Vorna Village Langevelt Midrand 1686
`, show: false } } /** VUE COMPONENT **/ /** * *Fixed * */ var footer = () => { return { $template: ` `, show: false } } /** * *Fixed * */ var App = (route) => { console.log(route); return { $template: `
`, route: route, title: "Loading", show: false } }