diff --git a/app/Providers/ViewServiceProvider.php b/app/Providers/ViewServiceProvider.php
index 4f27eb5f..6a70052b 100644
--- a/app/Providers/ViewServiceProvider.php
+++ b/app/Providers/ViewServiceProvider.php
@@ -47,8 +47,9 @@ class ViewServiceProvider extends ServiceProvider
$view->with('viewName', $view->getName());
});
- Blade::directive('money', function (string|int $amount) {
- return "app('phpMoneyFormatter')->format(new Money({$amount}, app('phpMoneyCurrency')))";
+ Blade::directive('money', function (string $amountVariable) {
+ // phpcs:ignore Generic.Files.LineLength.TooLong
+ return "format(new Money({$amountVariable}, app('phpMoneyCurrency')))); ?>";
});
// * Inject menuNodeList
diff --git a/resources/views/club/partials/card-club-home.blade.php b/resources/views/club/partials/card-club-home.blade.php
index 1b9eb3bb..2497705b 100644
--- a/resources/views/club/partials/card-club-home.blade.php
+++ b/resources/views/club/partials/card-club-home.blade.php
@@ -12,7 +12,7 @@
])>{{ $line2 }}
@if (!empty($promoAmount))
- {{ @money($promoAmount) }}
+ @money($promoAmount)
@endif
@if (!empty($membersAmount))
{{ number_format($membersAmount, 0, ',', ' ') }} {{ __('membres') }}