From 4782446f424eb79cf43e968aa4ea6c47ccda7e6b Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Mon, 11 Sep 2023 13:53:08 +0200 Subject: [PATCH] ui: show registered users on waitlist page --- app/Http/Livewire/Waitlist/Index.php | 2 ++ resources/views/livewire/waitlist/index.blade.php | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/app/Http/Livewire/Waitlist/Index.php b/app/Http/Livewire/Waitlist/Index.php index 06d224afe..72d16b682 100644 --- a/app/Http/Livewire/Waitlist/Index.php +++ b/app/Http/Livewire/Waitlist/Index.php @@ -10,6 +10,7 @@ class Index extends Component { public string $email; + public int $users = 0; public int $waitingInLine = 0; protected $rules = [ @@ -22,6 +23,7 @@ public function render() public function mount() { $this->waitingInLine = Waitlist::whereVerified(true)->count(); + $this->users = User::count(); if (isDev()) { $this->email = 'waitlist@example.com'; } diff --git a/resources/views/livewire/waitlist/index.blade.php b/resources/views/livewire/waitlist/index.blade.php index ad6e30508..833193b58 100644 --- a/resources/views/livewire/waitlist/index.blade.php +++ b/resources/views/livewire/waitlist/index.blade.php @@ -23,7 +23,8 @@ Join Waitlist - Waiting in the line: {{ $waitingInLine }} +
People waiting in the line: {{ $waitingInLine }}
+
Already using Coolify Cloud: {{ $users }}
This is a paid & hosted version of Coolify.
See the pricing here.