view-counter
11 months ago
appearance.blade.php
11 months ago
block-by-role.blade.php
11 months ago
block-ips.blade.php
11 months ago
capabilities.blade.php
11 months ago
delete.blade.php
11 months ago
disable-admin-toolbar-analytics.blade.php
2 years ago
disable-views-column.blade.php
1 year ago
disable-widget.blade.php
2 years ago
email-reports.blade.php
11 months ago
export-reports.blade.php
11 months ago
first-day-of-week.blade.php
2 years ago
index.blade.php
2 years ago
pruner.blade.php
11 months ago
refresh-salt.blade.php
2 years ago
track-authenticated-users.blade.php
2 years ago
view-counter.blade.php
2 years ago
woocommerce.blade.php
11 months ago
export-reports.blade.php
73 lines
| 1 | @php /** @var \IAWP\Report_Finder $report_finder */ @endphp |
| 2 | |
| 3 | <div class="settings-container export-reports" data-controller="export-reports"> |
| 4 | <div class="heading"> |
| 5 | <h2><?php |
| 6 | esc_html_e('Export Report Settings', 'independent-analytics'); ?></h2> |
| 7 | <a class="tutorial-link" |
| 8 | href="https://independentwp.com/knowledgebase/dashboard/export-import-custom-reports/" |
| 9 | target="_blank"> |
| 10 | <?php |
| 11 | esc_html_e('Read Tutorial', 'independent-analytics'); ?> |
| 12 | </a> |
| 13 | </div> |
| 14 | <p class="setting-description"><?php |
| 15 | esc_html_e('Export any of your report settings, so they can be duplicated on another website running Independent Analytics.', 'independent-analytics'); ?></p> |
| 16 | <label> |
| 17 | <input type="checkbox" data-export-reports-target="selectAllCheckbox" |
| 18 | data-action="export-reports#handleToggleSelectAll"> |
| 19 | <?php |
| 20 | esc_html_e('Select all reports', 'independent-analytics'); ?> |
| 21 | </label> |
| 22 | <div class="reports"><?php |
| 23 | foreach ($report_finder->get_reports_grouped_by_type() as $report_type) : ?> |
| 24 | <div> |
| 25 | <h3><?php echo esc_html($report_type['base_report']->name()); ?></h3> |
| 26 | <ol><?php |
| 27 | if (count($report_type['saved_reports']) == 0) : ?> |
| 28 | <li class="empty"> |
| 29 | <p><?php esc_html_e('No reports found.', 'independent-analytics'); ?></p> |
| 30 | </li><?php |
| 31 | else : |
| 32 | foreach ($report_type['saved_reports'] as $report) : ?> |
| 33 | <li> |
| 34 | <label> |
| 35 | <input type="checkbox" name="report_id" value="<?php echo esc_attr($report->id()); ?>" |
| 36 | data-action="export-reports#handleToggleReport"> |
| 37 | <?php echo esc_html($report->name()); ?> |
| 38 | </label> |
| 39 | </li><?php |
| 40 | endforeach; |
| 41 | endif; ?> |
| 42 | </ol> |
| 43 | </div><?php |
| 44 | endforeach; ?> |
| 45 | </div> |
| 46 | <button class="iawp-button purple" data-export-reports-target="submitButton" |
| 47 | data-action="export-reports#export" disabled><?php |
| 48 | esc_html_e('Export Reports', 'independent-analytics'); ?> |
| 49 | </button> |
| 50 | </div> |
| 51 | |
| 52 | <div class="settings-container import-reports" data-controller="import-reports" |
| 53 | data-import-reports-database-version-value="<?php echo '43'; ?>"> |
| 54 | <div class="heading"> |
| 55 | <h2><?php |
| 56 | esc_html_e('Import Custom Reports', 'independent-analytics'); ?> |
| 57 | </h2> |
| 58 | <a class="tutorial-link" |
| 59 | href="https://independentwp.com/knowledgebase/dashboard/export-import-custom-reports/" |
| 60 | target="_blank"> |
| 61 | <?php |
| 62 | esc_html_e('Read Tutorial', 'independent-analytics'); ?> |
| 63 | </a> |
| 64 | </div> |
| 65 | <button class="iawp-button purple" data-import-reports-target="submitButton" |
| 66 | data-action="import-reports#import" disabled><?php |
| 67 | esc_html_e('Import Reports', 'independent-analytics'); ?> |
| 68 | </button> |
| 69 | <input type="file" accept="application/json" |
| 70 | data-action="import-reports#handleFileSelected click->import-reports#clearFileInput" |
| 71 | data-import-reports-target="fileInput"> |
| 72 | <p data-import-reports-target="warningMessage" style="display:none;"></p> |
| 73 | </div> |