2026-01-05 21:43:00 +01:00
|
|
|
<?php
|
|
|
|
|
|
|
|
|
|
use App\Enums\AppModeEnum;
|
|
|
|
|
|
|
|
|
|
if (! function_exists('is_mode_app')) {
|
|
|
|
|
function is_mode_app(): bool
|
|
|
|
|
{
|
|
|
|
|
return AppModeEnum::current()->isApp();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (! function_exists('is_mode_saas')) {
|
|
|
|
|
function is_mode_saas(): bool
|
|
|
|
|
{
|
|
|
|
|
return AppModeEnum::current()->isSaas();
|
|
|
|
|
}
|
2026-01-08 00:37:33 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (! function_exists('is_mode_demo')) {
|
|
|
|
|
function is_mode_demo(): bool
|
|
|
|
|
{
|
|
|
|
|
return AppModeEnum::current()->isDemo();
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (! function_exists('allows_logout')) {
|
|
|
|
|
function allows_logout(): bool
|
|
|
|
|
{
|
|
|
|
|
return AppModeEnum::current()->allowsLogout();
|
|
|
|
|
}
|
2026-01-05 21:43:00 +01:00
|
|
|
}
|