mirror of
https://gitlab.com/CIEFWorldwideSdnBhd/shipping-portal.git
synced 2026-08-19 04:24:12 +00:00
temp show specific report period
This commit is contained in:
@@ -52,7 +52,7 @@ class MonthlyReportController
|
||||
'containers' => count($containers),
|
||||
'activated_orders' => count($orders),
|
||||
'active_customers' => count($customers),
|
||||
'new_customers' => CompanyModule::where('type', BusinessType::IMPORTER)->whereMonth('created_at', $today->format('m'))->whereYear('created_at', $today->format('Y'))->count(),
|
||||
'new_customers' => CompanyModule::where('type', BusinessType::IMPORTER)->whereDay('created_at', '>=', 1)->whereDay('created_at', '<=', 5)->whereMonth('created_at', $today->format('m'))->whereYear('created_at', $today->format('Y'))->count(),
|
||||
'new_converted_customers' => CompanyModule::where('type', BusinessType::IMPORTER)->whereMonth('created_at', $today->format('m'))->whereYear('created_at', $today->format('Y'))->whereHas('orders', function($order){
|
||||
return $order->whereHas('packingLists');
|
||||
})->count(),
|
||||
|
||||
Reference in New Issue
Block a user