{{ $title }}

{{ csrf_field() }}
id) readonly @endif value="{{$plan->getTranslatedAttributeValue('name') }}" type="text"> @if ($plan->id) {{__('Translate')}} @else

{{__('*You can add translation language after creating.')}}

@endif

{{__('Note: auto-renew membership subscription will be notified to users in advance of :1 days.',['1'=> setting('shaun_user_subscription.remind_day')])}}

{{ __('This is the commission member will earn if the member they refer create a business page and have it featured using this plan. This commission apply for all billing cycles. Leave if empty or 0 if you want to disable commission for this plan.') }}
has_support_external_gateway ? 'checked' : ''}} value="1">
is_active ? 'checked' : ''}} value="1">
{{-- Phase-1 host extension. Plugins contribute extra plan-form fields via the 'user_subscription.plan.fields' filter. Each contributed entry is an associative array with at minimum: key, label, type, value. Optional: description, min, max, step, rules. The store controller fires 'user_subscription.plan.saved' afterwards so plugins can persist their own values to their own tables. --}} @php $pluginPlanFields = class_exists(\Packages\ShaunSocial\Plugins\Hook\Hook::class) ? \Packages\ShaunSocial\Plugins\Hook\Hook::applyFilters('user_subscription.plan.fields', [], $plan) : []; @endphp @foreach ($pluginPlanFields as $pluginField) @php $type = $pluginField['type'] ?? 'text'; $key = $pluginField['key'] ?? ''; $value = $pluginField['value'] ?? ''; // PHP's POST parser silently rewrites dots in input names to // underscores (e.g. "calling.voice" becomes $_POST['calling_voice']), // which would break dotted contributor keys. Emit the first dot as // bracket notation so PHP parses it as a nested array; handlers can // then read the value with Laravel's data_get($input, 'calling.voice'). $parts = explode('.', $key, 2); $inputName = count($parts) === 2 ? $parts[0].'['.$parts[1].']' : $key; @endphp @if ($key)
@if ($type === 'number') @elseif ($type === 'checkbox')
@else @endif @if (!empty($pluginField['description']))

{{ $pluginField['description'] }}

@endif
@endif @endforeach @if ($plan->id)

{{__('If you change package information here it only affects new subscribers. Old subscribers will not be affected.')}}

@endif