@extends('layouts.main') {{--@push('catalogue-nav')--}} {{-- @include('partials.general.catalogue-nav')--}} {{--@endpush--}} @section('content') {{--{{var_dump($pendingcart)}}--}}
@if(isset($pendingcart) && count($pendingcart) > 0)

SHOPPING CART

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

{{$item->name}}

    @if($item->attrib)
  • ( {{rtrim(trim($item->attrib->value),",")}} )
  • @endif @if($item->delivery_type == 2) Delivery @else Pickup @endif
{{--
    --}} {{--
  • --}} {{--
    --}} {{-- $124--}} {{--
    --}} {{--
  • --}} {{--
  • --}} {{--
    --}} {{--
  • --}} {{--
  • --}} {{--
    --}} {{-- $124--}} {{--
    --}} {{--
  • --}} {{--
--}}
@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
{{--
--}} {{-- CLEAR SHOPPING CART--}} {{-- UPDATE CART--}} {{--
--}}
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