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

This commit is contained in:
Wahyudin
2026-10-13 22:09:52 +07:00
parent 28a867581a
commit c9907e1866
3 changed files with 26 additions and 8 deletions
+2 -2
View File
@@ -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 py-2 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 py-2 text-slate-800 focus:outline-none focus:ring-2 focus:ring-[#1b5e20]/20 focus:border-[#1b5e20] transition">
</div>