@php $activeBanner = \App\Models\Banner::getActive(); @endphp @if($activeBanner)
@if($activeBanner->image) {{ $activeBanner->title }} @if($activeBanner->title || $activeBanner->message)
@if($activeBanner->title) {{ $activeBanner->title }} @endif @if($activeBanner->title && $activeBanner->message) | @endif @if($activeBanner->message) {{ $activeBanner->message }} @endif
@endif
@else
@if($activeBanner->link) @if($activeBanner->title){{ $activeBanner->title }} - @endif {{ $activeBanner->message }} @else @if($activeBanner->title){{ $activeBanner->title }} - @endif {{ $activeBanner->message }} @endif
@endif
@endif

Finalizar Compra

@csrf
Dados do Cliente
Método de Pagamento
@foreach($paymentMethods as $key => $method)
{{ $method['name'] }}
@endforeach
@if($upsellProducts->isNotEmpty())
Quem comprou isto também comprou
@foreach($upsellProducts as $upsell)
@if($upsell->image) {{ $upsell->name }} @else
@endif
{{ $upsell->name }}
{{ number_format($upsell->hasDiscount() ? $upsell->discount_price : $upsell->price, 2) }}€
@csrf
@endforeach
@endif
Resumo da Encomenda
@foreach($cartItems as $item)
{{ $item['product']->name }} @if($item['variant_value'])
{{ $item['variant_value']->variant->name }}: {{ $item['variant_value']->value }} @endif
Qty: {{ $item['quantity'] }}
{{ number_format($item['subtotal'], 2) }}€
@endforeach
Subtotal {{ number_format($subtotal, 2) }}€
@if($discount > 0)
Desconto -{{ number_format($discount, 2) }}€
@endif @if($couponDiscount > 0)
Cupão ({{ $appliedCoupon->code }}) -{{ number_format($couponDiscount, 2) }}€
@endif @if($ivaAmount > 0)
IVA ({{ PriceHelper::getIvaPercentage() }}%) {{ number_format($ivaAmount, 2) }}€
@endif @if($giftCardDiscount > 0)
Gift Card ({{ $giftCardCode }}) -{{ number_format($giftCardDiscount, 2) }}€
@endif
Total {{ number_format($total, 2) }}€