@php
/** @var \App\Models\Checkout $checkout */
$compact = $compact ?? false;
@endphp
@unless($compact)
Order summary
@endunless
@foreach($lines as $line)
-
{{ \Illuminate\Support\Str::substr($line['title'] ?? 'P', 0, 1) }}
{{ $checkout->currency }} {{ number_format(($line['total_cents'] ?? 0) / 100, 2) }}
@endforeach
@include('website.partials.discount-field', [
'context' => 'checkout',
'appliedCode' => $checkout->discount_code,
'token' => $checkout->token,
'class' => 'checkout-discount',
])
- Subtotal
- {{ $checkout->currency }} {{ number_format($checkout->subtotal_cents / 100, 2) }}
- Shipping
-
@if($checkout->shipping_rate_id !== null)
{{ (int) $checkout->shipping_cents > 0 ? $checkout->currency.' '.number_format($checkout->shipping_cents / 100, 2) : 'Free' }}
@else
Calculated next
@endif
- Tax
- {{ $checkout->currency }} {{ number_format($checkout->tax_cents / 100, 2) }}
@if($checkout->discount_cents)
- Discount
- −{{ $checkout->currency }} {{ number_format($checkout->discount_cents / 100, 2) }}
@endif
- Total
- {{ $checkout->currency }} {{ number_format($checkout->total_cents / 100, 2) }}