Your Cart
@php
if (auth()->check()) {
$cartData = isset($cartData) ? $cartData : \App\Models\Cart::with('product')->where('user_id', auth()->id())->get();
} else {
$cartData = collect();
}
$price=0;
foreach ($cartData as $key => $value) {
$price+= $value->variant->price * $value->quantity;
}
@endphp
@forelse($cartData as $item)
{{$item->quantity}}
@php
$images = explode(',', $item->product->images);
$first_img = $images[0];
@endphp
₹ {{formatIndianNumber($item->variant->price) ?? ''}}
Your Cart is Empty
@endforelse {{--New Customer?
Create an account with us and you’ll be able to:
- Check out faster
- Save multiple shipping anddesses
- Access your order history
- Track new orders
- Save items to your Wishlist
Total Price
₹ {{formatIndianNumber($price-$bundle_amount) ?? ''}}
Bundle Discount
@if($unique_category_count == 2)
5
@elseif($unique_category_count == 3)
8
@elseif($unique_category_count > 3)
10
@endif
% off ( ₹{{$bundle_amount ?? ''}} )