fix: 🐛 set blade directives function in public #88
This commit is contained in:
parent
0048fcf0ab
commit
e7db2d4523
1 changed files with 2 additions and 2 deletions
|
|
@ -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";
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue