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-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');
|
|
|
|
}
|
|
|
|
}
|