view-counter
1 year ago
block-by-role.blade.php
1 year ago
block-ips.blade.php
1 year ago
capabilities.blade.php
1 year ago
dark-mode.blade.php
2 years ago
delete.blade.php
1 year 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
1 year ago
export-data.blade.php
2 years ago
export-reports.blade.php
2 years ago
first-day-of-week.blade.php
2 years ago
index.blade.php
2 years ago
notice.blade.php
2 years ago
pruner.blade.php
1 year 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
1 year ago
export-reports.blade.php
51 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 esc_html_e('Export Custom Reports', 'independent-analytics'); ?></h2> |
| 6 | <a class="tutorial-link" href="https://independentwp.com/knowledgebase/dashboard/export-import-custom-reports/" target="_blank"> |
| 7 | <?php esc_html_e('Read Tutorial', 'independent-analytics'); ?> |
| 8 | </a> |
| 9 | </div> |
| 10 | <p class="setting-description"><?php esc_html_e('Export your custom reports, so you can import them to another website running Independent Analytics.', 'independent-analytics'); ?></p> |
| 11 | <label> |
| 12 | <input type="checkbox" data-export-reports-target="selectAllCheckbox" data-action="export-reports#handleToggleSelectAll"> |
| 13 | <?php esc_html_e('Select all reports', 'independent-analytics'); ?> |
| 14 | </label> |
| 15 | |
| 16 | <div class="reports"> |
| 17 | @foreach($report_finder->fetch_reports_by_type() as $report_type) |
| 18 | <div> |
| 19 | <h3>{{$report_type['name']}}</h3> |
| 20 | <ol> |
| 21 | @forelse($report_type['reports'] as $report) |
| 22 | <li> |
| 23 | <label> |
| 24 | <input type="checkbox" name="report_id" value="{{$report->id()}}" data-action="export-reports#handleToggleReport"> |
| 25 | {{$report->name()}} |
| 26 | </label> |
| 27 | </li> |
| 28 | @empty |
| 29 | <li class="empty"> |
| 30 | <p><?php esc_html_e('No reports found', 'independent-analytics'); ?></p> |
| 31 | </li> |
| 32 | @endforelse |
| 33 | </ol> |
| 34 | </div> |
| 35 | @endforeach |
| 36 | </div> |
| 37 | |
| 38 | <button class="iawp-button purple" data-export-reports-target="submitButton" data-action="export-reports#export" disabled><?php esc_html_e('Export Reports', 'independent-analytics'); ?></button> |
| 39 | </div> |
| 40 | |
| 41 | <div class="settings-container import-reports" data-controller="import-reports" data-import-reports-database-version-value="{{'33'}}"> |
| 42 | <div class="heading"> |
| 43 | <h2><?php esc_html_e('Import Custom Reports', 'independent-analytics'); ?></h2> |
| 44 | <a class="tutorial-link" href="https://independentwp.com/knowledgebase/dashboard/export-import-custom-reports/" target="_blank"> |
| 45 | <?php esc_html_e('Read Tutorial', 'independent-analytics'); ?> |
| 46 | </a> |
| 47 | </div> |
| 48 | <button class="iawp-button purple" data-import-reports-target="submitButton" data-action="import-reports#import" disabled><?php esc_html_e('Import Reports', 'independent-analytics'); ?></button> |
| 49 | <input type="file" accept="application/json" data-action="import-reports#handleFileSelected click->import-reports#clearFileInput" data-import-reports-target="fileInput"> |
| 50 | <p data-import-reports-target="warningMessage" style="display:none;"></p> |
| 51 | </div> |