fix: 🐛 set blade directives function in public #88

This commit is contained in:
Alexis Gousseau 2026-02-05 16:45:01 +01:00
parent 0048fcf0ab
commit e7db2d4523

View file

@ -15,7 +15,7 @@ class BladeDirectivesHelper
* @param mixed $value
* @return string
*/
private static function formatPriceValue($value): string
public static function formatPriceValue($value): string
{
if (is_float($value)) {
return sprintf('%s €', number_format($value, 2, ',', ' '));
@ -43,7 +43,7 @@ class BladeDirectivesHelper
*
* @return bool
*/
private static function shouldShowPrices(): bool
public static function shouldShowPrices(): bool
{
return (config('bosettings.show_prices_authenticated') === "authenticated" && Auth::guard('customer')->check())
|| config('bosettings.show_prices_guest') == "guest";