<?php

if (!function_exists('setting')) {
    function setting($key, $default = null)
    {
        try {
            return app(\App\Services\SettingsService::class)->get($key, $default);
        } catch (\Exception $e) {
            return $default;
        }
    }
}

if (!function_exists('hotelName')) {
    function hotelName()
    {
        return app(\App\Services\SettingsService::class)->getHotelName();
    }
}

if (!function_exists('hotelAddress')) {
    function hotelAddress()
    {
        return app(\App\Services\SettingsService::class)->getHotelAddress();
    }
}

if (!function_exists('hotelPhone')) {
    function hotelPhone()
    {
        return app(\App\Services\SettingsService::class)->getHotelPhone();
    }
}

if (!function_exists('hotelEmail')) {
    function hotelEmail()
    {
        return app(\App\Services\SettingsService::class)->getHotelEmail();
    }
}