@if(Session::has('currency_code')) @php $currency_code=Session::get('currency_code')@endphp @else @php $currency_code='KWD'; @endphp @endif @if(Session::has('currency_symbol')) @php $curr_symbol=Session::get('currency_symbol') @endphp @else @php $curr_symbol=''; @endphp @endif @if(Session::has('exchange_rate')) @php $exchange_rate=Session::get('exchange_rate')@endphp @else @php $exchange_rate=1; @endphp @endif
@if(isset($basket)&& $basket->count()>0) @php $subtotal=0; $total=0; @endphp
    @foreach($basket as $item)
  • Vehicula vel tempus sit amet ulte
    {{ $price_now=($item ->product->discount_price ?? $item ->product -> price )}} @if($item -> product->discount_price) {{$item ->product-> price}} @endif
    {{ ($item ->size_id!="") ? App\models\Cart::getSize($item ->size_id)->name_ar : '' }}
    {{ ($item ->color_id!="") ? App\models\Cart::getColor($item ->color_id)->name_en : '' }}
    Qty:
    -
    +
    subtotal:
    @php $subTotal = ( $price_now * ($item->quantity)) @endphp {{ $subTotal}} @php $total+= $subTotal @endphp
  • @endforeach
There are ({{$basket -> count()}}) items in your cart

@if(Session::has('coupon_amount')) Coupon Amount: {{$coupon_amount=round(getCouponAamount(Session::get('coupon_code'),$total) /$exchange_rate,2)}} {{$curr_symbol}} @php $total=$total-$coupon_amount; @endphp @else Coupon Amount: 0$ @endif
Total: {{$total}}

@else

there is no items in your cart

@endif