Loja de pontos do clube

Produtos que os utilizadores deste clube podem trocar por pontos.

Gerir loja de pontos
@if($pointStoreProducts->isNotEmpty())
@foreach($pointStoreProducts as $entry) @php $product = $entry->product; $mainImagePath = $product->image_url ?? optional($product->images->first())->path; $mainImageUrl = $mainImagePath ? asset('storage/' . ltrim($mainImagePath, '/')) : null; $isClubSpecific = !is_null($entry->club_id); $isVoucher = $entry->isVoucher(); @endphp
@if($mainImageUrl) {{ $product->name }} @else
Sem imagem
@endif {{ $isVoucher ? 'Voucher' : ($isClubSpecific ? 'Só este clube' : 'Todos os clubes') }}
{{ $entry->displayTitle() }}
{{ $isVoucher ? 'Produto com desconto' : 'Ref' }}: {{ $product->sku ?? '—' }}
{{ number_format((int) $entry->points_cost, 0, ',', ' ') }} pontos
@if($isVoucher)
{{ (int) $entry->discount_percent }}% desconto em {{ $product->name }} @if($entry->voucher_expires_days) · válido {{ (int) $entry->voucher_expires_days }} dias após compra @endif
@endif @if(!empty($product->description))
{{ \Illuminate\Support\Str::limit($product->description, 110) }}
@endif
@endforeach
@else
Sem produtos de pontos
Ainda não existem produtos ativos para a loja de pontos deste clube.
@endif @push('styles') @endpush