@if($user->avatar_url)

@else
{{ strtoupper(substr($user->name, 0, 1)) }}
@endif
{{ $user->name }}
{{ $user->email }}
Plan {{ ucfirst($user->plan) }}
@if($user->fermenter_profile)
{{ ucfirst($user->fermenter_profile) }}
@endif
@if($user->favoriteGuide)
{{ $user->favoriteGuide->name }}
@endif
@if($user->isFree())
@else
@php
$subTypeAvatar = config('billing.subscription_type', 'default');
$subAvatar = $user->subscribed($subTypeAvatar) ? $user->subscription($subTypeAvatar) : null;
// Auto-renewing subs don't "finish" — premium_until is just the next charge.
$willAutoRenew = $subAvatar && ! $subAvatar->onGracePeriod();
$endingSoon = $user->premium_until
&& ! $willAutoRenew
&& $user->premium_until->lte(now()->addWeek());
@endphp
@if($endingSoon)
Tu plan Pro finaliza el
{{ $user->premium_until->translatedFormat('d \d\e F \d\e Y') }}
({{ $user->premium_until->diffForHumans() }}).
Actualizar el plan
@endif
@endif
Estadísticas
@foreach([
'Total lotes' => $stats['total_batches'],
'Activos' => $stats['active_batches'],
'Completados' => $stats['completed_batches'],
'Recetas propias' => $stats['recipes'],
'Posts comunidad' => $stats['posts'],
] as $label => $value)
{{ $label }}
{{ $value }}
@endforeach