@php
use App\Enums\Plan\TypeEnum;
$isPrepaid = $plan->type === TypeEnum::TOKEN_PACK->value;
@endphp
-
{{ __('Access') }} {{ $isPrepaid ? __('All') : __($plan->checkOpenAiItemCount()) }} {{ __('Features') }}
@foreach ($allFeatures as $key => $openAi)
-
{{ ucfirst($key) }}
@php
$openAi = \App\Helpers\Classes\Helper::sortingOpenAiSelected($openAi, $plan->open_ai_items);
@endphp
@foreach ($openAi as $itemOpenAi)
@php
$exist = $plan->checkOpenAiItem($itemOpenAi->slug);
if ($isPrepaid && $plan->checkOpenAiItemCount() <= 0) {
$exist = true;
}
@endphp
-
$exist,
'bg-foreground/10 text-foreground' => !$exist,
'size-4 inline-flex items-center justify-center rounded-xl align-middle',
])>
@if ($exist)
@else
@endif
!$exist])>
{{ $itemOpenAi->title }}
@endforeach
@endforeach
-
@lang('Plan Credits')
@if ($plan->is_team_plan)
-
{{ number_format($plan->plan_allow_seat) }}
{{ __('Team allow seats') }}
@endif
@if ($plan->trial_days > 0)
-
{{ number_format($plan->trial_days) . ' ' . __('Days of free trial.') }}
@endif
@if (!empty($plan->features))
@foreach (explode(',', $plan->features) as $feature)
-
{{ trim(__($feature)) }}
@endforeach
@endif