authorizeTmsAccess('tms.view'); $business = $this->tmsUtil->getBusiness(); if (! $business) { abort(404); } $stats = $this->dashboardService->getStats($business); $recent_shipments = $this->dashboardService->getRecentShipments($business); $statuses = $this->tmsUtil->shipmentStatuses(); $customs_statuses = $this->tmsUtil->customsStatuses(); return view('tms::dashboard.index', compact('stats', 'recent_shipments', 'statuses', 'customs_statuses')); } }