@lang('Plan Details')

@lang('Name, slug, and optional description shown to users.')

@error('name')
{{ $message }}
@enderror
@error('slug')
{{ $message }}
@enderror
@lang('Lowercase letters, numbers and hyphens only.')
@error('plan_badge')
{{ $message }}
@enderror
@lang('Admin Note')

@lang('Use clear naming and a stable slug so feature mappings remain consistent across all plans and frontend cards.')

@error('description')
{{ $message }}
@enderror

@lang('Billing Cycles')

@lang('Set the monthly base price. Add an optional discount for half-yearly and yearly cycles.')

@lang('Monthly')
@lang('Base price - used to calculate all cycles')
{{ siteCurrency('code') }} @error('price')
{{ $message }}
@enderror
@lang('Set 0 for a free plan.')
@lang('Half Yearly') @lang('(6 months)')
{{ $halfYearlyDiscount ? __(':disc% off - :price :code', ['disc' => $halfYearlyDiscount, 'price' => number_format($monthlyPrice * 6 * (1 - $halfYearlyDiscount / 100),siteDecimalPlaces()), 'code' => siteCurrency('code')]) : __('No discount - :price :code', ['price' => number_format($monthlyPrice * 6,siteDecimalPlaces()), 'code' => siteCurrency('code')]) }}
% @error('half_yearly_discount')
{{ $message }}
@enderror
@lang('Yearly') @lang('(12 months)')
{{ $yearlyDiscount ? __(':disc% off - :price :code', ['disc' => $yearlyDiscount, 'price' => number_format($monthlyPrice * 12 * (1 - $yearlyDiscount / 100),siteDecimalPlaces()), 'code' => siteCurrency('code')]) : __('No discount - :price :code', ['price' => number_format($monthlyPrice * 12,siteDecimalPlaces()), 'code' => siteCurrency('code')]) }}
% @error('yearly_discount')
{{ $message }}
@enderror
@php $features = (array) old('features', $plan->features->toArray() ?? []); @endphp

@lang('Features & Limits')

@lang('Define what subscribers get. Use consistent feature keys across all plans.')

{{ count($features) }}
@lang('Feature Builder')

@lang('Use toggle for access, limit for display-only caps, and quota for enforced numeric allowances. Drag rows to control how features appear on the plan card.')

@lang('Feature Types')
@lang('Use the right type for stable plan behavior and clearer cards.')
@lang('Toggle') @lang('On/Off switch for a feature (e.g. Send Money, P2P Access). Submits') enabled @lang('or') disabled.
@lang('Limit') @lang('A display label shown as a pill on the plan card (e.g.') $500, unlimited, Priority). @lang('Not enforced by the system.')
@lang('Quota') @lang('A numeric allowance enforced by the system (e.g.') 50 @lang('transactions/month). The system checks this value on every action.')
@foreach($features as $i => $feature) @include('backend.subscription.plans._feature_row', ['i' => $i, 'feature' => $feature]) @endforeach
count($features) > 0])>
@lang('No features added yet')

@lang('Click "Add Feature" to define plan limits and capabilities.')

@lang('Settings')

@lang('Badge, visibility, renewal defaults, and publish state.')

@lang('Featured Plan')
is_featured ?? false))>
@lang('Auto-renew by default')
auto_renew_default ?? false))>
@lang('Active (visible to users)')
status ?? true))>
@push('styles') @endpush @push('scripts') @endpush