{{-- The one filter row above a dashboard: date range presets, a custom range, and a CSV download. $range App\Services\Analytics\Range $keep other query parameters to keep (e.g. ['org' => 3]) $csv optional URL for the CSV of what is shown --}} @php $keep ??= []; @endphp
{{ $range->key === 'custom' ? $range->label : 'Custom dates' }}
@foreach ($keep as $k => $v)@endforeach
{{ $range->from->format('M j, Y') }} – {{ $range->to->format('M j, Y') }} · compared with the {{ $range->days() }} days before · US Eastern time @if (! empty($csv))Download CSV@endif