2024-02-23 10:21:14 +00:00
|
|
|
<?php
|
|
|
|
|
|
|
|
namespace App\Livewire\Subscription;
|
|
|
|
|
|
|
|
use Livewire\Component;
|
|
|
|
|
|
|
|
class Show extends Component
|
|
|
|
{
|
|
|
|
public function mount()
|
|
|
|
{
|
|
|
|
if (!isCloud()) {
|
|
|
|
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-02-23 11:59:14 +00:00
|
|
|
if (!data_get(currentTeam(), 'subscription')) {
|
|
|
|
return redirect()->route('subscription.index');
|
|
|
|
}
|
2024-02-23 10:21:14 +00:00
|
|
|
}
|
|
|
|
public function render()
|
|
|
|
{
|
|
|
|
return view('livewire.subscription.show');
|
|
|
|
}
|
|
|
|
}
|