Changeset View
Changeset View
Standalone View
Standalone View
src/app/Utils.php
Show First 20 Lines • Show All 378 Lines • ▼ Show 20 Lines | public static function uiEnv(): array | ||||
$env = \app('config')->getMany($opts); | $env = \app('config')->getMany($opts); | ||||
$env['countries'] = $countries ?: []; | $env['countries'] = $countries ?: []; | ||||
$env['view'] = 'root'; | $env['view'] = 'root'; | ||||
$env['jsapp'] = 'user.js'; | $env['jsapp'] = 'user.js'; | ||||
if ($req_domain == "admin.$sys_domain") { | if ($req_domain == "admin.$sys_domain") { | ||||
$env['jsapp'] = 'admin.js'; | $env['jsapp'] = 'admin.js'; | ||||
} elseif ($req_domain == "reseller.$sys_domain") { | |||||
$env['jsapp'] = 'reseller.js'; | |||||
} | } | ||||
$env['paymentProvider'] = \config('services.payment_provider'); | $env['paymentProvider'] = \config('services.payment_provider'); | ||||
$env['stripePK'] = \config('services.stripe.public_key'); | $env['stripePK'] = \config('services.stripe.public_key'); | ||||
$theme_file = resource_path("themes/{$env['app.theme']}/theme.json"); | $theme_file = resource_path("themes/{$env['app.theme']}/theme.json"); | ||||
$menu = []; | $menu = []; | ||||
Show All 15 Lines |