{{-- resources/views/public/cart-page.blade.php --}} @php // Get theme fonts from active preset $headingFont = 'Inter'; $bodyFont = 'Inter'; if ($website && $website->activeTheme && $website->activeTheme->theme) { $defaultPreset = $website->activeTheme->theme->presets()->where('is_default', true)->first(); if ($defaultPreset && isset($defaultPreset->font_scheme)) { $headingFont = $defaultPreset->font_scheme['heading'] ?? 'Inter'; $bodyFont = $defaultPreset->font_scheme['body'] ?? 'Inter'; } } // Build Google Fonts URL dynamically $fontsToLoad = []; if ($headingFont !== 'Default') { $fontsToLoad[] = str_replace(' ', '+', $headingFont) . ':wght@300;400;500;600;700;800;900'; } if ($bodyFont !== 'Default' && $bodyFont !== $headingFont) { $fontsToLoad[] = str_replace(' ', '+', $bodyFont) . ':wght@300;400;500;600;700;800;900'; } $googleFontsUrl = 'https://fonts.googleapis.com/css2?family=' . implode('&family=', $fontsToLoad) . '&display=swap'; @endphp Shopping Cart - {{ $website->name }} @if($website->theme) @endif @if(count($fontsToLoad) > 0) @endif @php $headerSection = $website->globalSections()->where('type', 'header')->where('is_default', true)->first(); @endphp @if($headerSection) @if($headerSection->builder_data)
{!! $headerSection->renderBuilderContent() !!}
@elseif($headerSection->builder_v2_data)
@include('global-sections.render-v2', ['section' => $headerSection])
@endif @endif

Shopping Cart

@if(session('success')) @endif @if($cartItems->count() > 0)
@foreach($cartItems as $item) @endforeach
Product Price Quantity Total Action
@if($item->product && $item->product->main_image) {{ $item->display_name }} @else
@endif
{{ $item->display_name }}
@if($item->product && $item->product->sku) SKU: {{ $item->product->sku }} @endif @if($item->productVariation)
{{ $item->productVariation->variation_display }}
@endif
{{ $website->getCurrencySymbol() }} {{ number_format($item->price, 2) }}
{{ $website->getCurrencySymbol() }} {{ number_format($item->total_price, 2) }}
Order Summary
Subtotal: {{ $website->getCurrencySymbol() }} {{ number_format($cartTotal, 2) }}
Shipping: Free
Tax: {{ $website->getCurrencySymbol() }} 0.00

Total: {{ $website->getCurrencySymbol() }} {{ number_format($cartTotal, 2) }}

Secure

Fast Delivery

Easy Returns

@else

Your cart is empty

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

Start Shopping
@endif
@php $footerSection = $website->globalSections()->where('type', 'footer')->where('is_default', true)->first(); @endphp @if($footerSection) @if($footerSection->builder_data) @elseif($footerSection->builder_v2_data) @endif @endif