busiest-day-of-week.blade.php
1 year ago
busiest-time-of-day.blade.php
1 year ago
layout.blade.php
1 year ago
line-chart.blade.php
1 year ago
map.blade.php
1 year ago
new-sessions.blade.php
1 year ago
pie-chart.blade.php
1 year ago
quick-stats.blade.php
1 year ago
recent-conversions.blade.php
1 year ago
recent-views.blade.php
1 year ago
top-ten.blade.php
1 year ago
quick-stats.blade.php
40 lines
| 1 | @php /** @var \IAWP\Env $env */ @endphp |
| 2 | @php /** @var \IAWP\Overview\Modules\Quick_Stats_Module $module */ @endphp |
| 3 | @php /** @var bool $is_loaded */ @endphp |
| 4 | @php /** @var ?array $dataset */ @endphp |
| 5 | |
| 6 | @extends('overview.modules.layout') |
| 7 | |
| 8 | @section('content') |
| 9 | @if($is_loaded) |
| 10 | <div class="iawp-stats total-of-{{ count($dataset) }}"> |
| 11 | @foreach($dataset as $quick_stat) |
| 12 | {!! |
| 13 | iawp_blade()->run('quick-stat', [ |
| 14 | 'id' => $quick_stat['id'], |
| 15 | 'name' => $quick_stat['name'], |
| 16 | 'formatted_value' => $quick_stat['formatted_value'], |
| 17 | 'formatted_unfiltered_value' => $quick_stat['formatted_unfiltered_value'], |
| 18 | 'growth' => $quick_stat['growth'], |
| 19 | 'formatted_growth' => $quick_stat['formatted_growth'], |
| 20 | 'growth_html_class' => $quick_stat['growth_html_class'], |
| 21 | 'icon' => $quick_stat['icon'] ?? null, |
| 22 | 'is_visible' => true |
| 23 | ]) |
| 24 | !!} |
| 25 | @endforeach |
| 26 | </div> |
| 27 | @else |
| 28 | <div class="iawp-stats total-of-{{ count($module->selected_stats()) }}"> |
| 29 | @foreach($module->selected_stats() as $quick_stat) |
| 30 | {!! |
| 31 | iawp_blade()->run('quick-stat-loading', [ |
| 32 | 'id' => $quick_stat['id'], |
| 33 | 'name' => $quick_stat['name'], |
| 34 | 'icon' => $quick_stat['icon'] ?? null |
| 35 | ]) |
| 36 | !!} |
| 37 | @endforeach |
| 38 | </div> |
| 39 | @endif |
| 40 | @endsection |