Laravel Vapor - New UI for admin to download reports (sync code from Shipping Portal)

This commit is contained in:
Dillon Ngo
2024-10-12 17:50:07 +08:00
parent e55c2bd1d6
commit b42c1071e1
2 changed files with 2 additions and 2 deletions
@@ -52,7 +52,7 @@ class ExportsAnalyticBookingTransactions implements FromQuery, WithHeadings, Wit
*/
public function query()
{
return Booking::query()->whereBetween('created_at', [Carbon::now()->subMonths(2), Carbon::now()]); //Limit, 'expensive' query;
return Booking::query()->whereBetween('created_at', [Carbon::now()->subDays(45), Carbon::now()]); //Limit, 'expensive' query;
}
/**
@@ -40,7 +40,7 @@
<div class="card-body d-flex justify-content-between align-items-center">
<div>
<span>bookingData.csv</span>
<p class="text-muted mb-0">(last 2 months)</p>
<p class="text-muted mb-0">(last 45 days)</p>
</div>
<open-link-in-new-tab-component custom-class="btn btn-primary" :url="route('bookingData.export')">
<i class="fa fa-download"></i> Download