@php use Filament\Support\Enums\GridDirection; use Filament\Support\Icons\Heroicon; use Illuminate\View\ComponentAttributeBag; $stacked = (new ComponentAttributeBag())->grid(['default' => 1], GridDirection::Column); $tokensGrid = (new ComponentAttributeBag())->grid(['default' => 1], GridDirection::Column); $linkGrid = (new ComponentAttributeBag())->grid(['default' => 1, 'md' => 2]); $metricsGrid = (new ComponentAttributeBag())->grid(['default' => 1, 'sm' => 2, 'xl' => 4]); $layoutsGrid = (new ComponentAttributeBag())->grid(['default' => 1, 'md' => 2]); @endphp
{{ __('admin.events.join_link.open_admin') }} {{ __('admin.events.join_link.deprecated_notice', ['slug' => $event->slug]) }} @if ($tokens->isEmpty()) @else
@foreach ($tokens as $token) @if ($token['is_active']) {{ __('admin.events.join_link.token_active') }} @else {{ __('admin.events.join_link.token_inactive') }} @endif
{{ __('admin.events.join_link.link_label') }}: {{ $token['url'] }}
{{ __('admin.events.join_link.copy_link') }}
@php $analytics = $token['analytics'] ?? []; @endphp @if (!empty($analytics))
{{ __('admin.events.analytics.success_total') }}: {{ number_format($analytics['success_total'] ?? 0) }} {{ __('admin.events.analytics.failure_total') }}: {{ number_format($analytics['failure_total'] ?? 0) }} {{ __('admin.events.analytics.rate_limited_total') }}: {{ number_format($analytics['rate_limited_total'] ?? 0) }}
{{ __('admin.events.analytics.recent_24h') }}: {{ number_format($analytics['recent_24h'] ?? 0) }} @if (!empty($analytics['last_seen_at'])) {{ __('admin.events.analytics.last_seen_at', ['date' => \Carbon\Carbon::parse($analytics['last_seen_at'])->isoFormat('LLL')]) }} @endif
@endif @if (!empty($token['layouts']))
@foreach ($token['layouts'] as $layout)
@foreach ($layout['download_urls'] as $format => $href) {{ strtoupper($format) }} @endforeach
@endforeach
@elseif(!empty($token['layouts_url'])) {{ __('admin.events.join_link.layouts_fallback') }} @endif @if ($token['expires_at']) {{ __('admin.events.join_link.token_expiry', ['date' => \Carbon\Carbon::parse($token['expires_at'])->isoFormat('LLL')]) }} @endif
@endforeach
@endif