From 573d32c9bd4f0fe9e383eb5a86372501f1616e12 Mon Sep 17 00:00:00 2001
From: Gitea
Date: Fri, 15 Aug 2025 21:37:32 +0530
Subject: [PATCH] feat: added option to hide stripe billing links from
dashboard
---
app/Livewire/Dashboard/Dashboard.php | 2 ++
resources/views/livewire/dashboard/dashboard.blade.php | 5 ++++-
2 files changed, 6 insertions(+), 1 deletion(-)
diff --git a/app/Livewire/Dashboard/Dashboard.php b/app/Livewire/Dashboard/Dashboard.php
index 271e6a3..286e239 100644
--- a/app/Livewire/Dashboard/Dashboard.php
+++ b/app/Livewire/Dashboard/Dashboard.php
@@ -16,6 +16,7 @@ class Dashboard extends Component
public $usageLog;
public $subscription;
public $plans;
+ public $showStripeBilling = false;
public function paymentStatus(Request $request)
{
@@ -184,6 +185,7 @@ class Dashboard extends Component
foreach (config('app.plans') as $plan) {
if ($plan['pricing_id'] === $userPriceID) {
$planName = $plan['name'];
+ $this->showStripeBilling = $plan['accept_stripe'];
break;
}
}
diff --git a/resources/views/livewire/dashboard/dashboard.blade.php b/resources/views/livewire/dashboard/dashboard.blade.php
index 40069e8..b565b1e 100644
--- a/resources/views/livewire/dashboard/dashboard.blade.php
+++ b/resources/views/livewire/dashboard/dashboard.blade.php
@@ -31,7 +31,10 @@
@if($subscription['ends_at'] ?? "") end at {{ \Carbon\Carbon::make($subscription['ends_at'])->toFormattedDayDateString() ?? "" }}.
@else auto-renew as per the plan you chose.
@endif
- To manage you subscription Click here
+ @if($showStripeBilling)
+ To manage you subscription Click here
+ @endif
+
@else