| {{ __('Welcome Gift Code') }} | {{ __('Name / Machine') }} | {{ __('Discount Value') }} | {{ __('Usage Status') }} | {{ __('Expires At') }} | {{ __('Status') }} | {{ __('Actions') }} |
|---|---|---|---|---|---|---|
| @if($gift->status === 'active' && (!$gift->expires_at || $gift->expires_at->isFuture())) code }}'; activeTicketUrl = '{{ $gift->ticket_url }}'; showQrModal = true" class="text-lg font-black font-mono text-cyan-600 dark:text-cyan-400 tracking-widest bg-cyan-50 dark:bg-cyan-500/10 px-4 py-1.5 rounded-xl border border-cyan-100 dark:border-cyan-500/20 shadow-sm cursor-pointer hover:bg-cyan-100 dark:hover:bg-cyan-500/20 transition-all"> {{ $gift->code }} @else {{ $gift->code }} @endif |
{{ $gift->name }}
{{
$gift->machine?->name ?? '-' }}
|
{{ $gift->discount_label }} | @if($gift->usage_type === 'unlimited') {{ __('Unlimited') }} ({{ __('Used: :count', ['count' => $gift->usage_count]) }}) @else @if($gift->usage_count > 0) {{ __('Used') }} @else {{ __('Once') }} @endif @endif |
@if($gift->expires_at)
{{ $gift->expires_at->format('Y-m-d H:i') }}
{{ $gift->expires_at->isPast() ? __('Expired') : $gift->expires_at->diffForHumans() }}
@else
{{ __('Permanent') }}
@endif
|
@php
$displayStatus = $gift->status === 'active' && $gift->expires_at?->isPast() ? 'expired'
: ($gift->status === 'disabled' ? 'cancelled' : $gift->status);
@endphp
|
@if($gift->status === 'active' && (!$gift->expires_at || $gift->expires_at->isFuture()))
@endif
@if($gift->status === 'active')
@endif
|
{{ $gift->name }}
{{ __('Machine') }}
{{ $gift->machine?->name ?? '-' }}
{{ __('Discount Value') }}
{{ $gift->discount_label }}
{{ __('Usage Status') }}
@if($gift->usage_type === 'unlimited') {{ __('Unlimited') }} ({{ $gift->usage_count }}) @else @if($gift->usage_count > 0) {{ __('Used') }} @else {{ __('Once') }} @endif @endif
{{ __('Expires At') }}
{{ $gift->expires_at ? $gift->expires_at->format('Y-m-d H:i') : __('Permanent') }}