@extends('layouts.app') @section('title', 'Shopping Cart') @section('content')
@if($cart->items->isEmpty())

Your cart is feeling lonely

Add some amazing items to get started!

Start Shopping
@else
{{-- Main Content --}}

Cart Items ({{ $cart->items->count() }})

{{-- Currency Display --}}
{{ currency_code() }} ({{ currency_symbol() }})
@foreach($cart->items as $item)
{{-- Image with badge --}}
@if($item->product->sale_price) % @endif
{{-- Content --}}

{{ $item->product->name }}

SKU: ITM-{{ $item->product->id }}

{{ currency($item->price * $item->quantity) }}
@if($item->product->sale_price)
{{ currency($item->product->price * $item->quantity) }}
@endif
{{-- Controls --}}
@csrf
@csrf @method('DELETE')
@endforeach
{{-- Sidebar --}}

Cart Total {{ currency_code() }}

Subtotal {{ currency($cart->total) }}
Shipping FREE
Estimated Tax (11%) {{ currency($cart->total * 0.11) }}
Discount (5% off) - {{ currency($cart->total * 0.05) }}
Total {{ currency($cart->total + ($cart->total * 0.11)) }}

Including all taxes & fees | Displayed in {{ currency_code() }}

@if(session('user_id')) Proceed to Checkout @else

Login to complete your purchase

@endif {{-- Currency Info --}}

All prices are shown in {{ currency_code() }} ({{ currency_symbol() }}) based on your location. Final payment will be processed in IDR.

{{-- Trust Badges --}}

Secure SSL Encrypted Checkout

@endif
@endsection