attributes->get('actingAccount') ?? $request->user(); } } if (! function_exists('ladill_domains_url')) { function ladill_domains_url(string $path = ''): string { return 'https://'.config('app.domains_domain').($path !== '' ? '/'.ltrim($path, '/') : ''); } } if (! function_exists('ladill_account_url')) { function ladill_account_url(string $path = ''): string { return 'https://'.config('app.account_domain').($path !== '' ? '/'.ltrim($path, '/') : ''); } } if (! function_exists('pos_money')) { function pos_money(?int $minor, ?string $currency = null): string { $currency = $currency ?: config('pos.default_currency', 'GHS'); return $currency.' '.number_format(((int) $minor) / 100, 2); } }