@extends('layouts.client') @section('content')

Olá, {{ auth()->user()->name }}!

{{ now()->format('d/m/Y H:i') }}
Plano Atual
{{ $activeSubscription->plan->name ?? 'Nenhum plano ativo' }}
@if($activeSubscription)
Vence em: {{ $activeSubscription->next_billing_at?->format('d/m/Y') ?? '--' }}
@endif
Próximo Vencimento
{{ $nextBilling ? $nextBilling->format('d/m/Y') : '--' }}
@if($nextBilling && $nextBilling->isPast())
Vencido! Regularize sua situação.
@endif
Total Gasto
R$ {{ number_format($totalSpent, 2, ',', '.') }}
Tickets Abertos
{{ $openTickets }}
@if($activeSubscription)

Detalhes da Assinatura

Plano
{{ $activeSubscription->plan->name }}
Valor Mensal
R$ {{ number_format($activeSubscription->plan->price, 2, ',', '.') }}
Data de Início
{{ $activeSubscription->created_at->format('d/m/Y') }}
Próximo Vencimento
{{ $activeSubscription->next_billing_at?->format('d/m/Y') ?? '--' }}
Status
Ativo
@endif

Últimos Pagamentos

Ver todos
@forelse($recentPayments as $payment) @empty @endforelse
Data Valor Status Ação
{{ $payment->created_at->format('d/m/Y H:i') }} R$ {{ number_format($payment->amount, 2, ',', '.') }} {{ $payment->status === 'paid' ? 'Pago' : ($payment->status === 'pending' ? 'Pendente' : 'Expirado') }} @if($payment->status === 'pending' && $payment->pix_code) @endif
Nenhum pagamento encontrado
@endsection