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