@php $statistics = featureStatistics($trxType); $title = __('7-Day :type Summary', ['type' => $trxType->label()]); $currencySymbol = siteCurrency('symbol'); $collapseId = 'featureStatsCollapse-' . \Illuminate\Support\Str::slug((string) $trxType->value); @endphp
{{ $title }}

{{ __('Weekly snapshot of completed, pending, and failed volume.') }}

{{ __('Note: Rolling 7-day window') }}
@foreach($statistics as $statistic) @php $changeValue = (float) $statistic['value_change']; $formattedValue = $currencySymbol . number_format((float) $statistic['value'], siteDecimalPlaces()); if ($changeValue > 0) { $changeClass = 'positive'; $iconName = 'chart-up'; $formattedChange = '+' . $currencySymbol . number_format($changeValue, siteDecimalPlaces()); } elseif ($changeValue < 0) { $changeClass = 'negative'; $iconName = 'chart-down'; $formattedChange = '-' . $currencySymbol . number_format(abs($changeValue), siteDecimalPlaces()); } else { $changeClass = 'info'; $iconName = 'chart'; $formattedChange = $currencySymbol . number_format($changeValue, siteDecimalPlaces()); } @endphp
$statistic['color_class'] === 'success-svg', 'feature-summary-widget__card--info' => $statistic['color_class'] === 'info-svg', 'feature-summary-widget__card--danger' => $statistic['color_class'] === 'danger-svg', ])>
{{ $statistic['title'] }}
{{ $formattedValue }}
{{ $formattedChange }} {{ __('Compared to prior 7 days') }}
@endforeach