@extends('layouts.main') {{--@push('catalogue-nav')--}} {{-- @include('partials.general.catalogue-nav')--}} {{--@endpush--}} @section('content') {{--{{var_dump($pendingcart)}}--}}
SHOPPING CART
@if(isset($pendingcart) && count($pendingcart) > 0) @php $ifdelivery = 1; @endphp

Item

Description

Redemption Type

Unit Price

Quantity

Subtotal


@foreach($pendingcart as $item) @php if($item->delivery_type == 2){ $ifdelivery = 2; } @endphp
image

{{$item->name}}

@if($item->attrib)

( {{rtrim(trim($item->attrib->value),",")}} )

@endif
@if($item->delivery_type == 2)

Delivery

@else

Pickup

@endif
@if(Auth::check()) @if(Auth::user()->currency->is_currency_fixed == '1')

{{transform_product_price($item->price, 1) }}

@else

{{ transform_product_price($item->price, Auth::user()->currency->rate ) }} {{Auth::user()->currency->currency}}

@endif @endif
@if(Auth::user()->currency->is_currency_fixed == '1')

{{transform_product_price(($item->price * $item->qty), 1) }}

@else

{{ transform_product_price(($item->price * $item->qty), Auth::user()->currency->rate ) }} {{Auth::user()->currency->currency}}

@endif

@endforeach

Subtotal

@if(Auth::check()) @if(Auth::user()->currency->is_currency_fixed == '1') @php echo $pendingcartsum ? transform_product_price($pendingcartsum[0], 1) : '0' @endphp @else @php echo $pendingcartsum ? transform_product_price($pendingcartsum[0], Auth::user()->currency->rate ). ' '. Auth::user()->currency->currency : '0' @endphp @endif @endif

@if($ifdelivery == 1) @elseif($ifdelivery == 2) PROCEED TO CHECKOUT @endif
@else

Your Cart is empty

@endif
@if($table != "")
@endif @endsection @push('style') @endpush @push('script') @endpush