feat(qma): default start_date and end_date to today on activity summary

This commit is contained in:
Wahyudin
2026-10-13 22:00:17 +07:00
parent 5ded9fcb72
commit 28a867581a
2 changed files with 12 additions and 5 deletions
@@ -112,7 +112,7 @@
</label>
<input type="date"
name="start_date"
value="{{ request('start_date') }}"
value="{{ request('start_date', $startDate ?? now()->format('Y-m-d')) }}"
onchange="this.form.submit()"
class="w-full text-xs rounded-xl border border-slate-200 bg-slate-50/50 hover:bg-white focus:bg-white px-3.5 py-2.5 text-slate-800 focus:outline-none focus:ring-2 focus:ring-[#1b5e20]/20 focus:border-[#1b5e20] transition">
</div>
@@ -124,7 +124,7 @@
</label>
<input type="date"
name="end_date"
value="{{ request('end_date') }}"
value="{{ request('end_date', $endDate ?? now()->format('Y-m-d')) }}"
onchange="this.form.submit()"
class="w-full text-xs rounded-xl border border-slate-200 bg-slate-50/50 hover:bg-white focus:bg-white px-3.5 py-2.5 text-slate-800 focus:outline-none focus:ring-2 focus:ring-[#1b5e20]/20 focus:border-[#1b5e20] transition">
</div>