@php use App\Enums\ActiveInactiveStatusEnum;use App\Enums\Subscription\SubscriptionPlanKeyEnum; use Illuminate\Support\Str; $plans = $plans ?? collect(); $keys = SubscriptionPlanKeyEnum::values(); @endphp
@forelse($plans as $plan) @if($plan->status == ActiveInactiveStatusEnum::ACTIVE()) @php $limitMap = $plan->limits?->pluck('value','key')->toArray() ?? []; @endphp @endif @empty @endforelse @foreach($keys as $key) @foreach($plans as $plan) @php $limitMap = $plan->limits?->pluck('value','key')->toArray() ?? []; @endphp @endforeach @if($plans->isEmpty()) @endif @endforeach @foreach($plans as $plan) @endforeach @if($plans->isEmpty()) @endif

{{ $subscriptionSettings['subscriptionHeading'] ?? __('labels.subscription_plans') }}

{{ $subscriptionSettings['subscriptionDescription'] ?? __('labels.subscription_description_text') }}
{{ __('labels.no_data_found') }}
{{ __('labels.plan_configurations') }}
{{ Str::replace('_',' ', $key) }} @if(SubscriptionPlanKeyEnum::isBoolean($key)) @if((int) ($limitMap[$key] ?? 0)) @else @endif @else {{ $limitMap[$key] ?? __('labels.unlimited') }} @endif -
{{ __('labels.choose_plan') ?? 'Choose plan' }}