@extends('layouts.app') @section('title', 'Shopping Cart - ECA Networks') @section('content')

Shopping Cart ({{ array_sum(array_column($cart, 'quantity')) }} items)

@if(empty($cart))

Your cart is empty

Looks like you haven't added anything to your cart yet.

Start Shopping
@else
@foreach($cart as $item)
@if($item['image']) {{ $item['name'] }} @else
@endif
{{ $item['name'] }}

KES {{ number_format($item['price']) }}

@csrf
@csrf
@endforeach

Coupon Code

Order Summary

Subtotal KES {{ number_format($total) }}
Shipping @if($total >= 5000) Free @else KES 300 @endif
Tax (0%) KES 0
Total KES {{ number_format($total + ($total >= 5000 ? 0 : 300)) }}
@if($total < 5000)
Add KES {{ number_format(5000 - $total) }} more for free delivery!
@endif Proceed to Checkout
Secure checkout guaranteed
@endif
@endsection