authorize('viewAnyOwn', Order::class); $customer = $this->authService->getCustomerAsMandatory(); $pagination = $request->pagination(); $orders = $this->orderService->paginateOrdersFor( $customer, $pagination, ); return view('fo.customer.orders.index', compact( 'orders' )); } public function show(Order $order): View { $this->authorize('viewOwn', $order); $order->load(['lines']); $mapUrl = $this->mapUrlService->generateUrl($order->delivery_address); return view('fo.customer.orders.show', compact( 'order', 'mapUrl' )); } }