@if ($errors->any())
Revisa los campos marcados. Hay informacion pendiente o incorrecta.
@endif
@if (! $selectedPlan)
Planes disponibles
Adquiere AsignaPro
Pago seguro en linea, activacion automatica y modulos administrables por plan.
Ya tengo cuenta
@forelse ($plans as $plan)
@php
$enabledModules = $plan->modules->where('pivot.is_enabled', true)->pluck('key')->all();
$monthly = $plan->effectivePriceMonthly();
$yearly = $plan->effectivePriceYearly();
$yearlyMonthly = $yearly ? $yearly / 12 : null;
$annualSavings = $yearly ? max(0, ($monthly * 12) - $yearly) : 0;
$limits = [
($plan->max_employees ? number_format($plan->max_employees, 0, ',', '.') : 'Ilimitados').' empleados',
($plan->max_customers ? number_format($plan->max_customers, 0, ',', '.') : 'Ilimitados').' clientes',
($plan->max_services ? number_format($plan->max_services, 0, ',', '.') : 'Ilimitados').' servicios',
($plan->max_bookings_month ? number_format($plan->max_bookings_month, 0, ',', '.') : 'Reservas ilimitadas').' reservas/mes',
];
@endphp
@if ($plan->is_featured)
Recomendado
@endif
{{ $plan->name }}
{{ $plan->description ?: 'Plan flexible para negocios que quieren ordenar su agenda y crecer.' }}
@if ($yearly && $annualSavings > 0)
✦ 12 meses con ahorro anual
@endif
@if ($yearlyMonthly && $yearlyMonthly < $monthly)
{{ $formatMoney($monthly) }}
{{ round((1 - ($yearly / max(1, $monthly * 12))) * 100) }}% OFF
{{ $formatMoney($yearlyMonthly) }} /mes*
{{ $formatMoney($yearly) }} por 12 meses
Ahorra {{ $formatMoney($annualSavings) }}
@else
{{ $formatMoney($monthly) }} /mes
Facturacion mensual sin promocion
@endif
Contratar ahora
@foreach ($limits as $limit)
- ✓{{ $limit }}
@endforeach
@foreach (array_slice($allFeatureKeys, 0, 10) as $key)
@php $included = in_array($key, $enabledModules, true); @endphp
-
{{ $included ? '✓' : '×' }}
{{ $moduleLabels[$key] }}
@endforeach
@empty
Sin planes publicos
Activa planes desde el super administrador para mostrarlos aqui.
@endforelse
@else
@php
$enabledModules = $selectedPlan->modules->where('pivot.is_enabled', true)->pluck('key')->all();
$checkoutAmount = $planAmount($selectedPlan, $billingCycle);
$monthly = $selectedPlan->effectivePriceMonthly();
$yearly = $selectedPlan->effectivePriceYearly();
$yearlySavings = $yearly ? max(0, ($monthly * 12) - $yearly) : 0;
$summaryFeatures = [
($selectedPlan->max_employees ? number_format($selectedPlan->max_employees, 0, ',', '.') : 'Ilimitados').' empleados',
($selectedPlan->max_customers ? number_format($selectedPlan->max_customers, 0, ',', '.') : 'Ilimitados').' clientes',
($selectedPlan->max_services ? number_format($selectedPlan->max_services, 0, ',', '.') : 'Ilimitados').' servicios',
($selectedPlan->max_bookings_month ? number_format($selectedPlan->max_bookings_month, 0, ',', '.') : 'Reservas ilimitadas').' reservas/mes',
];
@endphp
@endif