@extends('front.layout.app') @section('title', 'Cart') @section('extra-css') @endsection @section('content')
@include('front.partials.sidemenu')
@if ($cartCollection->count() > 0)
Cart
{{-- @dd(Cart::content())--}} @foreach (Cart::content() as $item) @endforeach {{-- --}} {{-- --}} {{-- --}}
Product Price Quantity Color Total
{{ $item->model->product_name }}
${{ $item->price }}
{{$item->qty}}
@php $colorFound = false; @endphp @forelse($item->options as $index => $option) @if ($index == 'color') {{ $option }} @php $colorFound = true; @endphp @endif @empty - @endforelse @if (!$colorFound) - @endif
${{ $item->total() }}
{{ csrf_field() }} {{ method_field('DELETE') }}
Subtotal: ${{ Cart::subtotal() }}

We ship the best way

Shipping Method
${{$shipping_cost}}
Continue Shopping
@else
Your cart is empty!

Your Shopping Cart is Empty

  • Would you like to continue shopping or view our site map?
  • If you have already added items to your cart and it is still empty, please check to be sure your browser is set to accept cookies.
@endif
@endsection @section('extra-js') {{-- --}} @endsection