lasthourcloud/app/Livewire/Subscription/Show.php

26 lines
552 B
PHP
Raw Normal View History

<?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()) {
return redirect()->route('dashboard');
}
2024-02-23 11:59:14 +00:00
if (!data_get(currentTeam(), 'subscription')) {
return redirect()->route('subscription.index');
}
}
public function render()
{
return view('livewire.subscription.show');
}
}