@extends('layouts.partials.master') @section('title', 'Vouchers de Pontos') @push('styles') @endpush @section('content') @include('layouts.components.section-title', ['title' => 'Vouchers de Pontos']) {{-- filters --}}
@include('layouts.components.alerts')
Adicionar @if ($mktLoyaltyPointsVouchers instanceof \Illuminate\Pagination\LengthAwarePaginator) Ver todos @else Paginar @endif
@include('layouts.components.per-page', ['subject' => $mktLoyaltyPointsVouchers, 'route' => 'mkt_loyalty_points_vouchers'])
@forelse($mktLoyaltyPointsVouchers as $voucher) @empty @endforelse
ID Código Pontos Utilizado Utilizado por Utilizado em Expira em Ações
{{ $voucher->id }} {{ $voucher->code }} {{ $voucher->points }} @if (!$voucher->used && $voucher->expired_at && \Carbon\Carbon::parse($voucher->expired_at)->isPast()) Expirado @elseif ($voucher->used) Sim @else Não @endif @if ($voucher->usedBy) @if ($voucher->usedByDetails && !$voucher->usedByDetails->trashed()) {{ $voucher->usedBy->full_name }} @else {{ $voucher->usedBy->full_name }}{{ $voucher->usedByDetails?->trashed() ? ' (excluído)' : '' }} @endif @else - @endif {{ $voucher->used_at ?? '-' }} {{ $voucher->expired_at ?? '-' }}
@if (!$voucher->trashed()) @if (!$voucher->used)
@csrf @method('DELETE')
@endif @else
@csrf
@csrf @method('DELETE')
@endif

{{ __('translations.no_results') }}

@include('layouts.components.pagination', ['subject' => $mktLoyaltyPointsVouchers]) @include('layouts.components.confirmation-modal') @endsection