@extends("client.layouts.app") @section("title", __("client.cart.title")) @section("content")

{{ __('client.cart.shopping_cart') }}

{{ __('client.cart.add_more_products') }}
@if(session("success"))
{{ session("success") }}
@endif @if(session("error"))
{{ session("error") }}
@endif @if(empty($totals["items"]))
🛒

{{ __('client.cart.empty') }}

{{ __('client.cart.browse_products') }}
@else
{{ __('client.cart.cart_items') }}
@foreach($totals["items"] as $key => $item) @endforeach
{{ __('common.table.product') }} {{ __('common.table.billing_cycle') }} {{ __('common.table.price') }}
{{ $item["product_name"] ?? $item["name"] ?? "Product" }}
@if(!empty($item["domain"]))
{{ $item["domain"] }}
@endif
{{ $item["billing_cycle"] ?? "-" }} ${{ number_format($item["price"] ?? 0, 2) }}
@csrf @method("DELETE")
{{ __('client.cart.promo_code') }}
@csrf
@if($totals["promo_code"] ?? false)
{{ __('client.cart.promo_applied', ['code' => $totals["promo_code"]]) }}
@endif
{{ __('client.cart.order_summary') }}
{{ __('client.cart.subtotal') }}${{ number_format($totals["subtotal"], 2) }}
@if(($totals["discount"] ?? 0) > 0)
{{ __('client.cart.discount') }}-${{ number_format($totals["discount"], 2) }}
@endif @if(($totals["tax"] ?? 0) > 0)
{{ __('client.cart.tax') }} ({{ $totals["tax_rate"] ?? 0 }}%)${{ number_format($totals["tax"], 2) }}
@endif
{{ __('client.cart.total') }}${{ number_format($totals["total"], 2) }}
{{ __('client.cart.checkout') }} → {{ __('client.cart.continue_shopping') }}
@endif @endsection