@extends('layouts.app') @section('title', 'Invite Codes') @section('content')
Invitations to create an account. Bind one to an email so only that person can use it.
{{ $new['code'] }}
@if($new['email']){{ $new['email'] }}@endif
| Code | Role | Bound to | Status | Actions |
|---|---|---|---|---|
{{ $code->code }}
{{ $code->created_at?->format('d M Y') }}
@if($code->expires_at)
· expires {{ $code->expires_at->format('d M Y') }}
@endif
|
{{ str_replace('_', ' ', $code->role) }} |
@if($code->email)
{{ $code->email }}
@else
anyone
@endif
@if($code->usedBy)
used by {{ $code->usedBy->name }}
@endif
|
@php $status = $code->status(); @endphp {{ ucfirst($status) }} | @if($code->isRedeemable()) @if($code->email) @endif @endif @unless($code->isUsed()) @endunless |
| No invite codes yet. | ||||