@if (session()->has('success_message'))
@endif
@if (auth()->user()->cart->count() > 0)
@endif
{{ session()->get('success_message') }}
@endif
@if(count($errors) > 0)
-
@foreach ($errors->all() as $error)
- {{ $error }} @endforeach
{{auth()->user()->cart->sum('quantity')}} item(s) in Shopping Cart
@endif
@if (auth()->user()->cart->count() > 0)
@endforeach
@foreach (auth()->user()->cart as $item)
Proceed to checkout
Continue Shopping
@else
@endif
@if (auth()->user()->cart->count() > 0)
@if ($item->product->on_sale)
${{$item->product->on_sale}}
@else${{$item->product->price}}
@endifCart total
Subtotal | $ {{auth()->user()->cart->sum('price')}} |
---|---|
Shipping | $ 2.00 |
Total | $ {{auth()->user()->cart->sum('price') + 2.00}} |
Your cart is currently empty.
You Might Also Like...
@if ($item->on_sale)