<?php

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

function variables()
{
    $variables = [
        "title" => "Asa Bali Luxury Villas",
        "whatsapp" => [
            "link" => "#",
            "text" => "(+62 361) 739 224"
        ],
        "email" => [
            "link" => "mailto:info@asabaliluxuryvillas.com",
            "text" => "info@asabaliluxuryvillas.com"
        ],
        "address" => [
            "link" => "https://maps.app.goo.gl/jxvqX5J1edpwTZUPA",
            "text" => "Jl. Yudhistira, Seminyak, Kuta, 80361, Bali - Indonesia"
        ],
        "facebook" => [
            "link" => "https://www.facebook.com/asabali.villas",
            "text" => "Asa Bali Villas"
        ],
        "instagram" => [
            "link" => "https://www.instagram.com/asabalivillas",
            "text" => "@asabalivillas"
        ],
        "tripadvisor" => [
            "link" => "https://www.tripadvisor.co.id/Hotel_Review-g469404-d4878765-Reviews-Asa_Bali_Luxury_Villas_Spa-Seminyak_Kuta_District_Bali.html",
            "text" => "Asa Bali Luxury Villas & Spa"
        ],
        "booking" => [
            "link" => "https://www.booknpay.net/banner.php?hid=U1JTMDA4NDI," 
        ]
    ];

    return $variables;
}

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

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