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

Shopping Cart

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(empty($cart))

Your cart is empty

Browse our products and add items to get started

Browse Products
@else
@foreach($cart as $index => $item)

@if($item['type'] === 'domain') {{ ucfirst($item['action']) }} Domain: {{ $item['domain'] }} @else {{ $item['name'] }} @endif

@if($item['type'] === 'product')

Billing Cycle: {{ ucfirst($item['billing_cycle']) }}

@if($item['domain'])

Domain: {{ $item['domain'] }}

@endif
@endif
Price: {{ format_currency($item['price']) }}
@if($item['setup_fee'] > 0)
Setup Fee: {{ format_currency($item['setup_fee']) }}
@endif
Subtotal: {{ format_currency($item['price'] + $item['setup_fee']) }}
@csrf @method('DELETE')
@endforeach
← Continue Shopping
@csrf

Order Summary

Items {{ count($cart) }}
Total {{ format_currency($total) }}
@csrf

By proceeding, you agree to our Terms of Service

@endif
@endsection