view-counter
1 year ago
appearance.blade.php
1 year ago
block-by-role.blade.php
2 years ago
block-ips.blade.php
1 year ago
capabilities.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
2 years ago
disable-widget.blade.php
2 years ago
email-reports.blade.php
1 year ago
export-reports.blade.php
1 year ago
first-day-of-week.blade.php
2 years ago
index.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
80 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( |
| 16 | 'Export any of your report settings, so they can be duplicated on another website running Independent Analytics.', |
| 17 | 'independent-analytics' |
| 18 | ); ?></p> |
| 19 | <label> |
| 20 | <input type="checkbox" data-export-reports-target="selectAllCheckbox" |
| 21 | data-action="export-reports#handleToggleSelectAll"> |
| 22 | <?php |
| 23 | esc_html_e('Select all reports', 'independent-analytics'); ?> |
| 24 | </label> |
| 25 | |
| 26 | <div class="reports"> |
| 27 | @foreach($report_finder->get_reports_grouped_by_type() as $report_type) |
| 28 | <div> |
| 29 | <h3>{{$report_type['base_report']->name()}}</h3> |
| 30 | <ol> |
| 31 | @forelse($report_type['saved_reports'] as $report) |
| 32 | <li> |
| 33 | <label> |
| 34 | <input type="checkbox" name="report_id" value="{{$report->id()}}" |
| 35 | data-action="export-reports#handleToggleReport"> |
| 36 | {{$report->name()}} |
| 37 | </label> |
| 38 | </li> |
| 39 | @empty |
| 40 | <li class="empty"> |
| 41 | <p><?php |
| 42 | esc_html_e('No reports found', 'independent-analytics'); ?></p> |
| 43 | </li> |
| 44 | @endforelse |
| 45 | </ol> |
| 46 | </div> |
| 47 | @endforeach |
| 48 | </div> |
| 49 | |
| 50 | <button class="iawp-button purple" data-export-reports-target="submitButton" |
| 51 | data-action="export-reports#export" disabled><?php |
| 52 | esc_html_e( |
| 53 | 'Export Reports', |
| 54 | 'independent-analytics' |
| 55 | ); ?></button> |
| 56 | </div> |
| 57 | |
| 58 | <div class="settings-container import-reports" data-controller="import-reports" |
| 59 | data-import-reports-database-version-value="{{'43'}}"> |
| 60 | <div class="heading"> |
| 61 | <h2><?php |
| 62 | esc_html_e('Import Custom Reports', 'independent-analytics'); ?></h2> |
| 63 | <a class="tutorial-link" |
| 64 | href="https://independentwp.com/knowledgebase/dashboard/export-import-custom-reports/" |
| 65 | target="_blank"> |
| 66 | <?php |
| 67 | esc_html_e('Read Tutorial', 'independent-analytics'); ?> |
| 68 | </a> |
| 69 | </div> |
| 70 | <button class="iawp-button purple" data-import-reports-target="submitButton" |
| 71 | data-action="import-reports#import" disabled><?php |
| 72 | esc_html_e( |
| 73 | 'Import Reports', |
| 74 | 'independent-analytics' |
| 75 | ); ?></button> |
| 76 | <input type="file" accept="application/json" |
| 77 | data-action="import-reports#handleFileSelected click->import-reports#clearFileInput" |
| 78 | data-import-reports-target="fileInput"> |
| 79 | <p data-import-reports-target="warningMessage" style="display:none;"></p> |
| 80 | </div> |