view-counter
2 years ago
block-by-role.blade.php
2 years ago
block-ips.blade.php
2 years ago
capabilities.blade.php
2 years ago
dark-mode.blade.php
2 years ago
delete.blade.php
2 years ago
disable-admin-toolbar-analytics.blade.php
2 years ago
disable-widget.blade.php
2 years ago
email-reports.blade.php
2 years 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
track-authenticated-users.blade.php
2 years ago
view-counter.blade.php
2 years ago
export-reports.blade.php
41 lines
| 1 | @php /** @var \IAWP\Report_Finder $report_finder */ @endphp |
| 2 | |
| 3 | <div class="settings-container export-reports" data-controller="export-reports"> |
| 4 | <h2>{{__('Export Reports', 'independent-analytics')}}</h2> |
| 5 | |
| 6 | <label> |
| 7 | <input type="checkbox" data-export-reports-target="selectAllCheckbox" data-action="export-reports#handleToggleSelectAll"> |
| 8 | {{__('Select all reports', 'independent-analytics')}} |
| 9 | </label> |
| 10 | |
| 11 | <div class="reports"> |
| 12 | @foreach($report_finder->fetch_reports_by_type() as $report_type) |
| 13 | <div> |
| 14 | <h3>{{$report_type['name']}}</h3> |
| 15 | <ol> |
| 16 | @forelse($report_type['reports'] as $report) |
| 17 | <li> |
| 18 | <label> |
| 19 | <input type="checkbox" name="report_id" value="{{$report->id()}}" data-action="export-reports#handleToggleReport"> |
| 20 | {{$report->name()}} |
| 21 | </label> |
| 22 | </li> |
| 23 | @empty |
| 24 | <li class="empty"> |
| 25 | <p>No reports found</p> |
| 26 | </li> |
| 27 | @endforelse |
| 28 | </ol> |
| 29 | </div> |
| 30 | @endforeach |
| 31 | </div> |
| 32 | |
| 33 | <button class="iawp-button purple" data-export-reports-target="submitButton" data-action="export-reports#export" disabled>{{__('Export Reports', 'independent-analytics')}}</button> |
| 34 | </div> |
| 35 | |
| 36 | <div class="settings-container import-reports" data-controller="import-reports" data-import-reports-database-version-value="{{'19'}}"> |
| 37 | <h2>{{__('Import Reports', 'independent-analytics')}}</h2> |
| 38 | <button class="iawp-button purple" data-import-reports-target="submitButton" data-action="import-reports#import" disabled>{{__('Import Reports', 'independent-analytics')}}</button> |
| 39 | <input type="file" accept="application/json" data-action="import-reports#handleFileSelected click->import-reports#clearFileInput" data-import-reports-target="fileInput"> |
| 40 | <p data-import-reports-target="warningMessage" style="display:none;"></p> |
| 41 | </div> |