This team be deleted. It is not reversible.
Please think again.
Danger Zone
Woah. I hope you know what are you doing.
Delete Team
@if (session('currentTeam.id') === 0)
This is the default team. You can't delete it.
@elseif(auth()->user()->teams()->get()->count() === 1)
You can't delete your last team.
@elseif(auth()->user()->currentTeam()->subscription &&
auth()->user()->currentTeam()->subscription?->lemon_status !== 'cancelled')
Please cancel your subscription before delete this team (Manage My Subscription button).
@else
@if (auth()->user()->currentTeam()->isEmpty())
This will delete your team. Beware! There is no coming back!
Delete
@else
You need to delete the following resources to be able to delete the team:
Projects:
@foreach (auth()->user()->currentTeam()->projects as $resource)
- {{ $resource->name }}
@endforeach
Servers:
@foreach (auth()->user()->currentTeam()->servers as $resource)
- {{ $resource->name }}
@endforeach
Private Keys:
@foreach (auth()->user()->currentTeam()->privateKeys as $resource)
- {{ $resource->name }}
@endforeach
Sources:
@foreach (auth()->user()->currentTeam()->sources() as $resource)
- {{ $resource->name }}
@endforeach
@endif
@endif