{!! Form::open(array('url' => '/shopping-cart/update', 'method' => 'post', 'id' => 'pageform', 'class' => 'row-fluid bill-info')) !!} @if ($cart->isEmpty() || ($cart_count == 0)) @else @foreach($cart as $carts) @if(empty($carts->product_price)) $carts->product_price = 0; @endif @if(empty($carts->total)) $carts->total = 0; @endif @endforeach @endif
Product Price QTY Total
Your Shopping Cart is Empty
@if($carts->image != "") {!! Html::image(PRODUCT_IMAGE_PATH.$carts->fldProductSlug.'/'.SMALL_IMAGE.$carts->image) !!} @else {!! Html::image('_front/assets/images/no-image-small.jpg') !!} @endif

{{ $carts->product_name }}

{!! substr($carts->fldProductDescription, 0, 50) !!}
${{ number_format($carts->product_price,2) }} {!! Form::hidden('cartId[]',$carts->temp_cart_id) !!} ${{ number_format($carts->total,2) }}
{!! Form::text('coupon','',array('id'=>'coupon','placeholder'=>'Enter Code','class'=>'text text-small')) !!} {!! Form::submit('UPDATE CART',array('class'=>'uk-button uk-button-primary','name'=>'update'))!!}
@if ((!$cart->isEmpty()) || ($cart_count > 0))

Cart Total

SUBTOTAL
$ {{ number_format($cart[0]->subtotal,2) }}
SHIPPING
Calculate Shipping
TOTAL
$ {{ number_format($cart[0]->subtotal,2) }}
{!! Form::hidden('total',$cart[0]->subtotal) !!} {!! Form::submit('Proceed to Checkout',array('class'=>'uk-button uk-button-small uk-button-primary full-width text-uppercase','name'=>'checkout'))!!}
@endif {!! Form::close() !!}