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