@extends('layouts.app') @php $userID = auth()->user() ? auth()->id() : 1; @endphp @section('content')
@if($cartItems->count() > 0)

My Cart

@forelse($cartItems as $cartItem) @empty
No Items in the cart
@endforelse
{{ $cartItem->name }}
@if(!empty($cartItem->size))

Size: {{ $cartItem->size}} | Color: {{ empty($cartItem->color) ? '' : $cartItem->color }}

@endif
@if(isset($cartItem->attributes['variant']->mrp) ) MRP {{ $cartItem->attributes['variant']->mrp }} @else MRP {{ $cartItem->associatedModel->price }} @endif
Our Price {{ Cart::session(cartSessionId())->get($cartItem->id)->price }} @if(!empty($offer_type)) @if($cartItem->id == $offer->item_id) @if($offer_type =='flat') (RS. {{$offer_amount}} OFF) @else ({{$offer_amount}}% OFF) @endif @endif @endif
Subtotal {{ $cartItem->getPriceSum()}}
{{--
@csrf
--}}
Total Items: @if(auth()->check()) {{ Cart::session(cartSessionId())->getContent()->count() }} @else {{ Cart::session(cartSessionId())->getContent()->count() }} @endif
@if($cartItems->count() > 0)
@csrf
@endif
  • Subtotal: {{ number_format($total, 2) }}

    You Saved: {{ number_format($totalSave, 2) }} ({{number_format($savePercentage, 2)}}% off)

  • @if(session('location.pincode') && \App\Models\Shipping::where('status', 1)->where('pincode', session('location.pincode'))->exists())
  • Shipping Cost: {{ \App\Models\Shipping::where('status', 1)->where('pincode', session('location.pincode'))->first()->price }}
  • @else
  • Service Fee / Shipping Cost: Calculated on Next Page
  • @endif

    Total:   {{ number_format($total, 2) }}

  • {{-- Go to checkout --}} Go to checkout
@else

Your Shopping Cart is Empty!!!

View Products
@endif
@endsection