@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::whereHas('product', function ($query) { return $query->active(); })->where(['customer_id' => (auth('customer')->check() ? auth('customer')->id() : session('guest_id'))])->with(['seller','allProducts.category']) ->get() ->groupBy('cart_group_id'); @endphp

{{ translate('cart_list') }}

  • {{ translate('cart') }}
  • {{ translate('shopping_details') }}
  • {{ translate('payment') }}
@if(count($cart)==0) @php $physical_product = false; @endphp @endif @foreach($cart as $group_key=>$group) @php $physical_product = false; foreach ($group as $row) { if ($row->product_type == 'physical' && $row->is_checked) { $physical_product = true; } } @endphp
@foreach($group as $cart_key=>$cartItem) @if ($shippingMethod=='inhouse_shipping')