{{ __('Back to Plans') }}
{{ strtoupper(substr($plan->name, 0, 2)) }}

{{ $plan->name }}

{{ $plan->slug }}

@csrf @method('PUT') {{-- Tab Navigation (same style as System Settings) --}}
@php $planTabs = [ ['id' => 'basic', 'label' => __('Basic Info'), 'icon' => 'M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z'], ['id' => 'limits', 'label' => __('Resource Limits'), 'icon' => 'M9 19v-6a2 2 0 00-2-2H5a2 2 0 00-2 2v6a2 2 0 002 2h2a2 2 0 002-2zm0 0V9a2 2 0 012-2h2a2 2 0 012 2v10m-6 0a2 2 0 002 2h2a2 2 0 002-2m0 0V5a2 2 0 012-2h2a2 2 0 012 2v14a2 2 0 01-2 2h-2a2 2 0 01-2-2z'], ['id' => 'features', 'label' => __('Feature Access'), 'icon' => 'M9 12l2 2 4-4m5.618-4.016A11.955 11.955 0 0112 2.944a11.955 11.955 0 01-8.618 3.04A12.02 12.02 0 003 9c0 5.591 3.824 10.29 9 11.622 5.176-1.332 9-6.03 9-11.622 0-1.042-.133-2.052-.382-3.016z'], ['id' => 'bullets', 'label' => __('Pricing Bullets'), 'icon' => 'M9 5H7a2 2 0 00-2 2v12a2 2 0 002 2h10a2 2 0 002-2V7a2 2 0 00-2-2h-2M9 5a2 2 0 002 2h2a2 2 0 002-2M9 5a2 2 0 012-2h2a2 2 0 012 2m-3 7h3m-3 4h3m-6-4h.01M9 16h.01'], ]; @endphp @foreach($planTabs as $tab) @endforeach
{{-- ═══ TAB 1: Basic Information ═══ --}}

{{ __('Basic Information') }}

{{ __('Update the plan identity and pricing.') }}

@error('name')

{{ $message }}

@enderror

{{ __('Slug cannot be changed after creation.') }}

@error('description')

{{ $message }}

@enderror
@php $activeSubs = $plan->subscriptions()->where('status', 'active')->count(); @endphp @if($activeSubs > 0)
{{ $activeSubs }} {{ __('active subscription(s)') }} {{ __('on this plan. Price changes may affect billing.') }}
@endif
$
@error('monthly_price')

{{ $message }}

@enderror
$

@error('yearly_price')

{{ $message }}

@enderror
{{-- ═══ TAB 2: Resource Limits ═══ --}}

{{ __('Resource Limits') }}

{{ __('Set numeric limits for each resource. Check "Unlimited" to remove the cap.') }}

{{-- ═══ TAB 3: Feature Access ═══ --}}

{{ __('Feature Access') }}

{{ __('Toggle which integrations and capabilities are included.') }}

{{-- ═══ TAB 4: Plan Features List ═══ --}}

{{ __('Pricing Page Bullets') }}

{{ __('Bullet points displayed on the pricing page.') }}

{{-- Form Actions (always visible) --}}
{{ __('Cancel') }}
@php $featureLookup = $plan->planFeatures->keyBy('feature_key'); $limitKeys = ['email_accounts', 'ai_replies', 'contacts', 'team_members', 'storage_mb', 'campaigns_per_month', 'workflows', 'kb_documents', 'kb_file_size_mb', 'temp_mail_addresses', 'temp_mail_lifetime_hours']; $toggleKeys = ['whatsapp', 'sms', 'telegram', 'slack', 'live_chat', 'api_access', 'priority_support', 'custom_roles', 'white_label', 'sso_saml', 'temp_mail']; @endphp