@foreach ($totals->lines as $line)
@php $v = $line['variant']; @endphp
{{ $line['quantity'] }}
{{ $v?->product?->name }}@if ($line['problem']){{ $line['problem'] }}@endif
{{ money($line['line_total']) }}
@endforeach
- Subtotal
- {{ money($totals->subtotal) }}
@if ($totals->coupon)
- {{ $totals->coupon->code }}
- {{ $totals->freeShippingCoupon ? 'Free delivery' : '−'.money($totals->discount) }}
@endif
- Delivery{{ $totals->shippingMethod ? ' · '.$totals->shippingMethod->name : '' }}
- {{ $totals->shippingMethod ? ($totals->shipping ? money($totals->shipping) : 'Free') : '—' }}