@extends('admin.layouts.app') @section('content')
Loja de pontos
Escolhe produtos da loja normal, define o custo em pontos e limita por clube quando necessário.
Filtros
Limpar
@forelse($entries as $entry) @php $product = $entry->product; $mainImagePath = optional($product)->image_url ?? optional($product->images->first())->path; $mainImageUrl = $mainImagePath ? asset('storage/' . ltrim($mainImagePath, '/')) : null; @endphp @empty @endforelse
Produto Tipo Âmbito Pontos Desconto Estado Ordem Ações
@if($mainImageUrl) {{ $product->name }} @else Sem imagem @endif
{{ optional($product)->name ?? 'Produto removido' }}
{{ $entry->displayTitle() }}
Ref: {{ optional($product)->sku ?: '—' }}
{{ $entry->isVoucher() ? 'Voucher' : 'Produto' }} @if($entry->club) {{ $entry->club->name }} @else Todos os clubes @endif {{ number_format((int) $entry->points_cost, 0, ',', ' ') }} @if($entry->isVoucher()) {{ (int) $entry->discount_percent }}% @else — @endif @if($entry->is_active) Ativo @else Inativo @endif {{ $entry->sort_order }}
Editar
@csrf @method('DELETE')
Ainda não há produtos na loja de pontos.
@if(method_exists($entries, 'links'))
{{ $entries->links() }}
@endif
@endsection @push('styles') @endpush