ui: show registered users on waitlist page
This commit is contained in:
parent
230155312f
commit
4782446f42
@ -10,6 +10,7 @@ use Livewire\Component;
|
|||||||
class Index extends Component
|
class Index extends Component
|
||||||
{
|
{
|
||||||
public string $email;
|
public string $email;
|
||||||
|
public int $users = 0;
|
||||||
public int $waitingInLine = 0;
|
public int $waitingInLine = 0;
|
||||||
|
|
||||||
protected $rules = [
|
protected $rules = [
|
||||||
@ -22,6 +23,7 @@ class Index extends Component
|
|||||||
public function mount()
|
public function mount()
|
||||||
{
|
{
|
||||||
$this->waitingInLine = Waitlist::whereVerified(true)->count();
|
$this->waitingInLine = Waitlist::whereVerified(true)->count();
|
||||||
|
$this->users = User::count();
|
||||||
if (isDev()) {
|
if (isDev()) {
|
||||||
$this->email = 'waitlist@example.com';
|
$this->email = 'waitlist@example.com';
|
||||||
}
|
}
|
||||||
|
@ -23,7 +23,8 @@
|
|||||||
<x-forms.input id="email" type="email" label="Email" placeholder="youareawesome@protonmail.com" />
|
<x-forms.input id="email" type="email" label="Email" placeholder="youareawesome@protonmail.com" />
|
||||||
<x-forms.button type="submit">Join Waitlist</x-forms.button>
|
<x-forms.button type="submit">Join Waitlist</x-forms.button>
|
||||||
</form>
|
</form>
|
||||||
Waiting in the line: <span class="font-bold text-warning">{{ $waitingInLine }}</span>
|
<div>People waiting in the line: <span class="font-bold text-warning">{{ $waitingInLine }}</div>
|
||||||
|
<div>Already using Coolify Cloud: <span class="font-bold text-warning">{{ $users }}</div>
|
||||||
<div class="pt-8">
|
<div class="pt-8">
|
||||||
This is a paid & hosted version of Coolify.<br> See the pricing <a href="https://coolify.io/pricing" class="text-warning">here</a>.
|
This is a paid & hosted version of Coolify.<br> See the pricing <a href="https://coolify.io/pricing" class="text-warning">here</a>.
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user