Multiplica tus Eventos y tu Eficiencia con Nuestros Planes Ilimitados para Proveedores.
La única suscripción que te permite gestionar un volumen ilimitado de eventos, ahorrar cientos de horas de trabajo manual y ofrecer un servicio premium a tus clientes.
@forelse($plans as $plan)
@php
$count = $plans->count();
// Highlight Pro plan (annual)
$isHighlight = $plan->business_period === 'annual';
// Period mapping
$periodMap = [
'monthly' => ['Por mes', 'Mensual'],
'quarterly' => ['Por 3 meses', 'Trimestral'],
'annual' => ['Por 12 meses', 'Anual'],
];
[$periodText, $periodBadge] = $periodMap[$plan->business_period ?? ''] ?? [null, null];
// Calcular ahorro respecto al plan mensual
$savingsPercentage = null;
if ($plan->business_period === 'quarterly' && !empty($plan->business_price)) {
$monthlyPlan = $plans->firstWhere('business_period', 'monthly');
if ($monthlyPlan && !empty($monthlyPlan->business_price)) {
$monthlyEquivalent = $monthlyPlan->business_price * 3;
$savingsPercentage = round((($monthlyEquivalent - $plan->business_price) / $monthlyEquivalent) * 100);
}
} elseif ($plan->business_period === 'annual' && !empty($plan->business_price)) {
$monthlyPlan = $plans->firstWhere('business_period', 'monthly');
if ($monthlyPlan && !empty($monthlyPlan->business_price)) {
$monthlyEquivalent = $monthlyPlan->business_price * 12;
$savingsPercentage = round((($monthlyEquivalent - $plan->business_price) / $monthlyEquivalent) * 100);
}
}
@endphp
@if($isHighlight)
Más elegido
@endif
@if($plan->name)
{{ $plan->name }}
@endif
@if(!empty($plan->business_price))
@php
// Calcular precio mensual equivalente
$monthlyEquivalentPrice = $plan->business_price;
$billingDescription = null;
if ($plan->business_period === 'quarterly') {
$monthlyEquivalentPrice = $plan->business_price / 3;
$billingDescription = 'Facturado trimestralmente';
} elseif ($plan->business_period === 'annual') {
$monthlyEquivalentPrice = $plan->business_price / 12;
$billingDescription = 'Facturado anualmente';
}
@endphp
{{ optional($plan->businessCurrency)->code ?? 'USD' }} ${{ number_format($monthlyEquivalentPrice, 0) }}
/mes
@if($billingDescription)
{{ $billingDescription }}
@endif
@if($savingsPercentage && $savingsPercentage > 0)
Ahorra {{ $savingsPercentage }}%
@endif
@endif
Incluye todas las funciones descriptas más abajo
@if(($currentPlanId ?? null) === $plan->id)
Plan Actual
@else
@if($plan->business_stripe_price_id)
Suscribirse Ahora
@else
No disponible
@endif
@endif
@empty
No hay planes Business visibles.
@endforelse
@php
// Get ED Go! plan to display features
$edGoPlan = $plans->firstWhere('name', 'ED Go!');
@endphp
@if($edGoPlan)