| {{ __('Pass Code') }} | {{ __('Name / Machine') }} | {{ __('Expires At') }} | {{ __('Status') }} | {{ __('Actions') }} |
|---|---|---|---|---|
| @if($code->status === 'active' && (!$code->expires_at || $code->expires_at->isFuture())) code }}'; activeTicketUrl = '{{ $code->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"> {{ $code->code }} @else {{ $code->code }} @endif |
{{ $code->name }}
{{
$code->machine?->name ?? '-' }}
|
@if($code->expires_at)
{{ $code->expires_at->format('Y-m-d H:i') }}
{{ $code->expires_at->isPast() ? __('Expired') : $code->expires_at->diffForHumans()
}}
@else
{{
__('Permanent') }}
@endif
|
@php
$displayStatus = $code->status === 'active' && $code->expires_at?->isPast() ? 'expired'
: ($code->status === 'disabled' ? 'cancelled' : $code->status);
@endphp
|
@if($code->status === 'active' && (!$code->expires_at ||
$code->expires_at->isFuture()))
@endif
@if($code->status === 'active')
@endif
|
{{ $code->name }}
{{ __('Machine') }}
{{ $code->machine?->name ?? '-' }}
{{ __('Expires At') }}
{{ $code->expires_at ? $code->expires_at->format('Y-m-d H:i') : __('Permanent') }}