@extends('web.layout.master') @section('content')
@if(!$cartItems->isEmpty()) @foreach (['danger', 'warning', 'success', 'info'] as $msg) @if(Session::has('alert-' . $msg))

{{ Session::get('alert-' . $msg) }} ×

@endif @endforeach @if ($errors->any())
@endif
{{-- desktop --}}
Item
Item Price
Quantity
Total Price
@php $total = 0; @endphp @foreach($cartItems as $item) @php $total += ($item->price); @endphp
...
@if(!empty($item->product_url))
{{ $item->name }}
@else
{{ $item->name }}
@endif

Product Code: {{ $item->id }}

${{ str_replace(',','',round($item->attributes->perproductprice,2)) }}

${{ str_replace(',','',round($item->price,2)) }}

   Remove
@if(!$loop->last)
@endif
@endforeach
{{-- mobile --}}
@foreach($cartItems as $item)
...
@if(!empty($item->product_url)) {{ $item->name }} @else {{ $item->name }} @endif

Product Code: {{ $item->id }}

Item Price

${{ str_replace(',','',round($item->attributes->perproductprice,2)) }}

@if(!$loop->last)
@endif @endforeach
@if(!empty(\Session::get('couponCode'))) Coupon code applied.  Remove @else    @endif


Subtotal
${{ number_format($total,2); }}
get('discountPrice')) && session()->get('discountPrice') <= 0) style="display: none" @endif>
Promo Code ({{ session()->get('couponCode') }} - {{ session()->get('couponDiscount') }})
- ${{ (!empty(session()->get('discountPrice')) ? str_replace(',','',session()->get('discountPrice')) : "") }}


get('discountPrice')) && session()->get('discountPrice') <= 0) style="display: none" @endif>
Order Total
${{ round(($total + 0.00),2); }}
@if(auth()->check() && !empty($userAddressPrimary))   Proceed to Checkout @else   Proceed to Checkout @endif
Available payment options in checkout:
@else

Your cart is empty

Keep Shopping
@endif
@endsection