@php
$freePlanDetails = getFreePlan();
$freePlanStructure = getConfigFreePlan();
$paidPlans = getPaidPlans();
$planStructure = getConfigPaidPlans();
@endphp
@if ($freePlanDetails['enabled'])
{{ $freePlanDetails['title'] }}
{{ formatAmount(0, true, true) }}/yearly
{{-- features --}}
@foreach ($freePlanStructure['features'] as $featureKey => $featureValue)
@php
$configFeatureValue = $featureValue;
$featureValue = $freePlanDetails['features'][$featureKey];
@endphp
-
@if (isset($featureValue['type']) and $featureValue['type'] == 'switch')
@if (isset($featureValue['limit']) and $featureValue['limit'])
@else
@endif
{{ $configFeatureValue['description'] }}
@else
@if (isset($featureValue['limit']) and $featureValue['limit'] < 0)
{{ __tr('Unlimited') }} @elseif(isset($featureValue['limit']))
{{ __tr($featureValue['limit']) }} @endif
{{ $configFeatureValue['description'] }}
{{ $configFeatureValue['limit_duration_title'] ?? '' }}
@endif
@endforeach
{{-- /features --}}
@endif
{{-- paid plan --}}
@foreach ($planStructure as $planKey => $plan)
@php
$planId = $plan['id'];
$features = $plan['features'];
$savedPlan = $paidPlans[$planKey];
$charges = $savedPlan['charges'];
if (!$savedPlan['enabled']) {
continue;
}
@endphp
{{ $savedPlan['title'] ?? $plan['title'] }}
@foreach ($charges as $itemKey => $itemValue)
@php
if(!$itemValue['enabled']) {
continue;
}
@endphp
{{ formatAmount($itemValue['charge'], true, true) }}/{{ Arr::get($plan['charges'][$itemKey], 'title', '') }}
@endforeach
{{-- features --}}
@foreach ($plan['features'] as $featureKey => $featureValue)
@php
$configFeatureValue = $featureValue;
$featureValue = $savedPlan['features'][$featureKey];
@endphp
-
@if (isset($featureValue['type']) and $featureValue['type'] == 'switch')
@if (isset($featureValue['limit']) and $featureValue['limit'])
@else
@endif
{{ $configFeatureValue['description'] }}
@else
@if (isset($featureValue['limit']) and $featureValue['limit'] < 0)
{{ __tr('Unlimited') }} @elseif(isset($featureValue['limit']))
{{ __tr($featureValue['limit']) }} @endif
{{ $configFeatureValue['description'] }}
{{ $configFeatureValue['limit_duration_title'] ?? '' }}
@endif
@endforeach
{{-- /features --}}
@endforeach
{{-- /paid plan --}}
{!! __yesset([
'dist/js/common-vendorlibs.js',
'dist/js/vendorlibs.js',
'dist/packages/bootstrap/js/bootstrap.bundle.min.js',
'dist/js/jsware.js',
]) !!}
{!! getAppSettings('page_footer_code_all') !!}
@if (isLoggedIn())
{!! getAppSettings('page_footer_code_logged_user_only') !!}
@endif