@php use App\Models\Cart; use App\Models\CartShipping; use App\Models\ShippingType; use App\Utils\Helpers; use App\Utils\OrderManager; use App\Utils\ProductManager; use function App\Utils\get_shop_name; $shippingMethod = getWebConfig(name: 'shipping_method'); $cart = Cart::where(['customer_id' => (auth('customer')->check() ? auth('customer')->id() : session('guest_id'))])->with(['seller','allProducts.category'])->get()->groupBy('cart_group_id'); @endphp