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
layout.blade.php
41 lines
| 1 | @php /** @var \IAWP\Env $env */ @endphp |
| 2 | @php /** @var \IAWP\Overview\Modules\Module $module */ @endphp |
| 3 | @php /** @var bool $is_loaded */ @endphp |
| 4 | @php /** @var bool $is_empty */ @endphp |
| 5 | @php /** @var ?array $dataset */ @endphp |
| 6 | |
| 7 | <div class="iawp-module {{ $module->is_full_width() ? 'full-width' : '' }}" |
| 8 | data-controller="module" |
| 9 | data-module-module-id-value="{{ esc_attr($module->id()) }}" |
| 10 | data-module-has-dataset-value="{{ $module->has_dataset() ? 'true' : 'false' }}" |
| 11 | > |
| 12 | <header class="module-header"> |
| 13 | <div class="module-icon"> |
| 14 | @include('icons.overview.' . $module->module_type()) |
| 15 | </div> |
| 16 | <div class="module-title-container"> |
| 17 | <h2>{{ sanitize_text_field($module->name()) }}</h2> |
| 18 | <p>{{ sanitize_text_field($module->subtitle()) }}</p> |
| 19 | </div> |
| 20 | <div class="module-action-links"> |
| 21 | <button data-action="module#edit" class="edit-module-button"><span class="dashicons dashicons-admin-generic"></span></button> |
| 22 | <button data-action="module#toggleWidth" class="toggle-width-button"><span class="dashicons dashicons-columns"></span></button> |
| 23 | <button data-action="module#delete" class="delete-module-button"><span class="dashicons dashicons-trash"></span></button> |
| 24 | </div> |
| 25 | </header> |
| 26 | <div class="module-contents"> |
| 27 | <div class="{{ esc_attr($module->module_type()) }} {{ $is_loaded ? "is-loaded" : "is-loading" }} {{ $is_empty ? "is-empty" : "" }}"> |
| 28 | @if($is_empty) |
| 29 | @hasSection('empty') |
| 30 | @yield('empty') |
| 31 | @else |
| 32 | {{-- Show the content if they didn't provide an empty view --}} |
| 33 | @yield('content') |
| 34 | @endif |
| 35 | @else |
| 36 | @yield('content') |
| 37 | @endif |
| 38 | </div> |
| 39 | </div> |
| 40 | </div> |
| 41 |