@foreach(request()->except(['from','to','page']) as $key => $value) @if(is_array($value)) @foreach($value as $v)@endforeach @else @endif @endforeach
{{-- Quick Ranges --}}
@php $ranges = [ 'Today' => [today()->format('Y-m-d'), today()->format('Y-m-d')], 'Yesterday' => [today()->subDay()->format('Y-m-d'), today()->subDay()->format('Y-m-d')], 'This Week' => [now()->startOfWeek()->format('Y-m-d'), now()->endOfWeek()->format('Y-m-d')], 'This Month'=> [now()->startOfMonth()->format('Y-m-d'), now()->endOfMonth()->format('Y-m-d')], 'Last Month'=> [now()->subMonth()->startOfMonth()->format('Y-m-d'), now()->subMonth()->endOfMonth()->format('Y-m-d')], 'This Year' => [now()->startOfYear()->format('Y-m-d'), now()->endOfYear()->format('Y-m-d')], ]; @endphp @foreach($ranges as $label => [$f, $t]) {{ $label }} @endforeach
@if(isset($extraFilters)) {!! $extraFilters ?? '' !!} @endif