@foreach ($data['pricingPlans'] ?? [] as $planDurationType) {{ @$planDurationType->name }} @endforeach
@foreach ($data['pricingPlans'] ?? [] as $planDurationType)
@foreach ($planDurationType->pricingPlanPrices ?? [] as $item)
{{ @$item->pricingPlan->is_popular ? _trans('common.Most Popular') : '' }}

{{ @$item->pricingPlan->name }}

{{ currency_format(number_format(@$item->price, 2)) }} @if (\Modules\Saas\Enums\PricingPlanDurationType::QUARTERLY == $planDurationType->name) {{ currency_format(number_format(@$item->pricingPlan->basic_price * 3, 2)) }} @elseif (\Modules\Saas\Enums\PricingPlanDurationType::HALF_YEARLY == $planDurationType->name) {{ currency_format(number_format(@$item->pricingPlan->basic_price * 6, 2)) }} @elseif (\Modules\Saas\Enums\PricingPlanDurationType::YEARLY == $planDurationType->name) {{ currency_format(number_format(@$item->pricingPlan->basic_price * 12, 2)) }} @endif
{{ _trans('common.Select Plan') }}
  • {{ _trans('common.Employee Limit') }} {{ @$item->pricingPlan->is_employee_limit ? @$item->pricingPlan->employee_limit : 'Unlimited' }}
  • @foreach ($data['planFeatures'] as $id => $feature) @php $pricingPlanFeatures = collect(@$item->pricingPlan->pricingPlanFeatures)->pluck('plan_feature_id')->toArray(); @endphp @if (in_array($id, $pricingPlanFeatures))
  • {{ $feature }}
  • @else
  • {{ $feature }}
  • @endif @endforeach
{{ _trans('common.Select Plan') }}
@endforeach
@endforeach