diff --git a/app/Http/Livewire/Help.php b/app/Http/Livewire/Help.php index e0ce53d63..7cb2facef 100644 --- a/app/Http/Livewire/Help.php +++ b/app/Http/Livewire/Help.php @@ -4,8 +4,8 @@ use DanHarrin\LivewireRateLimiting\WithRateLimiting; use Illuminate\Notifications\Messages\MailMessage; +use Illuminate\Support\Facades\Route; use Livewire\Component; -use Route; class Help extends Component { @@ -28,7 +28,7 @@ public function mount() public function submit() { try { - $this->rateLimit(1, 60); + $this->rateLimit(3, 60); $this->validate(); $subscriptionType = auth()->user()?->subscription?->type() ?? 'Free'; $debug = "Route: {$this->path}"; @@ -42,7 +42,7 @@ public function submit() ); $mail->subject("[HELP - {$subscriptionType}]: {$this->subject}"); send_user_an_email($mail, auth()->user()?->email, 'hi@coollabs.io'); - $this->emit('success', 'Your message has been sent successfully. We will get in touch with you as soon as possible.'); + $this->emit('success', 'Your message has been sent successfully.
We will get in touch with you as soon as possible.'); } catch (\Throwable $e) { return handleError($e, $this); } diff --git a/resources/views/components/navbar-subscription.blade.php b/resources/views/components/navbar-subscription.blade.php index 3770a2d31..83c41bc2c 100644 --- a/resources/views/components/navbar-subscription.blade.php +++ b/resources/views/components/navbar-subscription.blade.php @@ -10,16 +10,12 @@ -
  • -
    - - - - - +
  • +
    + + + Feedback
  • diff --git a/resources/views/components/navbar.blade.php b/resources/views/components/navbar.blade.php index 2b30acab1..3f3a3d70b 100644 --- a/resources/views/components/navbar.blade.php +++ b/resources/views/components/navbar.blade.php @@ -114,16 +114,12 @@ class="{{ request()->is('settings*') ? 'text-warning icon' : 'icon' }}" viewBox=
  • @endif @if (isSubscriptionActive() || isDev()) -
  • -
    - - - - - +
  • +
    + + + Feedback
  • @endif diff --git a/resources/views/layouts/base.blade.php b/resources/views/layouts/base.blade.php index b3376ca14..3089e0bd6 100644 --- a/resources/views/layouts/base.blade.php +++ b/resources/views/layouts/base.blade.php @@ -94,6 +94,7 @@ function upgrade() { }) }, 2000); } + function copyToClipboard(text) { navigator.clipboard.writeText(text); Livewire.emit('success', 'Copied to clipboard.'); diff --git a/resources/views/livewire/help.blade.php b/resources/views/livewire/help.blade.php index a9c294852..00806c83e 100644 --- a/resources/views/livewire/help.blade.php +++ b/resources/views/livewire/help.blade.php @@ -1,10 +1,11 @@ -