Total Amount (including donation):
${{ number_format($cartTotal, 2) }}
{{-- Display Stripe Error from Controller (if PI failed) --}}
@if (!empty($stripeErrorMessage))
{{-- Check if variable exists and is not empty --}}
Payment Error
{{ $stripeErrorMessage }}
@endif
{{-- Only show payment form if Stripe setup was successful --}}
{{-- Check if variables exist before using --}}
@if (!empty($stripePublicKey) && !empty($paymentIntentClientSecret))
{{-- Stripe Card Element Container --}}
@else
{{-- Message if Stripe isn't configured or PI failed in controller --}}
{{ $stripeErrorMessage ?? 'Payment processing is currently unavailable. Please contact support.' }}