mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/exchange-2.0.git
synced 2026-08-19 04:23:55 +00:00
Laravel Vapor - New UI for admin to download reports (sync code from Shipping Portal)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user