$cart->getRouteKey(), 'key' => [ 'public' => $cart->getPublicKey(), 'route' => $cart->getRouteKey(), ], 'instance' => $cart->instance, 'content' => $cart->content, 'total' => $cart->total, 'subtotal' => $cart->subtotal, 'tax' => $cart->tax, 'discount' => $cart->discount, 'count' => $cart->count, 'user_id' => $cart->user_id, 'user_type' => $cart->user_type, 'deleted_at' => $cart->deleted_at, 'url' => [ 'public' => trans_url('cart/'.$cart->getPublicKey()), 'user' => guard_url('cart/cart/'.$cart->getRouteKey()), ], 'status' => trans('app.'.$cart->status), 'created_at' => format_date($cart->created_at), 'updated_at' => format_date($cart->updated_at), ]; } }