@if($product->is_digital)
@if($product->file_url && !$product->file_path)
Acesso por Link
@else
Digital
@endif
@endif
@if($product->is_used)
Usado
@endif
@if($product->is_featured)
Destaque
@endif
{{ $product->name }}
@if($product->hasDiscount())
{{ number_format($product->price, 2) }}€
{{ number_format($product->discount_price, 2) }}€
@if($product->getDiscountEndFormatted())
Desconto termina em {{ $product->getDiscountEndFormatted() }}
@endif
@elseif($product->hasScheduledDiscount())
{{ number_format($product->price, 2) }}€
Desconto de -{{ $product->getDiscountPercent() }}% inicia em {{ $product->getDiscountStartFormatted() }}
@else
{{ number_format($product->price, 2) }}€
@endif
@if(\App\Helpers\PriceHelper::isIvaEnabled() && $product->iva_type === 'included')
IVA incluído
@endif
{{ $product->description }}
@if($coupons->count() > 0)
Cupões disponíveis
@foreach($coupons as $coupon)
{{ $coupon->getDisplayValue() }}
@if($coupon->description)
{{ $coupon->description }}
@endif
{{ $coupon->code }}
@if(!$loop->last)
@endif
@endforeach
Insira o código no carrinho para aplicar o desconto
@endif
@if(!$product->is_digital)
@if($product->isLowStock())
Últimas {{ $product->stock }} unidades! Stock limitado
@elseif($product->stock > 0)
{{ $product->stock }} unidades em stock
@else
Esgotado
@endif
@endif
👁️ {{ $activeViews }} pessoa(s) a ver isto agora
@if($product->variants->count() > 0)
@foreach($product->variants as $variant)
{{ $variant->name }}
@foreach($variant->values as $value)
@if($variant->type === 'color')
@elseif($variant->type === 'image')
{{ $value->value }}
@else
{{ $value->value }}
@endif
@endforeach
@endforeach
@endif
@if(($product->is_digital || $product->stock > 0) && $product->is_active)
@auth
@else
@endif
@if(\App\Models\Setting::get('whatsapp_enabled') === '1')
Comprar por WhatsApp
@endif
@else
Produto Indisponível
@endif
@if($product->video_url)
Vídeo de Demonstração
@php
$embedUrl = $product->video_url;
if (preg_match('/(?:youtube\.com\/watch\?v=|youtu\.be\/)([\w-]+)/', $product->video_url, $matches)) {
$embedUrl = 'https://www.youtube.com/embed/' . $matches[1];
} elseif (preg_match('/vimeo\.com\/(\d+)/', $product->video_url, $matches)) {
$embedUrl = 'https://player.vimeo.com/video/' . $matches[1];
} elseif (str_starts_with($embedUrl, 'http://')) {
$embedUrl = str_replace('http://', 'https://', $embedUrl);
}
@endphp
@endif
@if(\App\Models\Setting::get('whatsapp_enabled') === '1')