diff --git a/app/Filament/Widgets/RecentActivity.php b/app/Filament/Widgets/RecentActivity.php index 73c7d00..96fd0f0 100644 --- a/app/Filament/Widgets/RecentActivity.php +++ b/app/Filament/Widgets/RecentActivity.php @@ -16,7 +16,8 @@ class RecentActivity extends Widget implements Tables\Contracts\HasTable protected int | string | array $columnSpan = 'full'; - protected function formatAmount ($value) { + protected function formatAmount($value) + { $currency = auth()->user()->currency ? auth()->user()->currency : 'usd'; return Currency::find($currency)->format($value, true); } diff --git a/app/Filament/Widgets/StatsOverview.php b/app/Filament/Widgets/StatsOverview.php index fcd697e..c849f59 100644 --- a/app/Filament/Widgets/StatsOverview.php +++ b/app/Filament/Widgets/StatsOverview.php @@ -14,7 +14,8 @@ class StatsOverview extends BaseWidget protected int $total_expense = 0; protected int $total_revenue = 0; - protected function formatAmount ($value) { + protected function formatAmount($value) + { $currency = auth()->user()->currency ? auth()->user()->currency : 'usd'; return Currency::find($currency)->format($value, true); } @@ -29,9 +30,9 @@ protected function getCards(): array Card::make('Total Income', $this->formatAmount($this->total_income)), Card::make('Total Expense', $this->formatAmount($this->total_expense)), Card::make('Total Revenue', $this->formatAmount($this->total_revenue)) - ->description($this->total_revenue > 0 ? 'Profit' : 'Loss') - ->descriptionIcon($this->total_revenue > 0 ? 'heroicon-s-trending-up' : 'heroicon-s-trending-down') - ->color($this->total_revenue > 0 ? 'success' : 'danger'), + // ->description($this->total_revenue > 0 ? 'Profit' : 'Loss') + // ->descriptionIcon($this->total_revenue > 0 ? 'heroicon-s-trending-up' : 'heroicon-s-trending-down') + // ->color($this->total_revenue > 0 ? 'success' : 'danger'), ]; } }