@extends('layouts.main') @push('title') Cart @endpush @section('main-section')
@if (session()->has('success_message'))
{{ session()->get('success_message') }}
@endif @if(count($errors) > 0)
@endif
@if ($cart_products->count() > 0)
@foreach ($cart_products as $item) @endforeach
Products Name Price Quantity Total Handle Save For Later

{{ $item->product_title}}

{{ (int)$item['price'] * $item['product_quantity'] }}

{{ (int)$item['price'] * $item['product_quantity'] }}

{{ csrf_field() }} {{ method_field('DELETE') }}
{{ csrf_field() }}
@endif
@if ($cart_products->count() > 0)
@if (! session()->has('coupon')) Have a Code?
{{ csrf_field() }}
@endif

Cart Total

Subtotal:

{{ $cart_subtotal }}

@if (session()->has('coupon')) Code ({{ session()->get('coupon')['name'] }})
{{ csrf_field() }} {{ method_field('delete') }}

New Subtotal
@endif

@if (session()->has('coupon')) -{{$discount }}
 


{{ $newSubtotal }}


@endif
Tax ({{config('cart.tax')}}%)

{{ $newTax }}

Total

{{$newTotal}}

@else

No items in Cart!

Continue Shopping
@endif
@endsection