@extends('layouts.admin') @section('content')

{{ $title }}

@if(!$invitation->used_at)
@csrf
@csrf
@endif Back to List

Basic Information

Email
{{ $invitation->email }}
Status
@if($invitation->used_at) Used @elseif(!$invitation->is_active) Cancelled @elseif($invitation->expires_at && $invitation->expires_at->isPast()) Expired @else Pending @endif
Token
{{ $invitation->token }}
Active
@if($invitation->is_active) Yes @else No @endif

User Information

Invited By
@if($invitation->invitedBy)
{{ $invitation->invitedBy->username }} ({{ $invitation->invitedBy->email }})
@else @endif
Used By
@if($invitation->usedBy)
{{ $invitation->usedBy->username }} ({{ $invitation->usedBy->email }})
@else @endif

Timestamps

Created At
{{ $invitation->created_at->format('Y-m-d H:i:s') }} ({{ $invitation->created_at->diffForHumans() }})
Updated At
{{ $invitation->updated_at->format('Y-m-d H:i:s') }} ({{ $invitation->updated_at->diffForHumans() }})
Expires At
@if($invitation->expires_at) {{ $invitation->expires_at->format('Y-m-d H:i:s') }} ({{ $invitation->expires_at->diffForHumans() }}) @if($invitation->expires_at->isPast()) Expired @endif @else Never @endif
Used At
@if($invitation->used_at) {{ $invitation->used_at->format('Y-m-d H:i:s') }} ({{ $invitation->used_at->diffForHumans() }}) @else Not used yet @endif

Additional Information

Invitation Link
@if(!$invitation->used_at && $invitation->is_active && (!$invitation->expires_at || !$invitation->expires_at->isPast()))
{{ url('register?invitation=' . $invitation->token) }}
@else Invitation not active @endif
ID
{{ $invitation->id }}
{{-- Scripts moved to resources/js/csp-safe.js --}} @endsection