<?php

function render($file, $data = [])
{
    extract($data);
    include $file;
}

function variables()
{
    $variables = [
        "title" => "Mandala Hill Private Pool Villa Estate",
        "whatsapp" => [
            "link" => "#",
            "text" => "+62 813 3988 8091"
        ],
        "email" => [
            "link" => "mailto:hello@mandalahillvilla.com",
            "text" => "hello@mandalahillvilla.com"
        ],
        "address" => [
            "link" => "https://maps.app.goo.gl/kxWzLwcnXcsins2W6",
            "text" => "Benoa, Kec. Kuta Sel., Kabupaten Badung, Bali 80361"
        ],
        "facebook" => [
            "link" => "#",
            "text" => "Mandala Hill Private Pool Villa Estate"
        ],
        "instagram" => [
            "link" => "https://www.instagram.com/mandalahillvilla",
            "text" => "@mandalahillvilla"
        ],
        "tripadvisor" => [
            "link" => "#",
            "text" => "Mandala Hill Private Pool Villa Estate"
        ],
        "booking" => [
            "link" => "https://www.booknpay.net/banner.php?hid=U1JTMDEwMjA," 
        ],
        "recaptcha" => [
            "site" => "6LdF5LIrAAAAAK1-YavmuDBDokogVYmLxFYKOWPx",
            "secret" => "6LdF5LIrAAAAAPTLsXB26JP9TUfRxw_Bdq4fChJO"
        ]
    ];

    return $variables;
}

function asset($path)
{
    return "/assets/" . $path;
}

function base_url()
{
    return "https://client.booknpay.net/mandalahillvilla/";
}