{{-- Quick date presets for the Reports filters — mirrors the CDR page look. Expects $from and $to (Y-m-d) in scope. Must be placed INSIDE the report's
(it sets the form's name="from"/name="to" inputs and submits). --}} @php $pToday = now()->format('Y-m-d'); $pYesterday = now()->subDay()->format('Y-m-d'); $pLast7 = now()->subDays(6)->format('Y-m-d'); $pLast30 = now()->subDays(29)->format('Y-m-d'); $pMonth = now()->startOfMonth()->format('Y-m-d'); @endphp
Quick Date Presets