@extends('layouts.tenant') @section('title', 'Planos de Assinatura') @section('content')

Planos de Assinatura

Escolha o plano ideal para suas necessidades

@if(session('success'))
{{ session('success') }}
@endif @if(session('error'))
{{ session('error') }}
@endif @if($currentSubscription)

Plano Atual: {{ $currentSubscription->plan->name }}

R$ {{ number_format($currentSubscription->plan->price, 2, ',', '.') }}/{{ $currentSubscription->plan->billing_cycle === 'monthly' ? 'mês' : 'ano' }} @if($currentSubscription->ends_at) • {{ $currentSubscription->status === 'cancelled' ? 'Expira em' : 'Próxima cobrança em' }} {{ $currentSubscription->ends_at->format('d/m/Y') }} @endif

@endif
@forelse($plans as $plan) @php $isCurrentPlan = $currentSubscription && $currentSubscription->plan_id === $plan->id; $canUpgrade = !$currentSubscription || $plan->price > $currentSubscription->plan->price; $canDowngrade = $currentSubscription && $plan->price < $currentSubscription->plan->price; $features = is_array($plan->features) ? $plan->features : json_decode($plan->features, true) ?? []; @endphp @empty

Nenhum Plano Disponível

Não há planos de assinatura disponíveis no momento.

@endforelse

Perguntas Frequentes

@endsection