@extends('layouts.home') @section('content')

Shopping Cart

{{ count($cartItems) }} {{ count($cartItems) == 1 ? 'item' : 'items' }} in your cart

Continue Shopping
@if (count($cartItems) > 0)
Cart Items
@foreach ($cartItems as $index => $item)
@if ($item->product->image) {{ $item->product->name }} @else {{ $item->product->image }} @endif
{{ $item->product->name }}
In Stock

{{ $item->price }} @if ($config->currancy) {{ $config->currancy }} @endif per item

{{ $item->total }} @if ($config->currancy) {{ $config->currancy }} @endif
@endforeach
Order Summary
Subtotal ({{ count($cartItems) }} items) {{ number_format($cartItems->sum('total'), 2) }} @if ($config->currancy) {{ $config->currancy }} @endif

Total {{ number_format($cartItems->sum('total'), 2) }} @if ($config->currancy) {{ $config->currancy }} @endif
@if ($config->minimum_spent && $config->minimum_spent > 0)
Minimum Order amount is {{ number_format($config->minimum_spent, 2) }} {{ $config->currancy ?? '' }}
@endif
@else

Your cart is empty

Looks like you haven't added anything to your cart yet. Start shopping to fill it up!

Start Shopping
@endif
@endsection