Merged in afiqhamzah/feat/overall-report (pull request #11)

Fix reports query start on current day by default
This commit is contained in:
Afiq Hamzah
2023-12-04 02:28:49 +00:00
+3 -3
View File
@@ -15,19 +15,19 @@
<div class="ml-3 grid grid-cols-3">
<div
class="bg-white ml-2 shadow border border-solid px-6 py-4 rounded-lg hover:bg-yellow-300 hover:transition-all mb-2 cursor-pointer">
<a href="{{ route('reports.gadaian.index') }}" class="">
<a href="{{ route('reports.gadaian.index', ['startDate' => now()->toDateString(), 'endDate' => now()->toDateString()]) }}" class="">
<h2 class="mx-auto text-center font-bold text-2xl uppercase">Gadaian</h2>
</a>
</div>
<div
class="bg-white ml-2 shadow border border-solid px-6 py-4 rounded-lg hover:bg-yellow-300 hover:transition-all mb-2 cursor-pointer">
<a href="{{ route('reports.penebusan.index') }}" class="">
<a href="{{ route('reports.penebusan.index', ['startDate' => now()->toDateString(), 'endDate' => now()->toDateString()]) }}" class="">
<h2 class="mx-auto text-center font-bold text-2xl uppercase">Penebusan</h2>
</a>
</div>
<div
class="bg-white ml-2 shadow border border-solid px-6 py-4 rounded-lg hover:bg-yellow-300 hover:transition-all mb-2 cursor-pointer">
<a href="{{ route('reports.ansuran.index') }}" class="">
<a href="{{ route('reports.ansuran.index', ['startDate' => now()->toDateString(), 'endDate' => now()->toDateString()]) }}" class="">
<h2 class="mx-auto text-center font-bold text-2xl uppercase">Ansuran</h2>
</a>
</div>