2024-02-23 10:21:14 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Livewire\Subscription;
|
|
|
|
|
|
|
|
use Livewire\Component;
|
|
|
|
|
|
|
|
class Show extends Component
|
|
|
|
{
|
|
|
|
public function mount()
|
|
|
|
{
|
2024-06-10 20:43:34 +00:00
|
|
|
if (! isCloud()) {
|
2024-02-23 10:21:14 +00:00
|
|
|
return redirect()->route('dashboard');
|
|
|
|
}
|
2024-04-05 16:47:07 +00:00
|
|
|
if (auth()->user()?->isMember()) {
|
2024-04-05 16:34:33 +00:00
|
|
|
return redirect()->route('dashboard');
|
|
|
|
}
|
2024-06-10 20:43:34 +00:00
|
|
|
if (! data_get(currentTeam(), 'subscription')) {
|
2024-02-23 11:59:14 +00:00
|
|
|
return redirect()->route('subscription.index');
|
|
|
|
}
|
2024-02-23 10:21:14 +00:00
|
|
|
}
|
2024-06-10 20:43:34 +00:00
|
|
|
|
2024-02-23 10:21:14 +00:00
|
|
|
public function render()
|
|
|
|
{
|
|
|
|
return view('livewire.subscription.show');
|
|
|
|
}
|
|
|
|
}
|