@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

Carrinho de Compras

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if(count($cartItems) > 0)
@foreach($cartItems as $item)
@if($item['product']->image) {{ $item['product']->name }} @else
@endif
{{ $item['product']->name }}
@if($item['variant_value'])

{{ $item['variant_value']->variant->name }}: {{ $item['variant_value']->value }}

@endif

@if($item['product']->is_digital) Digital @endif @if($item['product']->is_used) Usado @endif

@csrf
{{ number_format($item['subtotal'], 2) }}€
@csrf
@endforeach
@csrf
Resumo
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 ({{ \App\Helpers\PriceHelper::getIvaPercentage() }}%) {{ number_format($ivaAmount, 2) }}€
@endif @if(!$appliedCoupon)
@csrf
@else
Cupão {{ $appliedCoupon->code }} aplicado
@csrf
@endif @php $gcCode = session('gift_card_code'); $gcBalance = session('gift_card_balance'); @endphp @if($gcCode)
Gift Card {{ $gcCode }}
Saldo: {{ number_format($gcBalance, 2) }}€
@csrf
@else @endif
Total {{ number_format($total, 2) }}€
@auth Finalizar Compra @else Login para Comprar

Não tem conta? Registar

@endauth
@else

O carrinho está vazio

Comece a fazer compras para ver produtos aqui.

Ver Produtos
@endif