Skip to content

Commit

Permalink
Update StatsOverviewWidget.php
Browse files Browse the repository at this point in the history
  • Loading branch information
danharrin committed Nov 29, 2023
1 parent 9719c9c commit d7849c4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/Filament/Widgets/StatsOverviewWidget.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,9 @@ protected function getStats(): array

$diffInDays = $startDate ? $startDate->diffInDays($endDate) : 0;

$revenue = $startDate ? ($diffInDays * $businessCustomerMultiplier * 137) : 192100;
$newCustomers = $startDate ? ($diffInDays * $businessCustomerMultiplier * 7) : 1340;
$newOrders = $startDate ? ($diffInDays * $businessCustomerMultiplier * 13) : 3543;
$revenue = ($startDate ? ($diffInDays * 137) : 192100) * $businessCustomerMultiplier;
$newCustomers = ($startDate ? ($diffInDays * 7) : 1340) * $businessCustomerMultiplier;
$newOrders = ($startDate ? ($diffInDays * 13) : 3543) * $businessCustomerMultiplier;

$formatNumber = function (int $number): string {
if ($number < 1000) {
Expand Down

0 comments on commit d7849c4

Please sign in to comment.