@if(!empty($isLayaway))

Layaway plan summary

@if(!empty($orderNumber) || !empty($productImageUrl) || (!empty($isStoryLayaway) && !empty($productTitle))) @if(!empty($productImageUrl)) @endif
{{ $productTitle ?? 'Layaway product' }} @if(!empty($orderNumber))
Store order
Order #{{ $orderNumber }}
@endif @if(!empty($isStoryLayaway) && !empty($productTitle) && $productTitle !== 'Custom Payment' && $productTitle !== 'Layaway Plan')
{{ $productTitle }}
@endif @if(!empty($isStoryLayaway))
Instagram Story
@endif
@endif @if(!empty($planHasTax)) @endif
Plan subtotal {{ $planSubtotal ?? '—' }}
Plan tax{{ !empty($planTaxRatePercent) ? ' (' . $planTaxRatePercent . ')' : '' }} {{ $planTaxAmount ?? '—' }}
Plan total {{ $planTotalAmount ?? '—' }}
Paid to date {{ $planAmountPaid ?? '—' }}
Balance due @if(!empty($layawayCompleted)) $0.00 — Paid in full @else {{ $planBalanceDue ?? '—' }} @endif
@if(!empty($paymentHistory))

All payments on this plan

@if(!empty($showPaymentHistoryTxnId)) @endif @foreach($paymentHistory as $payment) @if(!empty($showPaymentHistoryTxnId)) @endif @endforeach
Date PaymentTxn IDAmount
{{ $payment['date'] }} {{ $payment['typeLabel'] }}{{ $payment['transactionId'] ? '#' . $payment['transactionId'] : 'Cash' }}{{ $payment['amount'] }}
@endif @if(empty($layawayCompleted) && !empty($planExpiresAt))

Layaway must be paid in full by {{ $planExpiresAt }}@if(!empty($durationDays)) ({{ $durationDays }} calendar days from first payment)@endif.

@endif @endif