@php /** @var \IAWP\Plugin_Group[] $plugin_groups */ @endphp
@php /** @var \IAWP\Statistics\Statistic[] $statistics */ @endphp
@php /** @var bool $is_dashboard_widget */ @endphp
@if(!$is_dashboard_widget)
{!!
iawp_blade()->run('plugin-group-options', [
'option_type' => 'quick_stats',
'option_name' => __('Toggle Stats', 'independent-analytics'),
'option_icon' => 'visibility',
'plugin_groups' => $plugin_groups,
'options' => $statistics,
])
!!}
@endif
{{-- Quick stats --}}
@foreach($statistics as $statistic)
@if($is_dashboard_widget && !$statistic->is_visible_in_dashboard_widget())
@continue
@endif
@if(!$statistic->is_group_plugin_enabled())
@continue
@endif
{{ $statistic->name() }}
@if(!is_null($statistic->icon()))
{!! iawp_icon($statistic->icon()) !!}
@endif
{!! wp_kses($statistic->formatted_value(), ['span' => []]) !!}
@if($statistic->formatted_unfiltered_value())
/ {!! wp_kses($statistic->formatted_unfiltered_value(), ['span' => []]) !!}
@endif
{{ $statistic->formatted_growth() }}
{{ __('vs. previous period', 'independent-analytics') }}
@endforeach