¨4.0.1¨
This commit is contained in:
@@ -7,18 +7,6 @@ use Modules\Shipping\Facades\ShippingMethod;
|
||||
|
||||
class ShippingReport extends Report
|
||||
{
|
||||
protected function view()
|
||||
{
|
||||
return 'report::admin.reports.shipping_report.index';
|
||||
}
|
||||
|
||||
protected function data()
|
||||
{
|
||||
return [
|
||||
'shippingMethods' => ShippingMethod::all(),
|
||||
];
|
||||
}
|
||||
|
||||
public function query()
|
||||
{
|
||||
return Order::select('shipping_method')
|
||||
@@ -31,4 +19,18 @@ class ShippingReport extends Report
|
||||
})
|
||||
->groupBy('shipping_method');
|
||||
}
|
||||
|
||||
|
||||
protected function view()
|
||||
{
|
||||
return 'report::admin.reports.shipping_report.index';
|
||||
}
|
||||
|
||||
|
||||
protected function data()
|
||||
{
|
||||
return [
|
||||
'shippingMethods' => ShippingMethod::all(),
|
||||
];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user